Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeprecationWarning: np.float is a deprecated alias for the builtin float #304

Closed
csala opened this issue Oct 19, 2021 · 0 comments
Closed
Assignees
Labels
maintenance Task related to infrastructure & dependencies
Milestone

Comments

@csala
Copy link
Contributor

csala commented Oct 19, 2021

Running the tests on branch v0.6.0-dev issues a huge number of DeprecationWarnings about np.float not being valid any more.

tests/unit/transformers/test_numerical.py::TestNumericalTransformer::test__fit
  .../RDT/tests/unit/transformers/test_numerical.py:30: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
  Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
    transformer = NumericalTransformer(dtype=np.float, nan='nan')

We should update the code to replace np.float with float or np.float64.

@csala csala self-assigned this Oct 20, 2021
@csala csala added the maintenance Task related to infrastructure & dependencies label Oct 20, 2021
@csala csala added this to the 0.6.0 milestone Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Task related to infrastructure & dependencies
Projects
None yet
Development

No branches or pull requests

2 participants