Add a salary_percentile column showing each employee's percentile rank within the company.
DataFrame df with columns: name, department, salary, age, city
salary_percentile column using rank with pct=TrueReady to take your skills to the next level? Enroll in our comprehensive Data Analyst Career Track to master SQL, Python, Excel, and Power BI.
Run your code to see the result here.