【发布时间】:2019-05-08 17:33:45
【问题描述】:
我在一列数据框中有文本字符串数据
Text Column
The doctor has advised the patient to pay $200 for the treatment
Patient submitted the $200 operation fee but not the admit fee $100
从上面,如何提取数字和该数字前后的单词并将它们存储在单独的变量中
Expected Results
Var1 Var2
pay $200 for
the $200 operation fee $100
【问题讨论】:
标签: python regex data-extraction