我有一个大数据框,如下所示:
df1(样本数据)
a name keywords
1 ramesh rrahul,rapple
2 venkat rtemple
3 rajesh rcake,rphone,rmaths
4 lamda rcon
5 feast rcamera,rtab
我想删除r出现在由逗号分隔的单词组成的字符串中每个单词开头的字母。输出应如下所示:
a name keywords
1 ramesh rahul,apple
2 venkat temple
3 rajesh cake,phone,maths
4 lamda con
5 feast camera,tab
相关分类