I am trying to save a pandas dataframe to a specified path, but no file is returned. I am able to do this when I host the website locally, but when I use PythonAnywhere, the website works fine, but does not save the files. There are no reported errors, so I am not sure what is going wrong.
writer = pd.ExcelWriter('D:\\' + file_title + '.xlsx')
clean_data.to_excel(writer, 'Sheet1', header=False, index=False)
clean_data.to_csv('D:\\' + file_title + '.txt', sep='\t', header=False, index=False)
Do I need to take a different approach to this? Any help is appreciated.