Demonstrates how wrap and column_widths interact. In every case the
column's max width is capped at 100% of the dataframe's viewport so a
single cell can never be wider than the scroll area.
No wrap, no column_widths. Columns size to the longest cell; anything longer than the viewport truncates with an ellipsis.
Defaults (no wrap, auto widths)wrap=True, auto widthsFixed pixel widthsFixed pixel widths + wrapPercentage widthsPercentage widths + wrapMixed widths (px / % / int)max_chars with wide datamax_chars + fixed widths + wrap
Defaults (no wrap, auto widths)wrap=True, auto widthsFixed pixel widthsFixed pixel widths + wrapPercentage widthsPercentage widths + wrapMixed widths (px / % / int)max_chars with wide datamax_chars + fixed widths + wrap
No wrap, no column_widths. Columns size to the longest cell; anything longer than the viewport truncates with an ellipsis.
Short
⋮
Medium Column
⋮
Long Description
⋮
Also Long
⋮
id-1
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
This is a deliberately very long cell value intended to exceed any reasonable column width so we can see truncation and wrapping behavior kick in. It keeps going and going and going so that the column must either truncate with an ellipsis or wrap across multiple lines.
word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word