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 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
Get step-by-step solutions from verified subject matter experts
