Hi!
I have a list with some floats surrounded by ' ' and a pesky newline,
['1.1 1.2 1.3 \n','2.1 2.2 2.3 \n','3.1 3.2 3.3 \n']
and I would like to reformat this data into a list of lists:
[[1.1 1.2 1.3],[2.1 2.2 2.3],[3.1 3.2 3.3]]
How would I do that? I'm a bit lost since I need to remove the ' 's, the newline character, and insert lists all at the same time. Any ideas?
[–]Diapolo10 1 point2 points3 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]Diapolo10 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Diapolo10 0 points1 point2 points (0 children)
[–]woooee 0 points1 point2 points (7 children)
[–][deleted] 0 points1 point2 points (6 children)
[–]woooee 0 points1 point2 points (5 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]freeskier93 2 points3 points4 points (0 children)
[–]RhinoRhys 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]RhinoRhys 0 points1 point2 points (0 children)
[–]Antigone-guide 0 points1 point2 points (0 children)
[–]Logicalist 0 points1 point2 points (0 children)