posit-dev / great-tables

Make awesome display tables using Python.
https://posit-dev.github.io/great-tables/
MIT License
1.43k stars 48 forks source link

fix: Polars selectors error in `GT.cols_hide()` #316

Closed jrycw closed 2 months ago

jrycw commented 2 months ago

Fix #313.

from great_tables import GT, exibble
import polars as pl
import polars.selectors as cs

exibble_pl = pl.from_pandas(exibble)

(
  GT(exibble_pl)
  .cols_hide(columns=cs.starts_with("date"))
)

image

codecov-commenter commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 82.45%. Comparing base (38033ce) to head (a349f58).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #316 +/- ## ======================================= Coverage 82.45% 82.45% ======================================= Files 41 41 Lines 4258 4258 ======================================= Hits 3511 3511 Misses 747 747 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.