bisogna specificare la tipologia di grafico
This commit is contained in:
@@ -54,7 +54,7 @@ print("Valore massimo:",max(result_ac_energies_to_csv_df.gen_pv_100_kWp)) # prin
|
|||||||
print("Somma totale:",sum(result_ac_energies_to_csv_df.gen_pv_100_kWp)) # print the total sum of the generated energy
|
print("Somma totale:",sum(result_ac_energies_to_csv_df.gen_pv_100_kWp)) # print the total sum of the generated energy
|
||||||
result_ac_energies_to_csv_df.to_csv(path_export, encoding='utf-8')
|
result_ac_energies_to_csv_df.to_csv(path_export, encoding='utf-8')
|
||||||
|
|
||||||
def generate_grafico_df(dataframe, graphTitle):
|
def generate_grafico_torri_df(dataframe, graphTitle):
|
||||||
# GENERAZIONE GRAFICO
|
# GENERAZIONE GRAFICO
|
||||||
import plotly.express as px
|
import plotly.express as px
|
||||||
# Supponendo che la colonna di interesse sia 'gen_pv_100_kWp'
|
# Supponendo che la colonna di interesse sia 'gen_pv_100_kWp'
|
||||||
@@ -84,8 +84,8 @@ path_export_hourly = path_export.replace('.csv', '_hourly.csv')
|
|||||||
df_hourly = export_hourly_pv_productivity(result_ac_energies_to_csv_df, path_export_hourly)
|
df_hourly = export_hourly_pv_productivity(result_ac_energies_to_csv_df, path_export_hourly)
|
||||||
|
|
||||||
# GENERAZIONE GRAFICI
|
# GENERAZIONE GRAFICI
|
||||||
generate_grafico_df(result_ac_energies_to_csv_df, 'Produttività Fotovoltaica nel Tempo')
|
generate_grafico_torri_df(result_ac_energies_to_csv_df, 'Produttività Fotovoltaica nel Tempo')
|
||||||
generate_grafico_df(df_hourly, 'Produttività Fotovoltaica a Base Oraria')
|
generate_grafico_torri_df(df_hourly, 'Produttività Fotovoltaica a Base Oraria')
|
||||||
|
|
||||||
if joePlaying:
|
if joePlaying:
|
||||||
joe.terminate()
|
joe.terminate()
|
||||||
|
|||||||
Reference in New Issue
Block a user