forked from pandas-dev/pandas-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework groupby and resample core modules (pandas-dev#848)
* Rework groupby and resample core modules * Runtime Series is not generic * Remove default values and deprecated * Use np.integer in tests * Add a comment for Incomplete * Remove private objects * Remove deprecated Resampler.fillna * Remove private constructors * Remove more private constructors * Temporarily type labelsize as int Needs fix everywhere and the upstream docs should be updated * Tighten rolling and expanding method type * Remove step from groupby rolling * Fix resample rule * Fix groupby fillna * Add missing test for linked issue * Remove pandas.core.apply as it is not used in public code * Address CR * Address remaining CR * revert pyproject change * Temporarily pin pyright to unblock CI * New deprecations * Windows tests * Apply suggestions from code review
- Loading branch information
Showing
28 changed files
with
2,325 additions
and
851 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
from pandas.core.groupby.generic import NamedAgg as NamedAgg | ||
from pandas.core.groupby.generic import ( | ||
DataFrameGroupBy as DataFrameGroupBy, | ||
NamedAgg as NamedAgg, | ||
SeriesGroupBy as SeriesGroupBy, | ||
) | ||
from pandas.core.groupby.groupby import GroupBy as GroupBy | ||
from pandas.core.groupby.grouper import Grouper as Grouper | ||
|
||
__all__ = [ | ||
"DataFrameGroupBy", | ||
"NamedAgg", | ||
"SeriesGroupBy", | ||
"GroupBy", | ||
"Grouper", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +0,0 @@ | ||
from pandas.core.arrays.categorical import ( # , CategoricalDtype as CategoricalDtype | ||
Categorical, | ||
) | ||
|
||
def recode_for_groupby(c: Categorical, sort: bool, observed: bool): ... | ||
def recode_from_groupby(c: Categorical, sort: bool, ci): ... | ||
Oops, something went wrong.