Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLAYER Paul Millsap Al Horford Tiago Splitter Jeff Teague Kyle Korver Thabo Sefolosha Mike Scott Kent Bazemore Dennis Schroder Tim Hardaway Jr. '14-'15 SALARY 15.32

image text in transcribed
PLAYER Paul Millsap Al Horford Tiago Splitter Jeff Teague Kyle Korver Thabo Sefolosha Mike Scott Kent Bazemore Dennis Schroder Tim Hardaway Jr. '14-'15 SALARY 15.32 9.45 8.35 7.42 5.21 2.56 1.5 .89 .2 .187 '15-'16 SALARY 18.6717 12 9.75625 8 5.74648 3.33333 2 1.7634 1.30452 This table, called basketball, is a reference for the next question. (in python) 1. Write a function called big diff that takes a dataset and a label as inputs, and returns the difference between the largest and smallest elements in the column of the dataset with that label. For example, if we called big diff(basketball, "'14-'15 SALARY") it would return 15.133 because that is the difference between the largest and smallest elements of the '14-'15 SALARY column. 2. Write a function called bottom diff that given a dataset and a column label returns the difference between the two smallest elements of that column. There are a few ways to Ho this, and it may be helpful to sort the list first

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

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions