-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Assign dtypes to expected columns when dtypes is a list and column se…
…lection is used when reading a CSV file. (#3901) Assign dtypes to expected columns when dtypes is a list and column selection is used when reading a CSV file. As dtypes are passed to the polars CSV reader, projection and column selection was not applied on the dtypes in case it is a list, so the dtypes would be applied to the first x columns, instead of the corresponding columns selected by the projection/column selection. A remaining issue that is not fixed: Projection in combination with a list of dtypes which contain a pl.Date type, are converted to null dates. In case column names were used for the selection, the pl.Date type will correctly convert that column to dates. Fixes: #3891
- Loading branch information
Showing
2 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters