0 points

python - How to replace values of each cell on a dataframe without looping it - Stack Overflow


dashboard

Fri May 29 2020 11:31:25 GMT+0000 (UTC)

Posted by @Amna #python

d = dict.fromkeys(df.select_dtypes(object).columns, 0)
df = df.assign(**d)
content_copy Copy

https://stackoverflow.com/questions/62084911/how-to-replace-values-of-each-cell-on-a-dataframe-without-looping-it