Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to replace zero with null in python

data['amount']=data['amount'].replace(0, np.nan)
data['duration']=data['duration'].replace(0, np.nan)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #replace #null #python
ADD COMMENT
Topic
Name
6+9 =