Interchanging Values in a Column - Pyspark

Viewed 14

I have a data frame with a Column Gender. I have to replace "Male" with "Female" and "Female" with "Male". How can this be done in PySpark?

0 Answers
Related