datatable.options.display.max_column_width¶
max_column_width
max_column_width
This option controls the threshold for the column’s width
to be truncated. If a column’s name or its values exceed
the max_column_width
, the content of the column is truncated
to max_column_width
characters when printed.
This option applies to both the rendering of a frame in a terminal, and the rendering in a Jupyter notebook.
Parameters¶
return
int
Current max_column_width
value. Initially, this option is set to 100
.
new_max_column_width
int
New max_column_width
value, cannot be less than 2
.
If new_max_column_width
equals to None
, the column’s content
would never be truncated.
except
ValueError
The exception is raised when the new_max_column_width
is less than 2
.
The content on this page is licensed under the Creative Commons Attribution 4.0 License
(CC BY 4.0) ,
and code samples are licensed under the MIT License.