This was working yesterday, tried to do it with a new file today, and its providing this error.
I'm trying to drop rows that has specific characters (gifs, gif) in them within that column.
My code is
import pandas as pd
data = pd.read_csv("Hete Output.csv", index_col ="C")
# dropping passed values
data.drop(["gifs", "gif"], inplace = True)
data.to_csv("Hete Output 1.csv")
According to panda https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.drop.html?highlight=drop is claims the axis is either index or columns. So when I tried
data.drop(["gifs", "gif"], inplace = True, axis = "Any value/character here")
I would get Exception has occurred: ValueError No axis named [] for object type DataFrame
So I'm not sure how to go about this.