AllenDowney / ThinkStats2

Text and supporting code for Think Stats, 2nd Edition
http://allendowney.github.io/ThinkStats2/
GNU General Public License v3.0
4.02k stars 11.31k forks source link

np.int is deprecated as of numpy 1.2 #200

Closed Scharps closed 1 year ago

Scharps commented 1 year ago

Error raised: AttributeError: module 'numpy' has no attribute 'int'. Did you mean: 'inf'?

Changing np.int to int resolves to issue on line 2818 of thinkstats2.py

AllenDowney commented 1 year ago

Right. Looks like there are some references to np.float as well. I'll get that fixed asap. Thanks for letting me know!