xlrd import issue with Python 2.7

后端 未结 7 1112
不思量自难忘°
不思量自难忘° 2020-12-31 07:35

I have an assignment to read excel data in Python. I have Python 2.7 installed. I tried installing xlrd0.8.0 with the following commands in Windows.

C:\\Pyth         


        
7条回答
  •  無奈伤痛
    2020-12-31 08:00

    I had the same problem, seems like the is better if you export your xlsx to a csv file and then run the following on python

    df = pd.read_csv('FileName.csv')
    

    It should work like that. If you're using iPython or even better Jupyter then run df.head() to check if pandas reads your table properly.

    Note, I am using Ubuntu

提交回复
热议问题