Open kbroughton opened 2 years ago
Me too. I have structs and lists in some data frame columns. I'm guessing this is a problem for Sweetviz?
It worked in my case! I turned into string the lists in the column
df`['col']..apply(lambda x: ', '.join(x))
To know the columns with this issue:
columns_with_lists = [col for col in df.columns if df[col].apply(lambda x: isinstance(x, list)).any()]
First try using sweetviz. I'm running in a modified scipy-notebook container running python3.9.
import sweetviz as sv
my_report = sv.analyze(df) my_report.show_html()