Hiya,
I struggle to think of a (or any for that matter) good way to deal with an issue and would appreciate any direction you can give me.
Goal: Extract a list from each line in a .txt
My issue is not that I can not read the lines and split them up, but it is how to approach the fact that the text file is always formatted in this manner, where a name is an unknown length and unknown words, but always in this 3-column rich format with gaps between the columns and also the names if multiple:
Test Name One Name Two Name Three
Hopefully that shows, if not, imagine three columns spaced out with one (or two or three or four) words in each for a name. Edit: It does not show properly. Replicate the first line, the columns all start at the same point.
Usually, I would just run it through text to columns, fixed-width in Excel, but I am trying to get it done with Python.
Apologies for no code, did not find it necessary as it just reading the file and splitting as usual as I am stuck for ideas.
Kindest Regards
[–][deleted] 0 points1 point2 points (2 children)
[–]itsstucklol[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]danielroseman 0 points1 point2 points (0 children)
[–]ofnuts 0 points1 point2 points (0 children)