[feature request] allow dims argument for all scalar statistics

Open
#1,006 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Quiet
Tech stack
julia
Domain
data

Research direction

Start by reviewing the scalar statistics exposed by StatsBase.jl and comparing which currently accept a dims argument, including mean, var, and std from Statistics. Determine whether a consistent keyword-argument API is feasible within the existing StatsBase structure; done means the scope and behavior for all scalar statistics are clearly defined.

Written by the indexing model from the issue text.

Description

Currently only some of the scalar statistics (e.g., mean, var, std — the ones coming from Statistics) admit dims argument (preferably a keyword argument) It would be good if all scalar statistics did so. Is this possible with the way StatsBase is structured?

Dominant language
Julia
Stars
615
Forks
198
Avg merge
1d 2h
Merged PRs (30d)
5

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from JuliaStats/StatsBase.jl

All issues in JuliaStats/StatsBase.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.