我有一个熊猫系列在他们。我话的集合列出一串的数量出现想找到一个特定的词的频率在每个列表对于例如, 该系列产品是使用在熊猫系列
0 [All, of, my, kids, have, cried, nonstop, when...
1 [We, wanted, to, get, something, to, keep, tra...
2 [My, daughter, had, her, 1st, baby, over, a, y...
3 [One, of, babys, first, and, favorite, books, ...
4 [Very, cute, interactive, book, My, son, loves...
我想要得到每行孩子的数量。我曾尝试
series.count('kids')
这给了我一个错误说“级别的孩子必须是相同的名称(无)”
series.str.count('kids)
给我NaN值。
我应该如何去获取计数?
如果你的问题得到回答,请[接受一个(帮助最多](ht TPS://stackoverflow.com/help/someone-answers)。 –