Skip to content
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

docs(python): Add a Plotnine example to the visualization docs #21597

Merged
merged 4 commits into from
Mar 5, 2025

Conversation

jrycw
Copy link
Contributor

@jrycw jrycw commented Mar 5, 2025

This PR adds Plotnine to the visualization docs.

@jrycw jrycw requested review from ritchie46 and c-peters as code owners March 5, 2025 06:55
@github-actions github-actions bot added documentation Improvements or additions to documentation python Related to Python Polars labels Mar 5, 2025
Copy link

codecov bot commented Mar 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.75%. Comparing base (241d34b) to head (8bafe2f).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #21597   +/-   ##
=======================================
  Coverage   79.75%   79.75%           
=======================================
  Files        1604     1604           
  Lines      231519   231519           
  Branches     2639     2639           
=======================================
+ Hits       184640   184649    +9     
+ Misses      46270    46261    -9     
  Partials      609      609           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @jrycw - I presume you build this locally and verified that it renders fine?

It supports Polars DataFrame by internally converting it to a pandas DataFrame.

it does for now 😉 but I've heard that this might be changing at some point

@jrycw
Copy link
Contributor Author

jrycw commented Mar 5, 2025

@MarcoGorelli, I ran this locally and here's the final figure (hope I got it right—still a newbie to Plotnine).

image

@MarcoGorelli
Copy link
Collaborator

thanks!

@MarcoGorelli MarcoGorelli merged commit db551fb into pola-rs:main Mar 5, 2025
12 checks passed
anath2 pushed a commit to anath2/polars that referenced this pull request Mar 5, 2025
@jrycw jrycw deleted the docs-plotnine branch March 5, 2025 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation python Related to Python Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants