Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

by using python The data file NBA.csv contains information on 2763 NBA players from their rookie season. The data contain seven attributes: ID, FN, LN,

by using python The data file "NBA.csv" contains information on 2763 NBA players from their rookie season. The data contain seven attributes: ID, FN, LN, isAllStar, DRAFT_YR, MPG, PPG. Make sure that "NBA.csv" is in your working directory. Pay attention to the format of the data and do not make any change to the data file. Write a Python function find_rookie(a, b) here in this cell that takes two non-negative real numbers a and b as input. The function returns a list of all players whose PPG was at least a points per game and MPG is at least b minutes per game. Please use a list for each qualified player, including FN, LN, isAllStar, DRAFT_YR, MPG, and PPG. Therefore, eventually the function will return a list of list similar to the below: [[FN1, LN1, isAllStar1, DRAFT_YR1, MPG1, PPG1], [FN2, LN3, isAllStar2, DRAFT_YR2, MPG2, PPG2]] this is data ID FN LN isAllStar DRAFT_YR MPG PPG 1 Mark Workman 0 1952 15.8 5.1 2 Jim Baechtold 0 1952 29.6 10.3 3 Dickk Groat 0 1952 25.5 11.9 4 Ralph Polson 0 1952 16.5 3.9 5 Bob Lochmueller 0 1952 12.9 3.7 6 Clyde Lovellette 1 1952 17.4 8.2 7 Walt Davis 0 1952 23.1 5.9 8 Gene Conley 0 1952 11.8 2.3 9 Blaine Denning 0 1952 9 5 10 Chuck Grigsby 0 1952 6.4 2.3 11 Bob Priddy 0 1952 9.3 2.2 def find_rookie(a, b):

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

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions

Question

(1 point) Calculate 3 sin x cos x dx.

Answered: 1 week ago

Question

Find the derivative of y= cos cos (x + 2x)

Answered: 1 week ago