Here is a reference, I've already found for doing a similar operation but not exact.
What I have is:
The Dataframe in foll. format:
Tweets Classified FreqWord
calm director day science meetings nasal talk cutting edge remote sensing research drought veg fluorescence calm love Positive drought
love thought drought Positive drought
reign mother kerr funny none tried make come back drought Positive drought
wonder could help thai market b post reuters drought devastates south europe crops Negative drought
wonder could help thai market b post reuters drought devastates south europe crops Negative crops
wonder could help thai market b post reuters drought devastates south europe crops Negative crops
wonder could help thai market b post reuters drought devastates south europe crops Negative business
every child safe drinking water thank uk aid providing suppo ensure children rights drought Positive drought
every child safe drinking water thank uk aid providing suppo ensure children rights drought Positive water
What I need is:
The Dataframe in Pivot table where Index is Classified
, Columns is FreqWord
and Values needs to be number of occurences Tweets, Classified in that Frequent word. In short, something like foll.
Classified drought crops business water
Positive 5 0 0 1
Negative 1 2 1 0
Also note
I have more number of 'Frequent Words' and 'Classified' for this dataset