SHARE
TWEET

Untitled

a guest Dec 11th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import pandas as pd
  2. df = pd.read_csv('music_log_upd_nan.csv')
  3. shape_table = df.shape
  4. df = df.drop_duplicates().reset_index(drop=True)
  5. shape_table_update = df.shape
  6.  
  7. if shape_table == shape_table_update:
  8.     print( 'Размер таблицы не изменился, текущий размер:', shape_table_update)
  9. elif shape_table > shape_table_update:
  10.     print( 'Таблица уменьшилась, текущий размер:', shape_table_update)
  11. else:
  12.     print('Таблица уменьшилась,текущий размер:', shape_table_update)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top