0

I have a dataframe with the duplicates in the t column, however when I run the drop_duplicates function the following error is returned. Could someone please explain how to fix this?

print(df.columns)

Index(['t', 'ax', 'ay', 'az', 'gx', 'gy', 'gz', 'mx', 'my', 'mz', 'movement',
       'hand', 'trial_1', 'trial_2', 'trial'],
      dtype='object')

df.drop_duplicates(subset= left_data.loc[:, 't'], keep='first', inplace=True, ignore_index=True) ```

KeyError: Int64IndeX 

gee_whiz
  • 9
  • 1

0 Answers0