You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wordcloud = WordCloud(
File "/wordcloud/wordcloud.py", line 410, in generate_from_frequencies
raise ValueError("We need at least 1 word to plot a word cloud, "
ValueError: We need at least 1 word to plot a word cloud, got 0.
Expected Behaviour
Should create an html
Data Description
one of df columns should have only empty strings and Nones
text summarizer culculates word_counts but remove whitespaces. So we have empry series
ydata_profiling.model.pandas.describe_categorical_pandas.word_summary_vc
words = word_lists.explode().str.strip(string.punctuation + string.whitespace)
wordcloud cant work with empty series
wordcloud.wordcloud.WordCloud.generate_from_frequencies
if len(frequencies) <= 0:
raise ValueError("We need at least 1 word to plot a word cloud, "
"got %d." % len(frequencies))
As I understood in the previous versions q would be categorical not Text
The text was updated successfully, but these errors were encountered:
Current Behaviour
Fails with
Expected Behaviour
Should create an html
Data Description
one of df columns should have only empty strings and Nones
Code that reproduces the bug
pandas-profiling version
v4.3.1
Dependencies
OS
MacOs 13.4 (22F66)
Checklist
Hints
ydata_profiling.model.pandas.describe_categorical_pandas.word_summary_vc
words = word_lists.explode().str.strip(string.punctuation + string.whitespace)
wordcloud.wordcloud.WordCloud.generate_from_frequencies
if len(frequencies) <= 0:
raise ValueError("We need at least 1 word to plot a word cloud, "
"got %d." % len(frequencies))
The text was updated successfully, but these errors were encountered: