Skip to content

Commit

Permalink
Merge pull request #25 from zsgilber/patch-1
Browse files Browse the repository at this point in the history
Update Visualizing NBA Shots with py-Goldsberry.ipynb
  • Loading branch information
bradleyfay authored Aug 9, 2016
2 parents 6572843 + 9ed1671 commit 643f64c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Visualizing NBA Shots with py-Goldsberry.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@
" y_bin = _freedman_diaconis_bins(data[y])\n",
" hex_gridsize = int(np.mean([x_bin, y_bin]))\n",
"\n",
" ax.hexbin(x, y, gridsize=hex_gridsize, cmap=cmap, **kwargs)\n",
" ax.hexbin(data[x], data[y], gridsize=hex_gridsize, cmap=cmap, **kwargs)\n",
"\n",
" else:\n",
" raise ValueError(\"kind must be 'scatter', 'kde', or 'hex'.\")\n",
Expand Down

0 comments on commit 643f64c

Please sign in to comment.