Python + Pandas + Dataframe : Keyerror
I have about 190 CSV's. each of which has same column names. A sample csv shared below: From every csv, I need to pick only the Item, Predicted_BelRd(D2), Predicted_Ulsoor(D2), Pr
Solution 1:
I think you need to remove the tab spaces and re-excute the code. It may work fine. I think because of the unwanted tab spaces the dataframe is not able to distinguish the real values and outpus "KeyError".
Post a Comment for "Python + Pandas + Dataframe : Keyerror"