Skip to content

Commit

Permalink
CLN: assorted (pandas-dev#46181)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrockmendel authored Mar 1, 2022
1 parent f3cdd05 commit 7001e9a
Show file tree
Hide file tree
Showing 20 changed files with 274 additions and 209 deletions.
1 change: 1 addition & 0 deletions doc/source/whatsnew/v1.5.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ Performance improvements
- Performance improvement in :meth:`MultiIndex.get_locs` (:issue:`45681`, :issue:`46040`)
- Performance improvement in :func:`merge` when left and/or right are empty (:issue:`45838`)
- Performance improvement in :meth:`DataFrame.join` when left and/or right are empty (:issue:`46015`)
- Performance improvement in :func:`factorize` (:issue:`46109`)
- Performance improvement in :class:`DataFrame` and :class:`Series` constructors for extension dtype scalars (:issue:`45854`)
-

Expand Down
4 changes: 3 additions & 1 deletion pandas/_libs/groupby.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def group_add(
values: np.ndarray, # ndarray[complexfloating_t, ndim=2]
labels: np.ndarray, # const intp_t[:]
min_count: int = ...,
datetimelike: bool = ...,
is_datetimelike: bool = ...,
) -> None: ...
def group_prod(
out: np.ndarray, # floating[:, ::1]
Expand Down Expand Up @@ -104,6 +104,8 @@ def group_last(
counts: np.ndarray, # int64_t[::1]
values: np.ndarray, # ndarray[rank_t, ndim=2]
labels: np.ndarray, # const int64_t[:]
mask: npt.NDArray[np.bool_] | None,
result_mask: npt.NDArray[np.bool_] | None,
min_count: int = ..., # Py_ssize_t
) -> None: ...
def group_nth(
Expand Down
Loading

0 comments on commit 7001e9a

Please sign in to comment.