1

I will read an excel file with python :

import pandas as pd
df = pd.read_excel('fichier.xlsx')
print (df.head())

I have this error : BadZipFile: File is not a zip file

Anyone can help me plz

sj95126
  • 6,520
  • 2
  • 15
  • 34
Abir2563
  • 31
  • 4

1 Answers1

0

Try converting your Excel file to ".csv".

Then:

df = pd.read_csv('fichier.csv')

cosmo nova
  • 33
  • 8