0

dear i am trying following for drop multiple columns from my dataframe but it is not working

df.drop(columns=[["returns", "price"]])

the error message is following KeyError: "[('returns', 'price')] not found in axis"

i tried putting axis=0 and then 1 but still do not work

please note that following code works perfectly (means i can drop one column in one time)

df.drop(columns=["returns"])

i am not expert yet to answer this

0 Answers0