module 'numpy' has no attribute 'warnings' AttributeError with numpy > 1.23.x
katiesandford opened this issue · 1 comments
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.
The next release will contain the fix.