f the column 'petal_length' to NaN. code example
Example 1: python pandas replace nan with null
df.fillna('', inplace=True)
Example 2: how to fill nan values with mean in pandas
df.fillna(df.mean())
df.fillna('', inplace=True)
df.fillna(df.mean())