JuliaAI / JuliaAI/ScientificTypes.jl

Get rid of `coerce!` DataFrames hack

Open
#192 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
98
Forks
7
PR merge metrics
No merged PRs in 30d

Description

At the moment coerce! is a variation of coerce that works in-place for data frames. But to avoid adding DataFrames as a dependency, there is a hack:

https://github.com/JuliaAI/ScientificTypes.jl/blob/10b332327e4723352d85699b4a119609d1062cd8/src/coerce.jl#L197

Now we have optional dependencies this hack can be removed.

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 reading the coerce! implementation at src/coerce.jl around line 197 and the Julia package documentation on conditional loading and extensions. Determine how the DataFrames-specific in-place behavior can use an optional dependency instead of the current hack. Done means the hack is removed while coerce! continues to support data frames without making DataFrames a required dependency.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.