Facebook
Twitter
LinkedIn
Instagram
Whatsapp
Call Now
Quick Inquiry

Can I create a histogram/bar graph from a list in python? typeError: expected str, found List python ?

Can I create a histogram/bar graph from a list in python? typeError: expected str, found List python ?

You missed a [0], it should be:

 word_frequency = Counter(" ".join(description_list[0][0]).split()).most_common(10) 

Output:

enter image description here


7 0

Write a Comments


* Be the first to Make Comment

GoodFirms Badge
GoodFirms Badge

Fix Your Meeting With Our SEO Consultants in India To Grow Your Business Online