As shown in the video when we want to drop a column from the csv file it is dropping by the given method but when i m doing it exactly the same way as shown in the video it is giving the error as shown below

data_csv = pd.read_csv(‘marks.csv’)

data_csv = data_csv.drop(columns='Unnamed: 0 ')

print(data_csv)

KeyError: “['Unnamed: 0 '] not found in axis”

Hello @coding123c,
Have you copied the column name same from your printed dataframe.
Because it should work fine there is no error in your code.
Check again name of column you copied.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.