12311k

Untitled

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