0 points

python - replace a value in the entire pandas data frame - Stack Overflow


dashboard

Sun Aug 23 2020 10:15:12 GMT+0000 (UTC)

Posted by @arielvol #python

df.replace(to_replace = 0.0, value = -1, inplace = True)
content_copy Copy

https://stackoverflow.com/questions/40813581/replace-a-value-in-the-entire-pandas-data-frame