I need to export my pandas dataframe as a csv in to the folder. My python solution is deployed on the IIS Server, where i get the "file_path" and the url, i use these two things to fetch or read my file. This is what i did to read the incoming file.
from urllib.parse import quote
url = "http://20.9.6.11:8066" -- given
file_path = "file_upload/file_info/products/class1/file.csv" --given
incoming_file_path = url + "/" + quote(file_path)
df = pd.read_csv(incoming_file_path)
i am able to fetch or read my csv file successfully with the above code,But after my data get processed i need to export that csv to some other folder, that i am not able to export. I did:
folder_to_export_path = "http://20.9.6.11:8066/file_info/products/processed_file"
clean_df.to_csv(r'folder_to_export_path+'filename.csv') # error