我想将仅包含表情符号的所有行更改为df['Comments'][2]N/A。
df['Comments'][:6]
0 nice
1 Insane3
2 😻😻❤️
3 @bertelsen1986
4 20 or 30 mm rise on the Renthal Fatbar?
5 Luckily I have one to 🔥💪🏻
以下代码不会返回我期望的输出:
df['Comments'].replace(';', ':', '!', '*', np.NaN)
预期输出:
df['Comments'][:6]
0 nice
1 Insane3
2 nan
3 @bertelsen1986
4 20 or 30 mm rise on the Renthal Fatbar?
5 Luckily I have one to 🔥💪🏻
人到中年有点甜
手掌心
相关分类