livised

Untitled

Oct 30th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. import pandas as pd
  2. df = pd.read_csv('music_log_upd_nan.csv')
  3. df = df.drop_duplicates().reset_index(drop=True)
  4. shape_table = df.shape
  5. shape_table_update = shape_table
  6. if shape_table == shape_table_update:
  7.     print('Размер таблицы не изменился, текущий размер:', shape_table_update)
  8. else:
  9.     print('Таблица уменьшилась, текущий размер:', shape_table_update)
Advertisement
Add Comment
Please, Sign In to add comment