我想检查数字旁边的单词。例如,我的数据框中有这一列:Recipes
Halve the clementine and place into the cavity along with the bay leaves. Transfer the duck to a medium roasting tray and roast for around 1 hour 20 minutes.
Add the stock, then bring to the boil and reduce to a simmer for around 15 minutes.
2 heaped teaspoons Chinese five-spice
100 ml Marsala
1 litre organic chicken stock
我想获得一个新的专栏,我在其中提取它们:
New Column
[1 hour, 20 minutes]
15 minutes
2 heaped
100 ml
1 litre
因为我需要与值列表进行比较:
to_compare= ["1 hour", "20 litres", "100 ml", "2", "15 minutes", "20 minutes"]
查看每行有多少个元素是共同的。谢谢您的帮助。
跃然一笑
动漫人物
慕森卡
随时随地看视频慕课网APP
相关分类