Answers for "how to set 0 when null value in python"

0

how to replace zero with null in python

data['amount']=data['amount'].replace(0, np.nan)
data['duration']=data['duration'].replace(0, np.nan)
Posted by: Guest on June-04-2020
24

python null

a = None
Posted by: Guest on March-28-2020

Code answers related to "how to set 0 when null value in python"

Python Answers by Framework

Browse Popular Code Answers by Language