diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 5bf3e0e4de2fb..8dfef9e70db52 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -3833,7 +3833,7 @@ def ffill(self, limit: int | None = None): 3 1.0 3.0 NaN NaN 4 1.0 1.0 NaN NaN - Only replace the first NaN element within a group along rows. + Only replace the first NaN element within a group along columns. >>> df.groupby("key").ffill(limit=1) A B C