JuliaData / JuliaData/DataFramesMeta.jl

Work with symbols and integers on the RHS

Open
#348 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1.0
Dominant language
Julia
Stars
496
Forks
56
PR merge metrics
No merged PRs in 30d

Description

julia> df = DataFrame(a = [1, 2]);

julia> x = [true, false];

julia> @subset df x
ERROR: LoadError: MethodError: no method matching fun_to_vec(::Symbol; no_dest=true, outer_flags=(var"@byrow" = Base.RefValue{Bool}(false), var"@passmissing" = Base.RefValue{Bool}(false), var"@astable" = Base.RefValue{Bool}(false)))

Need to write a method of fun_to_vec for symbols and integers.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the fun_to_vec entry point and reproduce the DataFrame, x, and @subset example from the issue. Investigate how RHS values are handled, then verify that symbol and integer RHS expressions work without the reported MethodError.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.