Skip to content

Commit 4d217a4

Browse files
authored
CLN: Cython Groupby unused argument removal (#53506)
1 parent 37783d4 commit 4d217a4

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

pandas/_libs/groupby.pyx

+1-5
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,6 @@ def group_fillna_indexer(
495495
ndarray[intp_t] labels,
496496
ndarray[intp_t] sorted_labels,
497497
ndarray[uint8_t] mask,
498-
str direction,
499498
int64_t limit,
500499
bint dropna,
501500
) -> None:
@@ -510,14 +509,11 @@ def group_fillna_indexer(
510509
Array containing unique label for each group, with its ordering
511510
matching up to the corresponding record in `values`.
512511
sorted_labels : np.ndarray[np.intp]
513-
obtained by `np.argsort(labels, kind="mergesort")`; reversed if
514-
direction == "bfill"
512+
obtained by `np.argsort(labels, kind="mergesort")`
515513
values : np.ndarray[np.uint8]
516514
Containing the truth value of each element.
517515
mask : np.ndarray[np.uint8]
518516
Indicating whether a value is na or not.
519-
direction : {'ffill', 'bfill'}
520-
Direction for fill to be applied (forwards or backwards, respectively)
521517
limit : Consecutive values to fill before stopping, or -1 for no limit
522518
dropna : Flag to indicate if NaN groups should return all NaN values
523519

pandas/core/groupby/groupby.py

-1
Original file line numberDiff line numberDiff line change
@@ -2924,7 +2924,6 @@ def _fill(self, direction: Literal["ffill", "bfill"], limit: int | None = None):
29242924
libgroupby.group_fillna_indexer,
29252925
labels=ids,
29262926
sorted_labels=sorted_labels,
2927-
direction=direction,
29282927
limit=limit,
29292928
dropna=self.dropna,
29302929
)

0 commit comments

Comments
 (0)