I have been trying the past 40 minutes to delete a specific column (
Name) from my data frame but no method seems to work. I am using jupyter notebook by the way, not sure if that may be an issue. I am also 100% sure that the column name is named
Nameand that it is not the index of the data frame -- I am using the Titanic data set.
df.drop('Name', axis=1, inplace=True)
df = df.drop('Name', 1)