I wanted to know how to read multiple lines in a function and then run it. For example I am reading this path what should I put in the end of my second line so that it reads ',sheet_name='Live Promos' and run properly.
Live_Promo=pd.read_excel("""C:\\Users\\BF68499\\_Inc\\Documents\\\
KT\\Pro\\92-2l D_TS.xlsx"""
,sheet_name='Live Promos')
#Output
#FileNotFoundError: [Errno 2] No such file or directory:
When I keep it in single line like this it reads it fine.
Live_Promo=pd.read_excel("C:\\Users\\BF64899\\_Inc\\Documents\\KT\\Pro\\92-2l D_TS.xlsx",sheet_name='Live Promos')
#Output
#reads file fine
What is the solution?