У нас вы можете посмотреть бесплатно KPMG Interview Question или скачать в максимальном доступном качестве, которое было загружено на ютуб. Для скачивания выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Link of the Question: https://platform.stratascratch.com/co... KPMG Interview Question Second Highest Salary Identify the second-highest salary in each department. Your output should include the department, the second highest salary, and the employee ID. Do not remove duplicate salaries when ordering salaries. For example, if multiple employees share the same highest salary, the second-highest salary will be the next salary that is lower than the highest salaries. DataFrames: employee_data employee_data: employee_id:int64 department: object salary:int64 hire_date: datetime64[ns] Using Python import pandas as pd df=employee_data df['Rank_sal']=df.groupby('department')['salary'].rank(method='dense',ascending=False) df[df['Rank_sal']==2][['department','employee_id','salary']] Kindly go through this page: Here i have solved by MySQL also with steps. / kpmg-interview-question #kpmg #interviewquestions #second #highest #salary #pandas #pythonprogramming #mysql #medium #rank #groupby #where #clause #stratascratch