Getting this exception while using read_excel function in pandas.
I am trying to fetch columns based on the column labels in the header. And getting this error. Can anyone tell me where I am going wrong.
Here's the function:
pd.read_excel(myexcel.xlsx, sheet_name = 'sheet1', names = ['company name', 'service provided'], header = 1)
Getting the following error when I run it:
"Number of passed names did not match number of header fields in the file"