我有一个数据帧,其中有一个名为“限定”的列。 它的价值如下:
b.tech
graduate
btech
hsc
degree
12th pass
pharm.d 2nd year
b pharm
pursuing b pharm
ssc
b.pharm
mba
bsc
no
student
pharm.d 3rd year
b.com
bcom
ug
diploma
b tech
我想通过用其他文本替换某些值来使数据一致。
例如,
b tech
或b.tech
或{Masters
,M.Com
等,与Post Graduate
一起使用。
如何使用regex来实现这一点?在
你可以这样做:
然后呢
^{pr2}$演示:
相关问题 更多 >
编程相关推荐