Exact match of string in pandas python

后端 未结 3 1244
醉话见心
醉话见心 2021-01-20 00:09

I have a column in data frame which ex df:

  A
0 Good to 1. Good communication EI : tathagata.kar@ae.com
1 SAP ECC Project System  EI: ram.vaddadi@ae.com
2          


        
3条回答
  •  旧巷少年郎
    2021-01-20 00:36

    Thanks for the help. But seems like I found a solution that is working as of now.

    Must use str.contains(r'(?:\s|^|Ei:|EI:|EI-)'+ls[i]) This seems to solve the problem.

    Although thanks to @IsaacDj for his help.

提交回复
热议问题