I'm trying to remove 1 column from .csv but I'm receiving an error.
import pandas as pd df.drop("First Invoice #", axis = 1, inplace= True)
KeyError: "['First Invoice #'] not found in axis"
You can use del
too:
del df["First Invoice #"]
I'm trying to remove 1 column from .csv but I'm receiving an error.
import pandas as pd df.drop("First Invoice #", axis = 1, inplace= True)
KeyError: "['First Invoice #'] not found in axis"
You can use del
too:
del df["First Invoice #"]