convert float to int and nan to None pandas code example Example: python pandas convert nan to 0 pandas.DataFrame.fillna(0)