Closed jrycw closed 2 months ago
Attention: Patch coverage is 93.75000%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 86.75%. Comparing base (
fedac08
) to head (95708a5
).
Files with missing lines | Patch % | Lines |
---|---|---|
great_tables/_spanners.py | 90.00% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thanks, this is great! I wonder if in the future, there might be some good uses of polars expressions inside cases, e.g.
cols_width({cs.starts_with("abc_"): "50px"})
Although maybe there's a more polars way to go from selector -> literal? 🤔
This PR unifies
GT.cols_label()
andGT.cols_width()
to accept bothcases
and**kwargs
.Currently, these two functions have different parameter structures, which can be confusing and often requires consulting the documentation. I hope this change simplifies their usage :)