KeyError: “None of [] are in the columns” when using the Python Pandas set_index function

后端 未结 0 1148
無奈伤痛
無奈伤痛 2021-01-01 08:39

I have created the original dataframe from a CSV file

df = pd.read_csv(r\'C:\\Users\\Sam\\cars.csv\')

Which produces a df with the following

相关标签:
回答
  • 消灭零回复
提交回复
热议问题