-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
API: pseudo-public internals API for downstream libraries #40182
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
Merged
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
58c698f
API: pseudo-public internals API for downstream libraries
jbrockmendel 2b79819
Merge branch 'master' into api-pseudo-public
jbrockmendel 7233101
make_block -> new_block
jbrockmendel 76425fc
TST: test both new_block and make_block
jbrockmendel 938c30b
Merge branch 'master' into api-pseudo-public
jbrockmendel 76e7559
Merge branch 'master' into api-pseudo-public
jbrockmendel 79a703d
test
jbrockmendel 37123f0
Merge branch 'master' into api-pseudo-public
jbrockmendel 9155137
test_namespace
jbrockmendel 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
test
- Loading branch information
commit 79a703d9c562bf74872b9caa9cfd61b1044a09ea
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
""" | ||
Tests for the pseudo-public API implemented in internals/api.py and exposed | ||
in core.internals | ||
""" | ||
|
||
from pandas.core import internals | ||
from pandas.core.internals import api | ||
|
||
|
||
def test_internals_api(): | ||
assert internals.make_block is api.make_block |
You are viewing a condensed version of this merge commit. You can view the full changes here.
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.
can you also assert the entire namespace of api itself e.g.
[name for name in dir(api) if not name.startswith('_')]
and then compare to a hard coded list.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.
i dont think we want to hard-code the existing list bc whats in there is somewhat haphazard. Once we hear back from all the relevant parties on #40226 we'll be able to make that list
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.
i would fix it now with all of the symbols that are currently exposed
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.
picking my battles; updated.