I have a list that contains text and title of section.
lists = [['earth total surface area land Jellicle', 'first_section'] ,['university earth surface pleasant Jellicle', 'first_section'] ,['first university east france north', 'second_section'] ,['first north university', 'second_section']]
I would like to get top of 3 most common words in text groups by first_section and second_section
[['first_section'], ['earth', 'surface', 'jellicle'] ['second_section'],['first' , 'university', 'north']]
I’m new to this and I couldn’t find anything on Google that could help me.