-2

I'm trying to read An excel sheet "temp.xslx"

my code is :

temp =pd.read_excel("D:\temp.xlsx")

the error I get :

OSError: [Errno 22] Invalid argument: 'D:\temp.xlsx' 

I googled the error but I got the same error over and over

Joe Ferndz
  • 8,417
  • 2
  • 13
  • 33
Omar Hossam
  • 311
  • 1
  • 2
  • 9

1 Answers1

0

Try pd.read_excel("D:\\temp.xlsx") or pd.read_excel(r"D:\temp.xlsx")

Punker
  • 1,770
  • 9
  • 16