-
Notifications
You must be signed in to change notification settings - Fork 286
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
NA is still converted to NaN even in a string column #169
Labels
Comments
This problem is due to the ReadCSV function converting the "NA" string to "NaN" before we assign a data type to the column, it should be tagged as a bug. I'm trying to make a patch for this issue. |
prliu
added a commit
to prliu/gota
that referenced
this issue
Nov 26, 2021
prliu
added a commit
to prliu/gota
that referenced
this issue
Nov 26, 2021
Much appreciated, i look forward to this being merged :) |
shivamthapar
added a commit
to runway/gota
that referenced
this issue
Nov 20, 2024
… column Copied from this PR: go-gota#175
shivamthapar
added a commit
to runway/gota
that referenced
this issue
Nov 20, 2024
… column Copied from this PR: go-gota#175
shivamthapar
added a commit
to runway/gota
that referenced
this issue
Nov 20, 2024
shivamthapar
added a commit
to runway/gota
that referenced
this issue
Nov 20, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue
It doesn't seem to matter what the column type is in the data frame NA will always get converted to NaN.
Expected Behavior
NA would only be converted to NaN in
int
andfloat
columnsActual Behaviour
NA is converted to NaN regardless of the type
Example
Take this modified version of some data from the README
which produces the following output
In both colums:
Region
with an implicit string typeAge
where i have explicitly set the type to stringThe string value NA is converted
The text was updated successfully, but these errors were encountered: