-
Notifications
You must be signed in to change notification settings - Fork 110
Partial fix for 1078: Enhance DataFrame Formatter Configuration with Memory and Display Controls #1119
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
Conversation
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
… DataFrame display" This reverts commit f9b78fa.
…or display options
…s to DataFrameHtmlFormatter
…emory limit" This reverts commit e089d7b.
…gurations" This reverts commit 4090fd2.
…al for improved clarity
…pache#1108) * docs: enhance user guide with detailed DataFrame operations and examples * move /docs/source/api/dataframe.rst into user-guide * docs: remove DataFrame API documentation * docs: fix formatting inconsistencies in DataFrame user guide * Two minor corrections to documentation rendering --------- Co-authored-by: Tim Saucer <timsaucer@gmail.com>
6588c8c
to
d5a3f1f
Compare
347282c
to
a9668c7
Compare
583bc9b
to
714aa70
Compare
Incredible work. Thank you! |
timsaucer
approved these changes
May 5, 2025
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Which issue does this PR close?
partial fix for #1078
Rationale for this change
This change improves the flexibility and performance of DataFrame rendering in notebooks and other environments.
It introduces fine-grained control over memory usage, row display counts, and HTML output optimization, making large data exploration more efficient and user-friendly.
It also cleans up validation logic for formatter settings and supports custom styling providers more robustly.
What changes are included in this PR?
max_memory_bytes
,min_rows_display
, andrepr_rows
parameters to the DataFrame HTML formatter.configure_formatter
API and documentation to expose new parameters._validate_positive_int
,_validate_bool
).FormatterConfig
in Rust to carry display configuration across DataFrame rendering.collect_record_batches_to_display
to respect new memory and row limits dynamically.use_shared_styles
.Are these changes tested?
✅ Yes, additional tests have been added:
test_html_formatter_memory_and_rows
.Are there any user-facing changes?
✅ Yes: