replace zero with nan python code example Example: dataframe fillna with 0 df['column'] = df['column'].fillna(0)