Open
Description
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).