I am trying to save a dataframe to Excel and unfortunately I am not getting around the Syntax. I want to save the file to a path and Name it by today date.
df.to_excel(r'\\folderA\folderB\Dokumente\'',today.strftime("%d%m%Y")+'delmedf.xlsx')
Am I doing something wrong with the quote signs?
,to+likedf.to_excel(r'\\folderA\folderB\Dokumente\' + today.strftime("%d%m%Y")+'delmedf.xlsx'), because you concanecate strings.'in front of the filename.'25022016delmedf.xlsx'in the end of'\\folderA\folderB\Dokumente\''results ininvalid Syntaxdf.to_excel(r'\\folderA\folderB\Dokumente\'' + dt.datetime.today().strftime("%d%m%Y")+'delmedf.xlsx')