replace values with nan pandas.read_csv code example Example: pandas replace nan data["Gender"].fillna("No Gender", inplace = True)