This is a tutorial on how to make wordcloud using python´s wordcloud library. It is easy to follow and I hope you like it!
my code:
#libraries needed
import pandas as pd
from wordcloud import WordCloud, STOPWORDS
import matplotlib.pyplot as plt
df = pd.read_excel("your path")
text = " ".join(cat.split()[0] for cat in df.Car)
def plot_cloud(wordcloud):
Set figure size
plt.figure(figsize=(15, 5))
Display image
plt.imshow(wordcloud)
No axis details
plt.axis("off");
wordcloud = WordCloud(width= 3000, height = 2000, background_color='black', colormap='plasma', collocations=False, stopwords = STOPWORDS).generate(text)
plot_cloud(wordcloud)
wordcloud.to_file("your_path/cloud.png")
If you have any questions please ask!
A little about me : )
Name: Harsimrat
Age: 15
Hobbies: CODING!
Auf dieser Seite können Sie das Online-Video WORDCLOUD using python wordcloud library I saving wordcloud to desktop I Python Pandas I mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer FUNTOCODE 09 März 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 349 Mal angesehen und es wurde von 10 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!