Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

rivadh=[20,24,28,34,39,42,43,43,40,35,28,22]tokyo=[10,10,14,19,23,26,30,31,27,22,17,12] Q2 [1.5 point]: Generate and print a list named diff that has the difference between Riyath temperature and Tokyo temperature for each of the

image text in transcribed
rivadh=[20,24,28,34,39,42,43,43,40,35,28,22]tokyo=[10,10,14,19,23,26,30,31,27,22,17,12] Q2 [1.5 point]: Generate and print a list named diff that has the difference between Riyath temperature and Tokyo temperature for each of the twelve months. To generate this list, write a single line of code that uses lambda function and map to generate the list of difference between temperatures. Q2 [1.5 point]: Using the list diff as a numpy array to change the array such that the array has A rows and 3 columns and keep it with the name seasons_diff. Now separate each row of seasons ditf in four separate arrays called s1_diff, s2_diff, s3_diff, and s4_diff. Print these four arrays. Q3 [1 point]: Draw a plot displaying two boxplots each for Riyadh temperatures and Tokyo temperatures to compare the temperatures of the two cities. Comment on what you can see the plot

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

Making Databases Work The Pragmatic Wisdom Of Michael Stonebraker

Authors: Michael L. Brodie

1st Edition

1947487167, 978-1947487161

More Books

Students also viewed these Databases questions