Data Analysis with Python Projects - Medical Data Visualizer

Try reading the error messages (I don’t mean this in a rude way, just that they do explain clearly the problem):

np.bool was a deprecated alias for the builtin bool. To avoid this error in existing code, use bool by itself.`

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.

You might have used a different version of numpy locally. You can check the versions of numpy locally and on github with this python line:

print(np.__version__)

The tests might be written for the older verson and you can try downgrading it numpy on gitpod. You can use this command:

pip install --force-reinstall numpy==1.20.3

This version should work.

1 Like