how to convert nan to integer in pandas code example Example: python pandas convert nan to 0 pandas.DataFrame.fillna(0)