The only thing I added was the attempted concatenation of the file path.
I am getting an 'unexpected character after line continuation character, and cannot figure out why.
import numpy as np
import pandas as pd
import getpass
user = getpass.getuser()
data = pd.read_excel (r'C:\Users\' + user + '\Desktop\bulk export.xlsx',
sheet_name=1,
header=0)
df = pd.DataFrame(data,
columns= [1,'Record Type'])
print (df)
r'C:\Users\\', same for the other part as well.pd.read_excel(rf'C:\Users\{user}\Desktop\bulk export.xlsx', sheet_name=1, header=0)