corretti nomi file excel in output
This commit is contained in:
@@ -613,7 +613,7 @@ optimized_weights_with_names['Nome ETF'] = [
|
||||
# =========================
|
||||
summary_df = pd.DataFrame(summary_data)
|
||||
|
||||
summary_path = excel_path('Pesi ottimizzati ITA.xlsx')
|
||||
summary_path = excel_path('Riepilogo pesi ITA.xlsx')
|
||||
with pd.ExcelWriter(summary_path, engine='openpyxl', mode='w') as writer:
|
||||
optimized_weights_with_names.to_excel(writer, sheet_name='Pesi Ottimizzati', index=True)
|
||||
summary_df.to_excel(writer, sheet_name='Riepilogo', index=False)
|
||||
@@ -624,7 +624,7 @@ print(f"File '{summary_path}' creato con 'Pesi Ottimizzati' e 'Riepilogo'.")
|
||||
# EXPORT UNICO PESI OTTIMIZZATI
|
||||
# =========================
|
||||
date_tag = datetime.now().strftime("%Y%m%d")
|
||||
combined_path = excel_path(f"{date_tag}_Pesi_ottimizzati.xlsx")
|
||||
combined_path = excel_path(f"{date_tag} Pesi ottimizzati ITA.xlsx")
|
||||
with pd.ExcelWriter(combined_path, engine='openpyxl', mode='w') as writer:
|
||||
if export_rows:
|
||||
combined_df = pd.concat([template_df] + export_rows, ignore_index=True)
|
||||
|
||||
Reference in New Issue
Block a user