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

refactor(python): Remove private DataFrame._read classmethods #15521

Merged
merged 14 commits into from
Apr 7, 2024

Conversation

stinodego
Copy link
Contributor

@stinodego stinodego commented Apr 7, 2024

The implementation of IO functionality was (unnecessarily) split between two places. This centralizes the logic in 1 place, makes subsequent refactors easier. There is a LOT of duplication here.

@github-actions github-actions bot added internal An internal refactor or improvement python Related to Python Polars labels Apr 7, 2024
@stinodego stinodego changed the title refactor(python): Remove private DataFrame._read_* classmethods refactor(python): Remove private DataFrame._read classmethods Apr 7, 2024
@stinodego stinodego marked this pull request as ready for review April 7, 2024 09:43
Copy link

codecov bot commented Apr 7, 2024

Codecov Report

Attention: Patch coverage is 81.69643% with 41 lines in your changes are missing coverage. Please review.

Project coverage is 81.16%. Comparing base (cc6c642) to head (8b4b0cb).
Report is 3 commits behind head on main.

Files Patch % Lines
py-polars/polars/io/parquet/functions.py 59.09% 15 Missing and 3 partials ⚠️
py-polars/polars/io/ipc/functions.py 74.00% 8 Missing and 5 partials ⚠️
py-polars/polars/io/_utils.py 71.42% 4 Missing and 2 partials ⚠️
py-polars/polars/io/csv/functions.py 93.65% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #15521      +/-   ##
==========================================
+ Coverage   81.14%   81.16%   +0.01%     
==========================================
  Files        1362     1362              
  Lines      174989   174999      +10     
  Branches     2533     2533              
==========================================
+ Hits       142000   142033      +33     
+ Misses      32505    32482      -23     
  Partials      484      484              

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

@@ -85,7 +85,7 @@ doctest: .venv build ## Run doctests
$(VENV_BIN)/pytest tests/docs/test_user_guide.py -m docs

.PHONY: docs
docs: .venv build ## Build Python docs (incremental)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was a drive-by: building the docs does not rely on the Polars binary

@stinodego stinodego merged commit 49e4244 into main Apr 7, 2024
12 checks passed
@stinodego stinodego deleted the refactor-io branch April 7, 2024 15:48
@c-peters c-peters added the accepted Ready for implementation label Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation internal An internal refactor or improvement python Related to Python Polars
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants