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. However, it will have no effect for data in fixed-width columns, such as boolean, numeric, date or time.
Parameters¶
return
intCurrent max_column_width value. Initially, this option is set to 100.
value
intNew max_column_width value, cannot be less than 2.
If value equals to None, the column’s content
would never be truncated.
except
ValueErrorThe exception is raised when the value 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.