Skip to content

Commit ccf2549

Browse files
committed
Update documentation
1 parent 877226a commit ccf2549

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

docs/source/user-guide/dataframe.rst

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,17 @@ You can customize how DataFrames are rendered in HTML by configuring the formatt
7575
7676
# Change the default styling
7777
configure_formatter(
78-
max_rows=50, # Maximum number of rows to display
79-
max_width=None, # Maximum width in pixels (None for auto)
80-
theme="light", # Theme: "light" or "dark"
81-
precision=2, # Floating point precision
82-
thousands_separator=",", # Separator for thousands
83-
date_format="%Y-%m-%d", # Date format
84-
truncate_width=20 # Max width for string columns before truncating
78+
max_cell_length=25, # Maximum characters in a cell before truncation
79+
max_width=1000, # Maximum width in pixels
80+
max_height=300, # Maximum height in pixels
81+
max_memory_bytes=2097152, # Maximum memory for rendering (2MB)
82+
min_rows_display=20, # Minimum number of rows to display
83+
repr_rows=10, # Number of rows to display in __repr__
84+
enable_cell_expansion=True,# Allow expanding truncated cells
85+
custom_css=None, # Additional custom CSS
86+
show_truncation_message=True, # Show message when data is truncated
87+
style_provider=None, # Custom styling provider
88+
use_shared_styles=True # Share styles across tables
8589
)
8690
8791
The formatter settings affect all DataFrames displayed after configuration.

0 commit comments

Comments
 (0)