BUG display.max_colwidth do not accept -1 for unlimited width #31532
Labels
Deprecate
Functionality to remove in pandas
Output-Formatting
__repr__ of pandas objects, to_string
Regression
Functionality that used to work in a prior pandas version
Milestone
Code Sample, a copy-pastable example if possible
Problem description
There is a regression with
"display.max_colwidth"
. In the past, it was only accepting integer. The way to no limit the size was to pass-1
. In pandas 1,0, this option becomes more consistent and not limiting the width should be set withNone
. However, the support for negative integer was removed.Thus, one would need to either set to
-1
orNone
depending on the pandas version. It would be best to support both options. Potentially, support for negative integer could be removed with a deprecation cycle.The text was updated successfully, but these errors were encountered: