JuliaData / JuliaData/DataFramesMeta.jl
Request @rsubset_rtransform
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 496
- Forks
- 56
- PR merge metrics
- No merged PRs in 30d
Description
Apply an @rtransform block to a restricted set of rows. Fill other rows with existing value or missing for new columns.
@chain begin
DataFrame( A = 1:4, B=[1,1,2,2] )
@rsubset_rtransform (:B == 1) begin
:A = 10
:C = 20
end
end
#result
DataFrame( A=[10,10,3,4], B=[1,1,2,2], C=[20,20,missing,missing])
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 by locating the existing @rtransform and row-subset macro implementations, then compare how they handle assignments and selected rows. The requested behavior is shown in the issue example: update only rows where B == 1, preserve existing values elsewhere, and fill new-column values with missing. Add coverage for the displayed DataFrame result if the repository has related 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
- Clearly specified
- Newbie friendliness
- 42/100