JuliaData / JuliaData/DataAPI.jl
isordered
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 35
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
This function is defined in CategoricalArrays.jl.
CategoricalArrays.isordered(x::CategoricalValue) = isordered(x.pool)
However, it is quite generic and would be beneficial to have it defined in DataAPI.jl as something like
DataAPI.isordered(::Any) = false
DataAPI.isordered(obj::AbstractVector) = issorted(obj)
Thoughts?
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 comparing the isordered definition in CategoricalArrays.jl with the proposed DataAPI.jl definitions in this issue. Review the unresolved discussion before deciding whether the API belongs in DataAPI.jl and what behavior should be specified for Any and AbstractVector. Done requires an agreed scope, implementation, and coverage for the chosen behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100