wesm / pydata-book

Materials and IPython notebooks for "Python for Data Analysis" by Wes McKinney, published by O'Reilly Media
Other
22.27k stars 15.19k forks source link

The problem of chapter A.6 #200

Open MaxforCherubim opened 7 months ago

MaxforCherubim commented 7 months ago

The sentence "where 1 would mean the bucket [0, 100)" is wrong. It shoule be "where 1 would mean the bucket (0, 100]" Because bins.searchsorted(np.array([100])) return 1