0

I'm trying to read an Excel file with Pandas and this is my code:

import pandas as pd 
path = 'FILENAME.xls'
sheet = 'SHEETNAME'
df = pd.read_excel(path, sheet_name=sheet)

The code above throws me the error:

File "/usr/local/lib/python3.5/dist-packages/fsspec/mapping.py", line 2, in <module>
        from .core import url_to_fs
    
File "/usr/local/lib/python3.5/dist-packages/fsspec/core.py", line 314
        out[0] = (f"{out[0][1]}://", out[0][1], out[0][2])
                                  ^
SyntaxError: invalid syntax

python -V

Python 3.5.2

pd.version

'0.24.2'
luisvenezian
  • 441
  • 5
  • 18

0 Answers0