Skip to content

Commit 0a8198f

Browse files
committed
627
1 parent 3d6d6f6 commit 0a8198f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

501-1000/Swap Salary.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import pandas as pd
2+
3+
def swap_salary(salary: pd.DataFrame) -> pd.DataFrame:
4+
salary['sex'] = salary["sex"].replace({"m": "f", "f": "m", "m": "f", "f": "m" })
5+
return salary

0 commit comments

Comments
 (0)