-
Notifications
You must be signed in to change notification settings - Fork 143
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
Handling of an explicit header #316
Comments
Kind of...........in the first case, it detected 3 columns, but the file has inconsistent rows that include additional columns. In the second case, we detect 4 columns and you only provide 3. The latter is a clear error; the former feels like ok behavior too since we generally try to not error on invalid rows. |
But passing explicit header is kind of "I pass an additional row of data that is missing in the file" so detection of number of columns should include it. The reason for this issue is that this is a way to force dropping columns (i.e. keep only first few columns) - and this is something that recently was requested. In general we could provide a separate kwarg that could be used to specify what columns to keep (not sure if it has been discussed earlier). |
Yes, see the discussion starting here: #154 (comment) |
Nice. I guess then that you can close this PR if you feel that your interpretation of detection of number of columns is more appropriate in CSV.jl context. |
Well, for the use-case of "select"ing columns, I do feel that having something external to |
Those two behaviors seem inconsistent (in one case we are not strict, while we are in the other):
The text was updated successfully, but these errors were encountered: