Clip salary values to be between 60,000 and 100,000. Values below 60k should become 60k, values above 100k should become 100k.
DataFrame df with columns: name, department, salary, age, city
salary values: minimum 60000, maximum 100000Ready 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.