Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5. Assume import numpy as np and import pandas as pd. Do not hard-code for example data Given: In [1]: temps Out [1]: JAN FEB

image text in transcribed

5. Assume import numpy as np and import pandas as pd. Do not hard-code for example data Given: In [1]: temps Out [1]: JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC Location Chesapeake Bay VA Kiptopeke VA Lewisetta VA 46 42 44 65 72 78 81 81 7971 5649 36 39 46 65 72 78 81 81 7971 54 44 39 40 48 65 72 78 81 81 7971 53 44 Miami Beach FL Stuart Beach FL Virginia Key FL 71 73 75 65 72 78 81 81 7971 76 73 67 66 70 65 72 78 81 81 7971 75 70 71 72 74 65 72 78 81 81 79 71 76 73 (a) Add a column to the temps DataFrame with the name avg and whose values are the average temperature for each location. (5](b) Assign the variable coldest-jan temp the value of the lowest temperature in JAN. [5](c) Assign to the variable warmest nov a Series with the Locations and associated NOV temperatures that are the highest (there will be two). [5](d) Append a new row to temps with Average as the index key and whose values are the averages of each of the columns 5. Assume import numpy as np and import pandas as pd. Do not hard-code for example data Given: In [1]: temps Out [1]: JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC Location Chesapeake Bay VA Kiptopeke VA Lewisetta VA 46 42 44 65 72 78 81 81 7971 5649 36 39 46 65 72 78 81 81 7971 54 44 39 40 48 65 72 78 81 81 7971 53 44 Miami Beach FL Stuart Beach FL Virginia Key FL 71 73 75 65 72 78 81 81 7971 76 73 67 66 70 65 72 78 81 81 7971 75 70 71 72 74 65 72 78 81 81 79 71 76 73 (a) Add a column to the temps DataFrame with the name avg and whose values are the average temperature for each location. (5](b) Assign the variable coldest-jan temp the value of the lowest temperature in JAN. [5](c) Assign to the variable warmest nov a Series with the Locations and associated NOV temperatures that are the highest (there will be two). [5](d) Append a new row to temps with Average as the index key and whose values are the averages of each of the columns

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Visual Basic 2005 For Windows Mobile Web Office And Database Applications Comprehensive

Authors: Gary B. Shelly, Thomas J. Cashman, Corinne Hoisington

1st Edition

0619254823, 978-0619254827

More Books

Students also viewed these Databases questions

Question

=+2 Is the decision sustainable in the long run?

Answered: 1 week ago