troppi spazi, troppo disordine

This commit is contained in:
2025-06-23 12:21:49 +02:00
parent e7a8b08bb9
commit 2fe8df9db2

View File

@@ -4,6 +4,7 @@ import subprocess
import signal
import time
import plotly.express as px
import plotly.graph_objects as go
import pandas as pd
location_ita = 'Biella' # location in Italian
@@ -96,8 +97,6 @@ path_export_hourly = path_export.replace('.csv', '_hourly.csv')
# Esporta il file orario
df_hourly = export_hourly_pv_productivity(result_ac_energies_to_csv_df, path_export_hourly)
# Carica il file CSV orario
df = pd.read_csv('files/gen_pv/output_gen_pv_hourly.csv', index_col=0, parse_dates=True)
@@ -114,16 +113,11 @@ fig = px.line(
)
fig.show()
# Raggruppa per mese e somma la produzione
df_monthly = df.resample('M').sum()
df_monthly['Mese'] = df_monthly.index.strftime('%B %Y') # Nome mese e anno
import plotly.graph_objects as go
# Estrai tutte le date disponibili (solo la parte di data, senza ora)
date_options = df.index.normalize().unique()