convert a column to an integer with null values pandas code example Example: pandas to convert null values to mean in numeric column df.fillna(df.mean(), inplace=True)