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..

11th Jun 2020, 5:11 PM
Andrey Shintar
Andrey Shintar - avatar
2 ответов
+ 5
You can also use pandas dataframe. You should be able to read txt / csv file directly. Dataframe allows sorting and many other features.
11th Jun 2020, 8:39 PM
Lothar
Lothar - avatar
0
Jay, thanks bro! But Idk what to do with it)
11th Jun 2020, 5:40 PM
Andrey Shintar
Andrey Shintar - avatar