replace float64 nan to 0 df code example Example: python pandas convert nan to 0 pandas.DataFrame.fillna(0)