我有你的理由!如何删除包含@的所有单词,例如@AmericanVirgin。当我这样做的时候
df['text'] = df ['text'].Str.replace('@', '') only removes @
这是我的数据帧:
weet_id airline_sentiment text Raiting
0 570306133677760513 neutral @VirginAmerica What @dhepburn said. 2
1 570301130888122368 positive @VirginAmerica plus you've added commercials t... 3
2 570301083672813571 neutral @VirginAmerica I didn't today... Must mean I n... 2
输入:
输出:
相关问题 更多 >
编程相关推荐