-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
API: Add pandas.api.typing #48578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+151
−40
Merged
API: Add pandas.api.typing #48578
Changes from 34 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
ea91291
API: Add pandas.api.typing
rhshadrach 985627c
whatsnew note
rhshadrach 1114428
Merge branch 'main' into groupby_in_api
rhshadrach d4e6e09
Don't import Styler
rhshadrach 3dd6cf8
Test fixup for Styler
rhshadrach 8f953a5
API: Add pandas.api.typing
rhshadrach d00861e
Merge branch 'main' into groupby_in_api
rhshadrach e94061f
Add back Styler
rhshadrach b3abf13
Merge branch 'main' of https://github.com/pandas-dev/pandas into grou…
rhshadrach 236e99d
Merge branch 'groupby_in_api' of https://github.com/rhshadrach/pandas…
rhshadrach d4f39d4
Merge branch 'groupby_in_api' of https://github.com/rhshadrach/pandas…
rhshadrach 3f63dd5
Merge branch 'main' of https://github.com/pandas-dev/pandas into grou…
rhshadrach 44edcdb
Revert Styler changes
rhshadrach 04a88d9
Point to pandas.api.typing for GroupBy objects
rhshadrach b11b21b
Merge branch 'main' of https://github.com/pandas-dev/pandas into grou…
rhshadrach 7a8b1aa
Add references to pandas.api.typing
rhshadrach b0423af
fixup
rhshadrach 79fe367
Merge branch 'main' of https://github.com/pandas-dev/pandas into grou…
rhshadrach 940a33e
Refinements
rhshadrach b558c0a
Merge branch 'main' of https://github.com/pandas-dev/pandas into grou…
rhshadrach 56a2480
Add references to User Guide; fixup docstrings
rhshadrach 0e279f4
Add references
rhshadrach edaa9c3
Merge branch 'groupby_in_api' of https://github.com/rhshadrach/pandas…
rhshadrach 1b8189c
fixup
rhshadrach 3506ea6
Merge branch 'main' of https://github.com/pandas-dev/pandas into grou…
rhshadrach 433040c
Merge branch 'main' of https://github.com/pandas-dev/pandas into grou…
rhshadrach 0dd0e2e
Move whatsnew to 2.1.0
rhshadrach 45de284
Merge branch 'main' of https://github.com/pandas-dev/pandas into grou…
rhshadrach 781ff4a
Merge branch 'main' of https://github.com/pandas-dev/pandas into grou…
rhshadrach cd40744
Merge branch 'main' of https://github.com/pandas-dev/pandas into grou…
rhshadrach 0e8cb7a
Docstring fixup
rhshadrach cf1d68b
Merge branch 'main' of https://github.com/pandas-dev/pandas into grou…
rhshadrach bb164e5
Merge branch 'main' into groupby_in_api
simonjayhawkins 621b37e
Merge branch 'main' into groupby_in_api
rhshadrach df0d343
Test dir of api.typing
rhshadrach 9f868f1
Merge branch 'main' of https://github.com/pandas-dev/pandas into grou…
rhshadrach 4689965
Merge branch 'main' of https://github.com/pandas-dev/pandas into grou…
rhshadrach File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
""" | ||
Public API classes that store intermediate results useful for type-hinting. | ||
""" | ||
|
||
from pandas.core.groupby import ( | ||
DataFrameGroupBy, | ||
SeriesGroupBy, | ||
) | ||
from pandas.core.resample import ( | ||
DatetimeIndexResamplerGroupby, | ||
PeriodIndexResamplerGroupby, | ||
Resampler, | ||
TimedeltaIndexResamplerGroupby, | ||
TimeGrouper, | ||
) | ||
from pandas.core.window import ( | ||
Expanding, | ||
ExpandingGroupby, | ||
ExponentialMovingWindow, | ||
ExponentialMovingWindowGroupby, | ||
Rolling, | ||
RollingGroupby, | ||
Window, | ||
) | ||
|
||
# TODO: Can't import Styler without importing jinja2 | ||
# from pandas.io.formats.style import Styler | ||
from pandas.io.json._json import JsonReader | ||
from pandas.io.stata import StataReader | ||
|
||
__all__ = [ | ||
"DataFrameGroupBy", | ||
"DatetimeIndexResamplerGroupby", | ||
"Expanding", | ||
"ExpandingGroupby", | ||
"ExponentialMovingWindow", | ||
"ExponentialMovingWindowGroupby", | ||
"JsonReader", | ||
"PeriodIndexResamplerGroupby", | ||
"Resampler", | ||
"Rolling", | ||
"RollingGroupby", | ||
"SeriesGroupBy", | ||
"StataReader", | ||
# See TODO above | ||
# "Styler", | ||
"TimedeltaIndexResamplerGroupby", | ||
"TimeGrouper", | ||
"Window", | ||
] |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just commenting that in a follow up PR it might make sense for these objects to have their own API Reference page?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea - agreed. I can open an issue to track.