Question: Let's build a Dataframe in Pandas. a. Use a dictionary to create four fields: i. Student (use Tommy, Fred, Gail, [your first name], Randy, and

 Let's build a Dataframe in Pandas. a. Use a dictionary to

Let's build a Dataframe in Pandas. a. Use a dictionary to create four fields: i. Student (use Tommy, Fred, Gail, [your first name], Randy, and Ariel) ii. Hair Color (use Brown, Grey, Blonde, [your hair color], Black and Brown) iii. Eye Color (use Hazel, Green, Blue, [your eye color], Hazel and Blue) iv. Weight in kilograms (60,80,76,60,88,85) b. Index the dataframe c. Print out the entire dataframe d. \# Print out hair color column as Pandas Series e. \# Print out eye color column as Pandas DataFrame f. \# Print out DataFrame with student and weight columns g. \# Print out the second through fourth observations

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!