【发布时间】:2020-12-07 10:44:36
【问题描述】:
我希望字符串数字为整数,表示出现在 total 和 USD 之间的总成本。
示例数据框:
id name lastname message
0 1 John Doe John have 100 USD, so he buy 5 eggs which total cost 10 USD
1 2 Mar Aye Mar have 10 USD, he just buy a banana from another shop for 16 USD
所以最终的结果应该是:
id name lastname message total
0 1 John Doe John have 100 USD, so he buy 5 eggs which total cost 10 USD 10
1 2 Mar Aye Mar have 10 USD, he just buy a banana from another shop for 16 USD 0
【问题讨论】:
标签: python pandas substring nltk tokenize