-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
feat(Python): Allow left/center as table cell alignment format for notebooks #15830
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #15830 +/- ##
==========================================
- Coverage 80.38% 80.37% -0.01%
==========================================
Files 1263 1263
Lines 165368 165368
==========================================
- Hits 132923 132916 -7
- Misses 32445 32452 +7 ☔ View full report in Codecov by Sentry. |
…MENT env variable
…_attributes`: `col_idx`
Given the number of lint-related issues I see you had to address, can I check if you have seen the |
I will try PR updates this weekend. |
Close #15822
We use
polars.Config.set_tbl_cell_alignment()
to change the table cell alignment format forprint(pl.DataFrame())
.This PR enables change format of
display(pl.DataFrame())
output on Jupyter Notebook and Google Colab.To-do
NotebookFormatter.write_style()
selects text-align reading "POLARS_FMT_TABLE_CELL_ALIGNMENT" env variableNotebookFormatter.write_style()
selects text-align reading "POLARS_FMT_TABLE_CELL_NUMERIC_ALIGNMENT"polars.Config.set_tbl_cell_alignment()
polars.Config.set_tbl_cell_numeric_alignment()