how to replace null value in a column with zero code example Example: pandas replace nulls with zeros df['col1'] = df['col1'].fillna(0)