Join Jonathan Fernandes for an in-depth discussion in this video Using iloc, part of pandas Essential Training.
- [Instructor] Here with Iloc,…we're doing selection by integer index.…Iloc is primarily integer position based.…One of the advantages of Iloc…is that it allows for the traditional Pythonic slicing.…Let's take a look at a couple of examples…in the jupyter notebook.…Let's review our data frame again.…If I want to see the 1,700th entry,…or the index entry,…I would type oo.iloc,…and remember it's square brackets, 1700.…
I can see that this corresponds to the athlete,…Pierre Rabot.…What I can also do with Iloc,…is to use a list.…So, oo. for my data frame, iloc,…and then a list of integers.…For example, I might want the…integer index 1542, 2390,…6000, and 15000.…This will return the rows corresponding to these index.…
I mentioned earlier that Iloc allows for…the traditional Pythonic slicing,…so, for example, if I do an oo.head,…and look at the first five entries in my data frame,…if I wanted to only see the entries one to three,…I could use Pythonic slicing and do a oo.iloc.1:4…and these will return the indexes with one, two, and three.…
- Working with plots
- Boolean indexing
- String handling
- Grouping data
- Creating your own colormaps
Skill Level Intermediate
1. Technical Setup
2. Series and DataFrames
3. Data Input and Validation
4. Basic Analysis
5. Basic Plotting
9. Data Visualizations
Next steps1m 1s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.