Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!