0

I want to use the library dedupe but I can't import it. I've installed it via 'pip install dedupe' but when I try to import 'pandas_dedupe' as shown in this video .

I get the following error message:

AttributeError: module 'numpy' has no attribute 'float'. np.float was a deprecated alias for the builtin float. To avoid this error in existing code, 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. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

I expect to see no error message when I try to import.

I think the following posts has a lot of similarity of my problem: How can I solve error "module 'numpy' has no attribute 'float'" in Python?

0 Answers0