![]() |
1
1
只用
返回:
请注意,这将替换所有出现的
|
![]() |
2
1
如果只想替换“col1”中的“.”,则可以执行以下操作:
|
![]() |
3
0
对系列而不是整个df调用replace
也可以使用np.where
|