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
worldcloud.generate_from_frequencies is creating this error:
OSError: cannot open resource
I ran the exact same code below 1 month ago and it worked fine. For some reason, it is not working anymore.
Code:
'''
from wordcloud import WordCloud
import matplotlib.pyplot as plt
import pandas as pd
Description
worldcloud.generate_from_frequencies is creating this error:
OSError: cannot open resource
I ran the exact same code below 1 month ago and it worked fine. For some reason, it is not working anymore.
Code:
'''
from wordcloud import WordCloud
import matplotlib.pyplot as plt
import pandas as pd
word_counts = df_weather['WEATHERNAME'].value_counts().to_dict()
wordcloud = WordCloud(width=800, height=400, background_color='white')
wordcloud.generate_from_frequencies(word_counts)
plt.figure(figsize=(10, 5))
plt.imshow(wordcloud, interpolation='bilinear')
plt.axis('off') # Hide axes
plt.title('Weather Condition Occurrences')
plt.show()
The text was updated successfully, but these errors were encountered: