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


PHOTO EMBED

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

Saved by @arielvol #python

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

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