EASY CODE TO UNDERSTAND
\n\n# Approach\n Describe your approach to solving the problem. \n- By creating one extra list to store the "sex" using for loop if present sex is "F" store "M"
\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n- By creating one extra list to store the "sex" using for loop if present sex is "F" store "M" in the list and if present sex is "M" store "F" in the list\n- assign the list as sex coloumn\n- return the data frame\n\n\n\n\n# Code\n```\nimport pandas as pd\n\ndef swap_salary(salary: pd.DataFrame) -> pd.DataFrame:\n    d=[]\n    for i in salary["sex"]:\n        if(i=="f"):\n            d.append("m")\n        elif(i=="m"):\n            d.append("f")\n    salary["sex"]=(d)\n    return salary\n```
['Database', 'Pandas']