mcabbott / mcabbott/AxisKeys.jl
Request - wrapdims - fill missing cells with missing
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 154
- Forks
- 31
- PR merge metrics
- No merged PRs in 30d
Description
Currently wrapdims fills missing cells with some very large number. Example below.
Could these be replaced by 'missing' or some specified value.
df = DataFrame( x=[1,1,2], y=[1,2,1], data=[10,11,12])
wrapdims(df, :data, :x, :y )
ka(2,2) #=2800920006512
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the wrapdims behavior shown in the issue and inspect how missing cells are currently represented. Determine how a missing value or caller-specified fill value should work with coalesce and conversion back to a DataFrame; done means the example no longer produces the large sentinel value and the requested fill behavior is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100