Skip to content

Consider exporting StatsBase.sample from Statistics stdlib #32343

@juliohm

Description

@juliohm

This is a feature request to consider exporting basic names such as sample defined in StatsBasefrom theStatistics` stdlib.

Right now whenever we need access to the sample function, we need this extra import, which seems suboptimal:

using Statistics # cool, we load anything related  to stats
using StatsBase # urgh, we still need this for sample, and other functions

It seems reasonable to reexport StatsBase from Statistics. That would solve a bunch of name-related issues:

The long-term solution is to move the code as well, but meanwhile, I think we could just reexport the names.

Metadata

Metadata

Assignees

No one assigned

    Labels

    statisticsThe Statistics stdlib modulestdlibJulia's standard library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions