-
Notifications
You must be signed in to change notification settings - Fork 292
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
Integers coerce to Floats when creating a dataset from an xls document #410
Comments
Seems like there is a bug in the |
Just perusing. Yea, the underlying format in Excel is that everything is a float (I believe). So values from apache POI are going to coerce to floats. I handle this via some additional parsing by default. I think there may be specifically tagged types of integers in Excel, but they're stored as floats maybe. |
Thank you for that. Seems like Apache POI doesnt have a supported Integer type as shown here https://poi.apache.org/apidocs/dev/org/apache/poi/hsmf/datatypes/Types
I would also be glad to know why Incanter yields wrong values when multiple
data types are used as mentioned above.
|
I am going to close this issue because i cannot reproduce the wrong values error after trying with new excel files, even with multiple data types. |
I have created an xls document with only integers in its cells but when I read it using Incanters
read-xls
function, all the values/cells are coerced to floats.A previous issue #248 mentioned about integers being coerced to floats when creating a dataset from a map but it seems like that was fixed. I realized this while i was checking issue #273 which i think is still embodied in this issue.
Edit: This is not causing issues in my program but I'm just wondering why this happens, or if there is a way to prevent this from happening.
The text was updated successfully, but these errors were encountered: