Home > Software engineering >  removing columns with pandas from csv - not found in axis
removing columns with pandas from csv - not found in axis

Time:05-02

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"

Here you find file .csv enter image description here

You can use del too:

del df["First Invoice #"]
  • Related