Advertisement
AlexErin1308

Task #5

Mar 7th, 2024
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | Source Code | 0 0
  1. import pandas as pd
  2.  
  3. position = pd.read_csv('/datasets/position.csv')
  4. position['timestamp'] = pd.to_datetime(
  5.     position['timestamp'], format='%Y-%m-%dT%H:%M:%S'
  6. )
  7. print(position.sort_values(by='level', ascending=False))#сортировка таблицы position по столбцу 'level' в порядке убывания и вывод на экран.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement