What is the best way to account for (not a number) nan values in a pandas DataFrame?
The following code:
import numpy as np import pandas as pd dfd =
dfd['a'].isnull().value_counts()
return : (True 695 False 60, Name: a, dtype: int64)
return :
True : represents the null values count False : represent the non-null values count