例如,我想在一个列中将所有等于0.2的数字替换为0。在Scala中该怎么做?谢谢。
编辑:
|year| make|model| comment |blank|
|2012|Tesla| S | No comment | |
|1997| Ford| E350|Go get one now th...| |
|2015|Chevy| Volt| null | null|
这是我的数据框,我想将“制造商”列中的“特斯拉”更改为“S”
|2012|S| S|
吗? - ccheneson