Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- df = pd.read_csv('music_log_upd_nan.csv')
- shape_table = df.shape
- df = df.drop_duplicates().reset_index()
- shape_table_update = df.shape
- if shape_table == shape_table_update:
- print('Размер таблицы не изменился, текущий размер: {:.f}'.format(df.shape))
- else:
- print('Таблица уменьшилась, текущий размер: {:.f}'.format(df.shape))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement