Skip to content

Remove alias in pandas docs for numpy.random.randn #147

Open
@datapythonista

Description

@datapythonista

See the discussion here: pandas-dev/pandas#28038 (comment)

In pandas we have a header variable that we inject at the top of all documentation pages. One of the things there is randn = np.random.randn, which is a very bad idea that is only useful to confuse users.

With a quick grep I could just find a single case where that is used:

whatsnew/v0.10.0.rst:  In [58]: p4d = Panel4D(randn(2, 2, 5, 4),

We should replace that case to use np.randon.randn explicitly, remove that line from the header in doc/source/conf.py and see in the doc builds if nothing fails after that change (this can be done locally or also in the CI).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions