Problem requires Nth highest unique salary not Nth highest salary...
Intuition\n Describe your first thoughts on how to solve this problem. \n\nTook me a while to realise the question was actually asking for the Nth highest uniqu
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\nTook me a while to realise the question was actually asking for the Nth highest __unique__ salary...\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\ndgrd\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nimport pandas as pd\nimport numpy as np\n\ndef nth_highest_salary(employee: pd.DataFrame, N: int) -> pd.DataFrame:\n    column_name = f"getNthHighestSalary({N})"\n    unique_salaries =  np.sort(pd.unique(employee["salary"]))[::-1]\n    if N > len(unique_salaries):\n        return pd.DataFrame(data=[None], columns = [column_name]).reset_index(drop=True)\n    return pd.DataFrame(data=[unique_salaries[N-1]], columns = [column_name]).reset_index(drop=True)\n```
['Pandas']