Help with "name 'df' is not defined" error

Hey @Vivika_Martini ,

Your code is fine, but python/pandas has a problem reading the xslx files. I tried it with a csv file and it’s OK.
You should add a condition and handle depending on whether it’s a csv or xlsx (use pd.read_excel) :slight_smile:

1 Like