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 Indexing, Slicing & Subsetting episode #479

Closed nels closed 1 year ago

nels commented 3 years ago

The Index, Slicing & Subsetting episode has a typo in the Copying Objects vs Referencing Objects in Python section.

The Python code snippet is

# Assign the value `0` to the first three rows of data in the DataFrame
ref_surveys_df[0:3] = 0

but then in the following text paragraph it is stated:

When we assigned the first 3 columns the value of 0

It should be

When we assigned the first 3 rows the value of 0

btovar commented 1 year ago

Fixed in #480