Question: Question 2 - - Cleaning the data ( 5 marks ) In this dataset there are two types of maps, escort and control. On control
Question Cleaning the data marks In this dataset there are two types of maps, escort and control. On control maps, the teams try to control an objective until the meter reaches On escort maps, the attacker tries to escort a payload to the end of the map, while the defender tries to stop it Control maps can be found in the dataset by rows where the controlperecent is not for at least one team. That is controlperecent will be Nan or for both teams when the map is not a control map. a marks Create a variable for map type called maptype, which has two possible values "control" and "escort". b marks For rows which correspond to control maps, set the timebanked and payload distance values to NaN. c marks Ensure that roundstarttime and roundendtime time variables are in the datetime format print out the type and create a variable called year which contains the year the match took place
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
