python fill column nan with 0 code example Example: how to replace nan values with 0 in pandas df.fillna(0)