WORDCLOUD using python wordcloud library I saving wordcloud to desktop I Python Pandas I

Published: 09 March 2022
on channel: FUNTOCODE
349
10

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!


On this page of the site you can watch the video online WORDCLOUD using python wordcloud library I saving wordcloud to desktop I Python Pandas I with a duration of hours minute second in good quality, which was uploaded by the user FUNTOCODE 09 March 2022, share the link with friends and acquaintances, this video has already been watched 349 times on youtube and it was liked by 10 viewers. Enjoy your viewing!