Python 获取数据帧中某列的词汇表(单格)。熊猫
你好,我有这个数据集Python 获取数据帧中某列的词汇表(单格)。熊猫,python,pandas,nlp,nltk,Python,Pandas,Nlp,Nltk,你好,我有这个数据集 id cuisine ingredients processed ingredients 0 10259 greek [romaine lettuce, black olives, grape tomatoes... romaine lettuce black olives grape tom... 1 25693 souther
id cuisine ingredients processed ingredients
0 10259 greek [romaine lettuce, black olives, grape tomatoes... romaine lettuce black olives grape tom...
1 25693 southern_us [plain flour, ground pepper, salt, tomatoes, g... plain flour ground pepper salt toma...
2 20130 filipino [eggs, pepper, salt, mayonaise, cooking oil, g... eggs pepper salt mayonaise cooki...
3 22213 indian [water, vegetable oil, wheat, salt] water vegetable oil wheat salt
4 13162 indian [black pepper, shallots, cornflour, cayenne pe... black pepper shallots cornflour cay...
... ... ... ... ...
39769 29109 irish [light brown sugar, granulated sugar, butter, ... light brown sugar granulated sugar but...
39770 11462 italian [KRAFT Zesty Italian Dressing, purple onion, b... kraft zesty italian dressing purple onion...
39771 2238 irish [eggs, citrus fruit, raisins, sourdough starte... eggs citrus fruit raisins sourdough...
39772 41882 chinese [boneless chicken skinless thigh, minced garli... boneless chicken skinless thigh minced ga...
39773 2362 mexican [green chile, jalapeno chilies, onions, ground... green chile jalapeno chilies onions ...
我想要的是在一个有2列的数据框架中获取每种烹饪的词汇表(单格)。我试着分解一下专栏的成分,然后按菜谱分组,但没有成功。有人有什么建议吗