0
How to sort rows of data by the first column of two
I have a lot of values from some txt file. The first column is time. How to sort these two columns to increase by the first using Python? 2.562021e-4 '3.2' 2.570725e-4 'X' 2.570737e-4 '5.1' 2.619516e-4 'X' 2.619521e-4 '6.1' 2.628225e-4 'X' 2.628237e-4 '1.3' 2.680767e-4 'X' I guess it may be done with using libraries' keys..
2 Antworten
+ 5
You can also use pandas dataframe. You should be able to read txt / csv file directly. Dataframe allows sorting and many other features.
0
Jay, thanks bro! But Idk what to do with it)