how to replace null values with 0 in data frmae code example Example: pandas replace nan data["Gender"].fillna("No Gender", inplace = True)