我有一个熊猫数据帧:
df
id Description
1 POS Transfer A&W MONTREAL QC
2 MKLI QC Montreal DOLLARAMA
3 PC - PAYMENT FROM - *****11*22
我想从描述中找出地址。我所做的:
^{pr2}$这里我要在一个数组中捕获信息。我能在另一个pandas专栏中直接捕捉到它吗
在这里,我捕捉到了所有有地址的描述。为了把这个发送到googleapi,我只想选择省的左边和右边的1个单词。在以下情况下:
^{3}$我想捕捉:
A&W MONTREAL QC
在下列情况下
MKLI QC Montreal DOLLARAMA
我要抓住
QC Montreal DOLLARAMA
我该怎么做?在
我认为需要在
province
前后选择一个单词:相关问题 更多 >
编程相关推荐