Skip to content

CLN: unify numpy.random-related imports #37053

@onshek

Description

@onshek

Location of the imports

import numpy as np
from numpy.random import randn

Imports problem

All numpy-related imports are only about numpy.random including randint, choice, normal, etc
Part of numpy.random-related imports use aliases

Suggested fix for imports

eg: import numpy as np
 && np.ranom.randn --> from numpy.random import randn
from numpy.random import randn --> import numpy as np
 && np.ranom.randn

Metadata

Metadata

Assignees

Labels

CleanTestingpandas testing functions or related to the test suite

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions