Hello,
Sorry, newbie.
I have a dataframe with 2colum: date and value
I had 2 other where I put the extracted month and year from the date.
Letâs say I have
df = pd.DataFrame({
"date"
"value"
"months"
"years"
})
Was able to put a histo graph with sum of values by month for a selected year.
fig = px.histogram(df_filtered[mask], x=âmonthsâ, y=âvalueâ, histfunc=âsumâ)
Sure it is not pretty, but it is working.
What I canât make it work is to have a line graph, with
- a line by year ( color=âyearâ)
- x my months
- y my sum value
Seems simple, but right know my head is in the wallâŚ
Regards from France,
Me