python-ecology-lesson icon indicating copy to clipboard operation
python-ecology-lesson copied to clipboard

episode 03 - clarity suggestion to text

Open alp5088 opened this issue 3 years ago • 1 comments

As I was preparing my teaching demonstration for Carpentries instructor training I was working through the episodes in the Data Analysis and Visualization in Python for Ecologists lesson. I am relatively new to Python/programming in general but would suggest adding a sentence or two to the descriptions of loc and iloc in the "Slicing Subsets of Rows and Columns in Python" episode (https://datacarpentry.org/python-ecology-lesson/03-index-slice-subset/#slicing-subsets-of-rows-and-columns-in-python). For a novice like myself, I was confused about the definitions/explanations given for loc and iloc. My quick suggestion is to add more descriptive language to this area. Something like "iloc indexing selects rows and/or columns at specific integer positions" and "loc indexing selects rows and/or columns at specific labels".. or something similar. Hope I have that right! :)

alp5088 avatar Aug 19 '22 17:08 alp5088

@alp5088 Yes, thanks, this is a great suggestion. iloc and loc are always a little confusing.

btovar avatar May 15 '23 12:05 btovar