-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
use _repr_inline_
for indexes that define it
#7183
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 all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
7262019
use the inline repr, if available
keewis 26c001c
remove the unused max_width argument
keewis c0b1266
also remove the unused is_index parameter
keewis 7ca553d
add tests for the index summarizer
keewis 754dcdb
add a basic _repr_inline_ implementation
keewis 1494448
don't delegate to __repr__ since _repr_inline_ is now guaranteed to e…
keewis ba35922
update the test to check the default implementation
keewis 982305f
don't strip the `Index` suffix
keewis 4e64237
undo the code simplification: pandas indexes use the same code path
keewis ba59df5
move the inline index repr formatting to a separate function
keewis a50b1a0
properly use the max_width setting
keewis 5163133
fix the definition of the `_repr_inline_` method
keewis 1aa4917
disable `mypy` for the index formatting test
keewis 850a37c
styling [skip-ci]
keewis 1f82ee2
trigger CI
keewis b8ac6c0
add a comment explaining why we need the `repr` fallback
keewis d323f9f
Merge branch 'main' into index-repr_inline
keewis 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
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.
Uh oh!
There was an error while loading. Please reload this page.