You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I'm plotting histogramms and line plots from a groupby - object. It works fine and for each group a figure is generated. But i think a nice feature would be to automatically add the groupname (label) as figure title to each figure. Below you can see a line and a histplot from one group
I was looking for this functionality and a google search has brought me to an open issue rather than to a solution on stackoverflow :-)
Is there a solution that I'm missing?
I was looking for this functionality and a google search has brought me to an open issue rather than to a solution on stackoverflow :-) Is there a solution that I'm missing?
I've found a way to add title like this:
my_group = my_data_frame.groupby("name")
my_axes_data_frame = my_group.plot("x", "y")
for index in my_axes_data_frame.index:
my_axes_data_frame.loc[index].set_title(index)
plt.show()
Hello!
I'm plotting histogramms and line plots from a groupby - object. It works fine and for each group a figure is generated. But i think a nice feature would be to automatically add the groupname (label) as figure title to each figure. Below you can see a line and a histplot from one group
My code:
Pandas:
The text was updated successfully, but these errors were encountered: