@@ -682,7 +682,7 @@ def transform(self, func, *args, engine=None, engine_kwargs=None, **kwargs):
682682 Parameters
683683 ----------
684684 func : function, str
685- Function to apply to each group. See the Notes section below for
685+ Function to apply to each group. See the Notes section below for
686686 requirements.
687687
688688 Accepted inputs are:
@@ -760,7 +760,7 @@ def transform(self, func, *args, engine=None, engine_kwargs=None, **kwargs):
760760
761761 .. versionchanged:: 2.0.0
762762
763- When using ``.transform`` on a grouped DataFrame and the transformation
763+ When using ``.transform`` on a grouped DataFrame and the transformation
764764 function returns a DataFrame, pandas now aligns the result's index
765765 with the input's index. You can call ``.to_numpy()`` on the
766766 result of the transformation function to avoid alignment.
@@ -1778,13 +1778,14 @@ def plot(self) -> GroupByPlot:
17781778 .. versionadded:: 1.5.0
17791779
17801780 sharex : bool, default True if ax is None else False
1781- In case ``subplots=True``, share x axis and set some x axis
1782- labels to invisible;
1781+ In case ``subplots=True``, share x axis and set some x axis
1782+ labels to invisible;
17831783 defaults to True if ax is None otherwise False if
17841784 an ax is passed in; Be aware, that passing in both an ax and
17851785 ``sharex=True`` will alter all x axis labels for all axis in a figure.
17861786 sharey : bool, default False
1787- In case ``subplots=True``, share y axis and set some y axis labels to invisible.
1787+ In case ``subplots=True``, share y axis and set some y axis
1788+ labels to invisible.
17881789 layout : tuple, optional
17891790 (rows, columns) for the layout of subplots.
17901791 figsize : a tuple (width, height) in inches
@@ -1819,7 +1820,7 @@ def plot(self) -> GroupByPlot:
18191820 ylim : 2-tuple/list
18201821 Set the y limits of the current axes.
18211822 xlabel : label, optional
1822- Name to use for the xlabel on x-axis. Default uses index name as xlabel,
1823+ Name to use for the xlabel on x-axis. Default uses index name as xlabel,
18231824 or the x-column name for planar plots.
18241825
18251826 .. versionchanged:: 2.0.0
@@ -1943,7 +1944,7 @@ def plot(self) -> GroupByPlot:
19431944 :context: close-figs
19441945 >>> df = pd.DataFrame({"col1": [1, 2, 3, 4], "col2": ["A", "B", "A", "B"]})
19451946 >>> plot = df.groupby("col2").plot(
1946- ... kind="bar", title="DataFrameGroupBy Plot"
1947+ ... kind="bar", title="DataFrameGroupBy Plot"
19471948 ... )
19481949 """
19491950 result = GroupByPlot (self )
@@ -2338,14 +2339,14 @@ def corr(
23382339
23392340 Notes
23402341 -----
2341- Pearson, Kendall and Spearman correlation are currently computed using
2342+ Pearson, Kendall and Spearman correlation are currently computed using
23422343 pairwise complete observations.
23432344
23442345 * `Pearson correlation coefficient <https://en.wikipedia.org/wiki/Pearson_correlation_coefficient>`_
23452346 * `Kendall rank correlation coefficient <https://en.wikipedia.org/wiki/Kendall_rank_correlation_coefficient>`_
23462347 * `Spearman's rank correlation coefficient <https://en.wikipedia.org/wiki/Spearman%27s_rank_correlation_coefficient>`_
23472348
2348- Automatic data alignment: as with all pandas operations, automatic data
2349+ Automatic data alignment: as with all pandas operations, automatic data
23492350 alignment is performed for this method.
23502351 ``corr()`` automatically considers values with matching indices.
23512352
@@ -3223,7 +3224,8 @@ def transform(self, func, *args, engine=None, engine_kwargs=None, **kwargs):
32233224 Parameters
32243225 ----------
32253226 func : function, str
3226- Function to apply to each group. See the Notes section below for requirements.
3227+ Function to apply to each group. See the Notes section
3228+ below for requirements.
32273229
32283230 Accepted inputs are:
32293231
@@ -4239,7 +4241,7 @@ def plot(self) -> GroupByPlot:
42394241 an ax is passed in; Be aware, that passing in both an ax and
42404242 ``sharex=True`` will alter all x axis labels for all axis in a figure.
42414243 sharey : bool, default False
4242- In case ``subplots=True``, share y axis and set some y axis
4244+ In case ``subplots=True``, share y axis and set some y axis
42434245 labels to invisible.
42444246 layout : tuple, optional
42454247 (rows, columns) for the layout of subplots.
@@ -4402,7 +4404,7 @@ def plot(self) -> GroupByPlot:
44024404
44034405 >>> df = pd.DataFrame({"col1": [1, 2, 3, 4], "col2": ["A", "B", "A", "B"]})
44044406 >>> plot = df.groupby("col2").plot(
4405- ... kind="bar", title="DataFrameGroupBy Plot"
4407+ ... kind="bar", title="DataFrameGroupBy Plot"
44064408 ... )
44074409 """
44084410 result = GroupByPlot (self )
@@ -4452,14 +4454,14 @@ def corr(
44524454
44534455 Notes
44544456 -----
4455- Pearson, Kendall and Spearman correlation are currently computed using
4457+ Pearson, Kendall and Spearman correlation are currently computed using
44564458 pairwise complete observations.
44574459
44584460 * `Pearson correlation coefficient <https://en.wikipedia.org/wiki/Pearson_correlation_coefficient>`_
44594461 * `Kendall rank correlation coefficient <https://en.wikipedia.org/wiki/Kendall_rank_correlation_coefficient>`_
44604462 * `Spearman's rank correlation coefficient <https://en.wikipedia.org/wiki/Spearman%27s_rank_correlation_coefficient>`_
44614463
4462- Automatic data alignment: as with all pandas operations,
4464+ Automatic data alignment: as with all pandas operations,
44634465 automatic data alignment is performed for this method.
44644466 ``corr()`` automatically considers values with matching indices.
44654467
0 commit comments