Question
PYTHON In this lab, we will be using a file from h... Bookmark PYTHON In this lab, we will be using a file from http://www.databasebasketball.com/stats_download.htm.
PYTHON In this lab, we will be using a file from h... Bookmark PYTHON In this lab, we will be using a file from http://www.databasebasketball.com/stats_download.htm. Download the file and pick out the player_regular_season.csv file which has over 20,000 rows of basketball data from 1946 to 2009. The data in the file is described at http://www.databasebasketball.com/about/aboutstats.htm. Who was the best NBA basketball player? The NBA is North Americas professional mens basketball league. You are going to write a program to find the best players in NBA history using Python3.4. Using the csv file provided with the lab instruction (The links above). Calculate the efficiency for each player, using the csv file provided with the lab. NBA players performance is evaluated using the following efficiency formula. Efficiency = ( ( pts + reb + asts + stl + blk ) - ( ( fga fgm ) + ( fta ftm ) + turnover ) ) / gp
1. Find the top 50 players with the best efficiency results and Display those 50 from best to worst.
2. Find and display the Player who played the most minutes
3. Find and display the player who play the most games
4. Find and display the Player who scored the most points.
5. Find and display the Player who made the most free throws
MUST USE DEF FUNCTION
Please include explaination, because I am pretty stuck on this. In class, we used 'for line in range [0:5]' But that isn't making sense to me. Also must include error checking, but I can do that just fine.
You cannot import anything. To find stuff you must use the range.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started