replace value in pandas column depending if it is Nan code example Example: pandas replace nan data["Gender"].fillna("No Gender", inplace = True)