wesm / pydata-book

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

The problem of chapter A.6 #200

Open MaxforCherubim opened 5 months ago

MaxforCherubim commented 5 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