-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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: Enable more dispatch to scan_csv from read_csv #19600
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #19600 +/- ##
==========================================
- Coverage 79.83% 79.79% -0.05%
==========================================
Files 1536 1536
Lines 211357 211357
Branches 2445 2449 +4
==========================================
- Hits 168744 168650 -94
- Misses 42058 42148 +90
- Partials 555 559 +4 ☔ View full report in Codecov by Sentry. |
@@ -385,7 +383,7 @@ def test_dtype_overwrite_with_column_name_selection() -> None: | |||
) | |||
f = io.StringIO(csv) | |||
df = pl.read_csv(f, columns=["c", "b", "d"], schema_overrides=[pl.Int32, pl.String]) | |||
assert df.dtypes == [pl.String, pl.Int32, pl.Int64] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
read_csv
currently sorts the projection based on column position in the file, which is a bit tricky to handle without breaking changes
Experiment to see what would break