polars
polars copied to clipboard
PanicException when printing df with Config `set_tbl_width_chars(-1)`
Checks
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest version of Polars.
Reproducible example
pl.Config.set_tbl_width_chars(-1)
# in notebook when printing the df
pl.DataFrame([1]) # PANIC
Log output
PanicException: could not parse table width argument: ParseIntError { kind: InvalidDigit }
Issue description
wanted to get "infinite" width with config of "-1" but caused panic
Expected behavior
infinite width table or error when specifying -1
Installed versions
1.5.0