text_plain_output_1.png
from wordcloud import WordCloud,ImageColorGenerator,STOPWORDS

import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

import warnings

import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
from wordcloud import WordCloud, ImageColorGenerator, STOPWORDS
pd.set_option('display.max_colwidth', None)
import warnings
warnings.filterwarnings('ignore')
custom_colors = ['#74a09e', '#86c1b2', '#98e2c6', '#f3c969', '#f2a553', '#d96548', '#c14953']
sns.set_style('whitegrid')
sns.despine(left=True, bottom=True)

books = pd.read_csv('/kaggle/input/goodreadsbooks/books.csv', error_bad_lines=False)
books[:10]

books.set_index('bookID', inplace=True)
books.index.rename('BookID')

books = books.drop(columns=['isbn', 'isbn13'])

books.columns

books.columns = ['Title', 'Authors', 'Avg_Rating', 'Lang_Code', '#Pages', '#Ratings', '#Text_Reviews', 'Publication_Date', 'Publisher']

books.shape

all_books = ' '.join((token for token in books['Title']))
stopwords = set(STOPWORDS)
font_path = '../input/newghanesfont/NewGhanesFont.otf'
wordcloud = WordCloud(stopwords=stopwords, font_path=font_path, max_words=500, max_font_size=350, random_state=42, width=2500, height=1000, colormap='twilight_shifted_r')
wordcloud.generate(all_books)
plt.figure(figsize=(16, 8))
plt.imshow(wordcloud, interpolation='bilinear')
plt.axis('off')
plt.show()