-
-
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
when "columns =" is specified, "pl.read_csv()" doesn't import columns based on the specified order of "columns = " #15027
Comments
The "columns" param doesn't actually say that it will select the columns in the given order; just that it will select them. So, I wouldn't say this is a bug (as the parameter does do what it says it will do), but it would probably be an improvement if it did what you expected. I'll tag this as an enhancement rather than a bug 🤔 |
Thank you so much for the quick response and willingness to include it as an enhancement, Alex! I agree, it's not technically a bug. I stumbled upon it as a recent polars user when i was doing |
Duplicate of #13066. |
FYI there are a lot of CSV parameter issues, the python function needs a complete revamp IMO with some stricter requirements laid out. Off the top of my head (these are mostly my issues, I know there are others):
|
Closing in favor of #13066 |
Checks
Reproducible example
Log output
Issue description
When specifying columns in
pl.read_csv()
, the method doesn't load csv columns based on the specified order, instead, retains original column order from the csv. Is there anyway that this order can be specified by thecolumns =
parameter?Expected behavior
Installed versions
The text was updated successfully, but these errors were encountered: