datacarpentry / python-ecology-lesson

Data Analysis and Visualization in Python for Ecologists
https://datacarpentry.org/python-ecology-lesson
Other
160 stars 310 forks source link

Typo in Lesson 3 #443

Closed marketneutral closed 4 years ago

marketneutral commented 4 years ago

Hello, I am using this lesson to teach introductory Python and data analysis to some of my colleagues and it's great! Thank you!

I noticed a typo in Lesson 3: Indexing, Slicing and Subsetting DataFrames in Python

image

"This means that the first element in an object is located at position 1." should read "This means that the first element in an object is located at position 0."

maxim-belkin commented 4 years ago

Hi Jonathan. Thanks for creating this issue. This was a rather interesting bug (solved in 79b646b by @jackVanish) caused by Markdown. The paragraph had correct information:

Let's remind ourselves that Python uses 0-based                                                         
indexing. This means that the first element in an object is located at position                         
0. This is different from other tools like R and Matlab that index elements                           
within objects starting at 1. 

However, because that "0." was the first thing on the (third) line, Markdown assumed that this was the beginning of a numbered HTML list and rendered it as one, using 1 as its first index. @jackVanish fixed that by encapsulating that 0 in backticks so that Markdown would no longer think that this is a numbered list.

Again, thank you for creating this issue and for the kind words!

Maxim