1
我有一個數據框,列表中的字符串作爲列,並希望使用collections.counter創建詞語頻率詞典。數據幀如下所示:從數據框列表創建詞語頻率詞典
>>> job_title['title']
0 [responsible, caring, trustworthy, babysitter]
1 [compassionate, trustworthy, babysitter]
2 [family, looking, kindergarten, preschool, chi...
3 [babysitter, needed, 2, children, bee, cave, n...
4 [fun, patient, nonjudgemental, babysitter]
5 [responsible, interactive, intelligent, babysi...
6 [responsible, friendly, babysitter]
7 [family, looking, kindergarten, preschool, chi...
8 [family, looking, kindergarten, preschool, chi...
9 [reliable, clean, friendly, nanny]
什麼是最有效的方法來實現這一目標?
這是完美的,太感謝你了! – mangodreamz