[Django]-How to fix ValueError in pandas

3👍

I believe you need change for each file from:

sar_file = os.path.isfile('media/reports/Stylist_Analysis.xls')

to:

sar_file = 'media/reports/Stylist_Analysis.xls'

because os.path.isfile:

Return True if path is an existing regular file. This follows symbolic links, so both islink() and isfile() can be true for the same path.

Leave a comment