Skip to content

Commit 7001e9a

Browse files
authored
CLN: assorted (#46181)
1 parent f3cdd05 commit 7001e9a

File tree

20 files changed

+274
-209
lines changed

20 files changed

+274
-209
lines changed

doc/source/whatsnew/v1.5.0.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ Performance improvements
295295
- Performance improvement in :meth:`MultiIndex.get_locs` (:issue:`45681`, :issue:`46040`)
296296
- Performance improvement in :func:`merge` when left and/or right are empty (:issue:`45838`)
297297
- Performance improvement in :meth:`DataFrame.join` when left and/or right are empty (:issue:`46015`)
298+
- Performance improvement in :func:`factorize` (:issue:`46109`)
298299
- Performance improvement in :class:`DataFrame` and :class:`Series` constructors for extension dtype scalars (:issue:`45854`)
299300
-
300301

pandas/_libs/groupby.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def group_add(
5656
values: np.ndarray, # ndarray[complexfloating_t, ndim=2]
5757
labels: np.ndarray, # const intp_t[:]
5858
min_count: int = ...,
59-
datetimelike: bool = ...,
59+
is_datetimelike: bool = ...,
6060
) -> None: ...
6161
def group_prod(
6262
out: np.ndarray, # floating[:, ::1]
@@ -104,6 +104,8 @@ def group_last(
104104
counts: np.ndarray, # int64_t[::1]
105105
values: np.ndarray, # ndarray[rank_t, ndim=2]
106106
labels: np.ndarray, # const int64_t[:]
107+
mask: npt.NDArray[np.bool_] | None,
108+
result_mask: npt.NDArray[np.bool_] | None,
107109
min_count: int = ..., # Py_ssize_t
108110
) -> None: ...
109111
def group_nth(

0 commit comments

Comments
 (0)