Это часть моего кода:
Код: Выделить всё
precios_read = pd.read_excel('Precios_{}.xls'.format(auth2), sheet_name='Precios')
precios_read = precios_read.sort_values(by=['Espacio'], ascending=True)
book = load_workbook('Template_sugerencia.xlsx')
writer = pd.ExcelWriter('Template_sugerencia.xlsx', engine='openpyxl')
writer.book = book
precios_read.to_excel(writer, sheet_name='template', startcol=12, startrow=5, index=False, merge_cells = True)
Recom.to_excel(writer, sheet_name='template', startcol=0, startrow=5, index=False, merge_cells = True)
cliente = auth + '_' + ids
writer.save('{}.xls'.format(cliente))
Код: Выделить всё
TypeError: save() takes exactly 1 argument (2 given)Подробнее здесь: https://stackoverflow.com/questions/488 ... ame-python