pandas.api.typing.SeriesGroupBy.plot#
- property SeriesGroupBy.plot[source]#
Make plots of groups from a Series.
Uses the backend specified by the option
plotting.backend. By default, matplotlib is used.- Returns:
- GroupByPlot
A plotting object that can be used to create plots for each group.
See also
Series.plotMake plots of Series.
Examples
>>> ser = pd.Series([1, 2, 3, 4, 5], index=["a", "a", "b", "b", "c"]) >>> g = ser.groupby(level=0) >>> g.plot()