DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to replace zero with null in python
df2[["Weight","Height","BootSize","SuitSize"]].astype(str).replace('0',np.nan)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#replace
#null
#python
ADD COMMENT
Topic
COMMENT
Name
3+3 =
Submit