polars icon indicating copy to clipboard operation
polars copied to clipboard

PanicException when printing df with Config `set_tbl_width_chars(-1)`

Open Julian-J-S opened this issue 5 months ago • 0 comments

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

Julian-J-S avatar Aug 26 '24 16:08 Julian-J-S