fbdesignpro / sweetviz

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

fix np.warnings to use the warnings library directly instead #131

Closed frank1010111 closed 1 year ago

frank1010111 commented 1 year ago

Fixes #130 by using warnings directly rather than through numpy.

A quick test script:

import pandas as pd
import sweetviz as sv
iris = pd.read_csv('https://raw.githubusercontent.com/mwaskom/seaborn-data/master/iris.csv')
report = sv.analyze(iris)
Stephaniav1901 commented 1 year ago

Still not working!

I tried:

import pandas as pd import sweetviz as sv import numpy as np import warnings import tqdm as notebook_tqdm

Still get same error.

frank1010111 commented 1 year ago

How did you install sweetviz? When I clone the repository, install it using pip locally, and then run the sample script, it fixes the issue. An easier way to pip install my fix might be

pip install git+https://github.com/frank1010111/sweetviz.git@d6f4d8bb98ffddc2123bec57b080ba86fc64c6f8

This installs sweetviz from my fork at the specific commit I am requesting to merge into this repository.

Stephaniav1901 commented 1 year ago

Awesome!! It worked! Thank you.

rogargon commented 1 year ago

Confirmed, it works when installing sweetviz from @frank1010111 fork. Otherwise, I'm getting an error and unable to generate the report

jwergieluk commented 1 year ago

Just came here to contribute the same fix. Can also confirm that this solves the warnings problem occurring with numpy 1.24.3

shivamsp133 commented 1 year ago

Did not work for me.

pawel-jasnowski commented 1 year ago

It works well that way in Jupyter 👍 th

import numpy as np import sweetviz as sv import pandas as pd import warnings !pip install git+https://github.com/frank1010111/sweetviz.git@d6f4d8bb98ffddc2123bec57b080ba86fc64c6f8

vgrabovets commented 1 year ago

@fbdesignpro Maybe it's time to merge it and release new version?