I want to count words from a dataframe. First I convert the dataframe's column to a list named "lst". and the list is here-
['তাদের উত্তরের মধ্যে সামরিকতার ঝাঁজ ছিল',
'ফোন করে যা শুনেছি তা তো মানুষ জানে আমরা তো এগুলো শুনতে অভ্যস্ত না']
Then I try this code-
lst1 = []
count=0
for i in lst:
count += 1
lst1.append(i.split(' '))
count
and the result of lst1[:2] is -
[['তাদের', 'উত্তরের', 'মধ্যে', 'সামরিকতার', 'ঝাঁজ', 'ছিল'],
['ফোন',
'করে',
'যা',
'শুনেছি',
'তা',
'তো',
'মানুষ',
'জানে',
'আমরা',
'তো',
'এগুলো',
'শুনতে',
'অভ্যস্ত',
'না']]
But I want to a list where all words are in a single list. I want like this-
['তাদের', 'উত্তরের', 'মধ্যে', 'সামরিকতার', 'ঝাঁজ', 'ছিল', 'ফোন','করে','যা','শুনেছি','তা',......,'না']
How can I do this? What should I change to get this?