Skip to content

Commit 746180f

Browse files
NPalopolimaxim-belkin
authored andcommitted
guide.md: update 'Selection Challenges' section
Pull Request: #337
1 parent 4064451 commit 746180f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

_extras/guide.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,12 @@ Tip: use `.head()` method throughout this lesson to keep your display neater for
162162

163163
### Selection Challenges
164164

165-
* What happens when you type:
165+
* What happens when you execute:
166166

167-
`surveys_df[0:3]`
168-
`surveys_df[:5]` slicing from first element makes 0 redundant
169-
`surveys_df[-1:]` you can count backwards
167+
`surveys_df[0:3]`
168+
`surveys_df[0:1]` slicing only the first element
169+
`surveys_df[:5]` slicing from first element makes 0 redundant
170+
`surveys_df[-1:]` you can count backwards
170171

171172
*Suggestion*: You can also select every Nth row: `surveys_df[1:10:2]`. So, how to interpret `surveys_df[::-1]`?
172173

0 commit comments

Comments
 (0)