"Must explicitly set engine if not passing in buffer or path for io" in Panda

JohnAndrews picture JohnAndrews · Mar 22, 2017 · Viewed 7.2k times · Source

When running the following Python Panda code:

    xl          = pd.ExcelFile(dataFileUrl)
    sheets      = xl.sheet_names
    data        = xl.parse(sheets[0])
    colheaders  = list(data)

I receive the ValueError:

Must explicitly set engine if not passing in buffer or path for io

The file is for sure an excel file, no doubt about that.

What is happening?

Answer

Stael picture Stael · Mar 22, 2017

I would try

xl = pd.ExcelFile(dataFileUrl, engine='xlrd')