Lab 2
Exercise 1
Download this dataset. It has rushing stats from the 2019 NFL regular season.
Your job:
- Create a new data frame with the rushing stats only for the Quarterbacks.
- Create a new
data.framewith a new column,rush_attempts_per_game. Use the formularush_att/games_played. - Create a new
data.framewith only the following columns:name,team, andrush_attempts_per_game.
Exercise 2
Use the NBA dataset to answer the following questions:
- How many teams are in each conference?
- What is the team with more wins in the
Atlanticdivision? Create adata.framewith one row with theTeamandWcolumns. - What is the team with more 3 point attempts in the Western conference?
- What is the team with least turn overs in the league?