I am getting an error "ImportError: Install xlrd >= 1.0.0 for Excel support" when I use pandas to read a spreadsheet.
My code is below:
import pandas as pddf = pd.read_excel("data.xlsx")
import pandas as pd
df = pd.read_excel("data.xlsx")
How to fix it?
From the error, it seems that your system does not have xlrd >= 1.0.0. Try to install the package using the following command and hopefully it will solve the problem.
pip install xlrd
pip3 install xlrd