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

Fix CSV parsing for missing values in first row if non float column #21

Merged
merged 5 commits into from
Dec 16, 2021

Conversation

Vindaar
Copy link
Member

@Vindaar Vindaar commented Dec 16, 2021

The previous PR #20 indirectly started with the assumption that every column that has missing values in the first row is a float column. That is of course not valid.

Our type guessing game is now extended to the first row that contains values for each column. So missing values in the first row are not taken into account for type determination anymore.

If a column missed elements in the first row, but then wasn't a float
column, the result was that the column was first interpreted to be
float, but then realized it doesn't contain float, so the result was
an object column, when e.g. an int column would have been fine.
@Vindaar Vindaar merged commit e9793aa into master Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant