I'm trying to remove some columns from my dataframe, however I'm just getting this error no matter how hard I try to figure out how to fix it. Could you help me?
drop_cols = ['ISO3A código economía declarante',
'ISO3A código economía asociada',
'Código metadatos del valor',
'Metadatos del valor',
'Valor (no numérico)']
data = data.drop([drop_cols], axis=1)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-58-0d59600c7b98> in <module>
----> 1 data = data.drop([drop_cols], axis=1)
AttributeError: 'NoneType' object has no attribute 'drop'
I also used inplace = True and it didn't work for me either