AllenDowney / ThinkStats2

Text and supporting code for Think Stats, 2nd Edition
http://allendowney.github.io/ThinkStats2/
GNU General Public License v3.0
4.03k stars 11.31k forks source link

Fix example code #8

Closed nirs closed 9 years ago

nirs commented 9 years ago

df.birthwgt_lb.value_counts(sort=False) Traceback (most recent call last): File "", line 1, in TypeError: value_counts() got an unexpected keyword argument 'sort'

Accoring to the output, the author wanted to sort by index.

AllenDowney commented 9 years ago

Thanks!