wesm / pydata-book

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

Typo in book 2nd ed. (Ch 3, p58, slicing) #82

Closed RoutineRoute closed 6 years ago

RoutineRoute commented 6 years ago

The example for slicing uses expression seq=[7, 2, 3, 7, 5, 6, 0, 1] for seq[-6:-2] the book says that result should be [6, 3, 5, 6], but it is [3, 7, 5, 6]. Just to let you know about that issue.

wesm commented 6 years ago

Would you mind submitting an erratum on http://shop.oreilly.com/product/0636920050896.do? Thanks!