From 925de3fe8e82839e0e88259ff511f107dce29072 Mon Sep 17 00:00:00 2001 From: Sparsh Sah Date: Thu, 10 Oct 2024 21:20:39 -0700 Subject: [PATCH] Fix `groupby.ffill()` doc reference to rows --- pandas/core/groupby/groupby.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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