fbdesignpro / sweetviz

Visualize and compare datasets, target values and associations, with one line of code.
MIT License
2.9k stars 273 forks source link

module 'numpy' has no attribute 'warnings' AttributeError with numpy > 1.23.x #130

Closed katiesandford closed 1 year ago

katiesandford commented 1 year ago

Bug: Given I have installed numpy 1.24 and sweetviz 2.1.4 (the latest) When I call any sweetviz function which instantiates a GraphNumeric class The code throws: `AttributeError: module 'numpy' has no attribute 'warnings'

Expected: Either sweetviz pins numpy to <1.24 where np.warnings existed Or ideally, graph_numeric is made to work with the latest numpy

Here is a log of the error on mac (monterey with m1 chip) and python3.10. The graph numeric class calls np.warnings (https://github.com/fbdesignpro/sweetviz/blob/master/sweetviz/graph_numeric.py), which works for 1.23.x, but was removed in 1.24. I cannot find the removal in the numpy release notes, but it definitely seems to have been removed.

Screenshot 2023-01-05 at 10 30 21
fbdesignpro commented 1 year ago

The next release will contain the fix.