Pandas SQL Query: Display the name, salary and manger id where manager ids are null
Write a Pandas program to display the first name, last name, salary and manger id where manager ids are null.
EMPLOYEES.csv
Sample Solution :
Python Code :
Sample Output:
First name Last name Salary Manager ID Steven King 24000 nan
Click to view the table contain:
Python Code Editor:
Structure of HR database :

Have another way to solve this solution? Contribute your code (and comments) through Disqus.
Previous: Write a Pandas program to display the first name, last name, salary and department number in descending order by first name.
Next: Write a Pandas program to display the first name, last name, salary and manger id where manager ids are not null.
What is the difficulty level of this exercise?
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics