I got an error stating:
AttributeError: module ‘numpy’ has no attribute ‘float’.
np.float
was a deprecated alias for the builtinfloat
. To avoid this error in existing code, usefloat
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64
here.
The thing is that it states that the error is at line 56 of my code. Line 56 has this code:
sns.boxplot(x='year', y='value', data=df_box, ax=axes[0])
I haven’t tried something because there is nothing there that resembles a np.float
.
Probably seaborn is trying to use it because I also got this:
“…/python3.8/site-packages/seaborn/categorical.py”, line 339, in is_not_numeric
np.asarray(s, dtype=np.float)
Seaborn version is 0.9.0