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

Option to only read in double numerics #42

Open
mmuurr opened this issue Apr 26, 2024 · 0 comments
Open

Option to only read in double numerics #42

mmuurr opened this issue Apr 26, 2024 · 0 comments

Comments

@mmuurr
Copy link

mmuurr commented Apr 26, 2024

I think it would be useful to have a flag that would bypass the "does the value look like an integer" logic, opting instead to always try to create doubles during parsing. If a value larger than 2^53 happens to be in the data, this should probably be converted to Inf (or -Inf), though NaN seems fine, too ... as since this would be an opt-in flag the onus is on the programmer to know their data is representable by a float64.

The reasoning here is just to help guarantee type-consistency when parsing, e.g., list-cols in a data frame, where some entries in the source list-col just happen to contain vectors of integerish values, while other entries have non-integerish doubles.

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

No branches or pull requests

1 participant