Question: Write a Python program that uses Pandas Dataframes to perform the following tasks: Create a DataFrame named temperatures from a dictionary of three temperature readings
Write a Python program that uses Pandas Dataframes to perform the following tasks:
Create a DataFrame named temperatures from a dictionary of three temperature readings each for MaxineJames and Amanda
Recreate the DataFrame temperatures from part A with custom indices using the index keyword argument and a list containing MorningAfternoon and Evening
Select from temperatures the column of temperature readings for Maxine
Select from temperatures the row for Morning temperature readings
Select from temperatures the rows for Morning and Evening temperature readings
Select from temperatures the columns for temperature readings for Amanda and Maxine
Select from temperatures the elements for Amanda and Maxine in the Morning and Afternoon
Use the describe method to produce temperatures descriptives statistics
Transpose temperatures
Sort temperatures so that its column names are in alphabetical order
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
