-
Notifications
You must be signed in to change notification settings - Fork 28
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
Request - wrapdims - fill missing cells with missing #154
Comments
I think you want this: julia> wrapdims(df, :data, :x, :y, default=missing)
2-dimensional KeyedArray(NamedDimsArray(...)) with keys:
↓ x ∈ 2-element Vector{Int64}
→ y ∈ 2-element Vector{Int64}
And data, 2×2 Matrix{Union{Missing, Int64}}:
(1) (2)
(1) 10 11
(2) 12 missing I don't recall why this isn't the default. Or if the default wants to avoid |
Thanks:) I didn't realise there was documentation for the package. (Which contains the above). |
At present there is no website, but docstrings are accessible at the REPL prompt by pressing
|
Would it be possible to add functionality like Using KeyedArray
Using DataFrames
Using Proposed @rtransform on KeyedArray
|
Currently
wrapdims
fills missing cells with some very large number. Example below.Could these be replaced by 'missing' or some specified value.
Use Case
I would then use
coalesce
to fill missings with some value (unique to each cell). Then convert back to a DataFrame.This could all be done with DataFrame functions (groupby etc) but a KeyedArray is more elegant.
The text was updated successfully, but these errors were encountered: