Question: Algorithm on using pandas and numpy: Setup a dictionary named emp_dict with the following column names and associated data values. Create a data frame named
Algorithm on using pandas and numpy:
- Setup a dictionary named emp_dict with the following column names and associated data values.

- Create a data frame named empDF from the emp_dict dictionary
- Display the structure info of the empDF data frame
- Display the top 3 rows
- Use iloc for numeric indexing to display the rows 3 to 5
- Display emp_name and salary using column name indexing with loc
- group the data into a data frame named empDeptGroup
- using group command, display everyone in the MIS dept
emp_id 1 2 3 4 5 6 emp_name Rick Dan Michelle Ryan Gary Rasmi salary 623.30 515.20 611.00 729.00 843.25 578.00 dept MIS Operations MIS HR Finance MIS
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
