First page Back Continue Last page Overview Graphics

None Values in Dictionaries

We get also a NaN, if a value in the dictionary has a None:

d = {"a":23, "b":45, "c":None, "d":0}

S = pd.Series(d)

print(S)

a 23.0

b 45.0

c NaN

d 0.0

dtype: float64