Error: pandas hashtable keyerror

后端 未结 3 1053
温柔的废话
温柔的废话 2020-11-22 01:00

I have successfully read a csv file using pandas. When I am trying to print the a particular column from the data frame i am getting keyerror. Hereby i am sharing the code w

3条回答
  •  悲哀的现实
    2020-11-22 01:48

    import pandas as pd
    df=pd.read_csv("file.txt", skipinitialspace=True)
    df.head()
    df['review']
    

提交回复
热议问题