-
Notifications
You must be signed in to change notification settings - Fork 370
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
How do I get values from a data frame with Nullable? #1124
Comments
I'm not sure what you mean. julia> df[:a]
3-element NullableArrays.NullableArray{Int64,1}:
1
2
3
julia> dropnull(df[:a])
3-element Array{Int64,1}:
1
2
3 You can also convert directly to an |
Ok, my bad. I missed to check the latest documentation as the "stable" documentation still uses DataArrays. When I drop the nulls I'm often curious to know which rows that I drop so that I can do things like |
Btw I don't get anything to work with DataFrames with Nullable. DataFramesMeta doesn't work at all. |
There might be some work started on making DataFramesMeta work around this problem with Nullable. But I think this new feature should be solved in DataFrames rather than requiring all users of DataFrames to implement their own workarounds. |
That's just a bug, similar to JuliaStats/NullableArrays.jl#142. We should definitely try to fix this. DataFramesMeta hasn't been updated to work with NullableArrays yet. Anyway, these are not issues in DataFrames per se, so closing. We already have #1092 for the roadmap. |
Thanks for the references! |
Before Nullable it was possible to get values from a data frame with
v = df[:a]
but since NullableArrays that doesn't work anymore. Isv = [get(x) for x in df[:a]]
the most convenient way to access the values now?The text was updated successfully, but these errors were encountered: