replace all nan in dataframe with 0 code example Example: pandas replace nan data["Gender"].fillna("No Gender", inplace = True)