Python: Pandas pd.read_excel giving ImportError: Install xlrd >= 0.9.0 for Excel support

前端 未结 15 2107
太阳男子
太阳男子 2021-02-01 12:04

I am trying to read a .xlsx with pandas, but get the follwing error:

data = pd.read_excel(low_memory=False, io=\"DataAnalysis1/temp1.xlsx\").fillna(         


        
15条回答
  •  温柔的废话
    2021-02-01 12:12

    First of all you need to install xlrd & pandas packages. Then try below code.

    import xlrd
    import pandas as pd
    
    xl = pd.ExcelFile("fileName.xlsx")
    print(xl.parse(xl.sheet_names[0]))
    

提交回复
热议问题