Question: 1 . Using python please provide all the necessary code and screenshot of the result for the problem: The columns labeled FG , 3 PT

1. Using python please provide all the necessary code and screenshot of the result for the problem:
The columns labeled FG,3PT, and FT of the data set in the Analyzing Basketball Statistics case study do not show a single integer value but instead show values with the format , which is not suitable for the kind of data analysis performed on the other columns. For example, analysts might like to view the mean of free throws attempted as well as mean of the free throw percentage. You can correct this problem with a cleaning step that, for each such column:
removes it from the data frame creates two new columns from this series, where the first column includes the numbers of makes and the second column includes the number of attempts
inserts the new pairs of columns into the data frame at the appropriate positions, with the appropriate column headings (for example, FTM and FTA) Define a function named cleanStats in the file hoopstatsapp.py. This function expects a data frame as an argument and returns the frame cleaned according to the steps listed previously. You should call this function after the frame is loaded from the CSV file and before it is passed to the HoopStatsView constructor. (LO: 11.2,11.3)

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!