panda to csv replace NaN with NA code example Example: pandas replace nan data["Gender"].fillna("No Gender", inplace = True)