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:

Review – bar charts and histograms

Bar charts