Your question is Clean or Transform Data in Python. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Phenom Talent Marketplace receives candidate skill labels from multiple sources. Write a function that cleans these labels, applies known aliases, removes duplicates, and ranks the resulting canonical skills by frequency.
+, and # with one space, and trimming surrounding spaces.aliases, replace it with the normalized alias value.Implement normalize_skills(raw_skills, aliases), where raw_skills is a list of strings and aliases is a dictionary mapping string aliases to canonical string names. Return a list of canonical skill strings. Do not modify either input.
def normalize_skills(raw_skills, aliases):