I have a list which contains words. I want to know the most frequent words in my list. I tried using 'counter' from collections package.
result = Counter(z).most_common(5)
and I got this result.
result
>>[('abc', 893), ('op', 198), ('bff', 172), ('ppf', 140), ('request', 119)]
but I only want the words and not the frequency no. attached with it. like
['abc','op','bff','ppf','request']