output_file_name = '{}__output1.xlsx'.format(str(in_file.resolve().stem))
output_file_path = str(Path(out_folder, output_file_name))
this code lines are giving the following error:
AttributeError: 'str' object has no attribute 'resolve'
I am processing multiple files and trying to dynamically create a file name for the output files and the path for them. Need your help to sort out the error.
I am trying to save the file in the following way:
df.style.applymap(color_code).\to_excel(output_file_path, engine="xlsxwriter")