change Nan to 0 in numpy array python code example Example: python pandas convert nan to 0 pandas.DataFrame.fillna(0)