Commit 61101ebc authored by koneti Sri Ganesh's avatar koneti Sri Ganesh
Browse files

Merge branch 'patch-20' into 'master'

wordcloudamazon1

See merge request social-media/sentiment-analysis!15
parents dda4ed16 acfa9b00
#!/usr/bin/env python
# coding: utf-8
# In[15]:
import pandas as pd
import numpy as np
import nltk
import matplotlib.pyplot as plt
get_ipython().magic(u'matplotlib inline')
# In[4]:
amazon=pd.read_csv('amazonfinal12.csv')
# ### Importing Data
# amazon
# In[6]:
amazon.head(10)
# In[10]:
wc=''.join(amazon['Review'])
# In[11]:
from wordcloud import WordCloud
# In[17]:
# Create and generate a word cloud image:
wordcloud = WordCloud().generate(wc)
# Display the generated image:
plt.imshow(wordcloud, interpolation='bilinear')
plt.axis("off")
plt.show()
# In[ ]:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment