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:

  1. Setup a dictionary named emp_dict with the following column names and associated data values.

Algorithm on using pandas and numpy: Setup a dictionary named emp_dict with

  1. Create a data frame named empDF from the emp_dict dictionary
  2. Display the structure info of the empDF data frame
  3. Display the top 3 rows
  4. Use iloc for numeric indexing to display the rows 3 to 5
  5. Display emp_name and salary using column name indexing with loc
  6. group the data into a data frame named empDeptGroup
  7. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!