# Lecture 26 – Visualizing Two Numerical Variables¶

## Data 6, Summer 2021¶

Our first dataset today comes from Basketball Reference. It contains per-game averages of players in the 2019-2020 NBA season.

Run the cell below to load it in, select the relevant columns, and do some data cleaning.

Note: Most of the interesting data comes from the "better" players in the league; we will only look at players who averaged at least 10 points per game in the season. This isn't perfect, since there were plenty of good players who averaged less than 10 points per game.

A description of each column:

• 'Player': name
• 'Pos': general position (either Forward or Guard)
• 'Tm': abbreviated team
• 'PTS': average number of points scored per game
• 'TRB': average number of rebounds per game (a player receives a rebound when they grab the ball after someone misses)
• 'AST': average number of assists per game (a player receives an assist when they pass the ball to someone who then scores)
• '3PA': average number of three-point shots attempted per game (a three point shot is one from behind a certain line, which is between 22-24 feet from the basket)
• '3P%': average proportion of three-point shots that go in