Output an Excel file to a separate directory than the Python code, also name the file something other than the directory - TagMerge
1Output an Excel file to a separate directory than the Python code, also name the file something other than the directoryOutput an Excel file to a separate directory than the Python code, also name the file something other than the directory

Output an Excel file to a separate directory than the Python code, also name the file something other than the directory

Asked 9 months ago
1
1 answers

Surely it's just:

opf = idir + '\\yourfilename.xlsx'

Or from a variable (and using f-strings assuming Python 3.6 or better):

full_output_filename = f'{idir}\\{output_filename}.xlsx'

Source: link

Recent Questions on python

    Programming Languages