-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Fix set_tbl_width_chars
panicking with negative width
#20906
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #20906 +/- ##
==========================================
- Coverage 79.30% 79.30% -0.01%
==========================================
Files 1578 1578
Lines 224135 224138 +3
Branches 2574 2574
==========================================
- Hits 177751 177748 -3
- Misses 45793 45799 +6
Partials 591 591 ☔ View full report in Codecov by Sentry. |
Should also be a similar check down in the Rust layer (on read)? 👍 |
I actually updated the PR this to interpret |
CodSpeed Performance ReportMerging #20906 will not alter performanceComparing Summary
|
I forget if we interpret any negative limit as "no limit" (which I always found a bit weird, as why would |
it looks like other config settings interpret any negative value as "no limit", e.g. here is number of columns displayed: import polars as pl
df = pl.DataFrame(
{str(i): [i] for i in range(10)}
)
print(df)
with pl.Config(tbl_cols=-7):
print(df)
I just pushed an update to the docstring to make it consisent with other settings, e.g |
fixes #18386