![](/img/trans.png)
[英]How can I count the occurrence of adjacent elements in order in Python?
[英]How do I count the occurrence of elements in a list using python?
您可以使用专门为此构建的 pandas function:
df2['ingredients'].explode().value_counts()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.