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: add tests for `cols_align` and extend support for `Polars` expressions #320

Closed jrycw closed 2 months ago

jrycw commented 2 months ago

Fix #51. This PR focuses on adding tests for cols_align.

During the process, I discovered that it should be feasible for cols_align to support Polars expressions. This enhancement is achieved by adding sel_cols = resolve_cols_c(data=self, expr=columns).

codecov-commenter commented 2 months ago

Codecov Report

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

Project coverage is 82.79%. Comparing base (38033ce) to head (b52115b).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #320 +/- ## ========================================== + Coverage 82.45% 82.79% +0.34% ========================================== Files 41 41 Lines 4258 4261 +3 ========================================== + Hits 3511 3528 +17 + Misses 747 733 -14 ```

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