In this video, see how to use Boolean indexing.
- Boolean indexing.…Boolean vectors or conditions can be used to filter data.…Based on a condition, pass series of true and false values…to a series or data frame to select and display the rules…where the series has true values.…Instead of using and, or, or not,…as with most programming languages,…you can use the following symbols instead.…Remember that if you have more than one condition,…or Boolean vector, this must be grouped…in brackets or parentheses.…
This is to ensure that the order of operations…is carried out correctly.…Let's head over to the Jupyter notebook…to look at a couple of examples.…Let's just have an overview of our table first.…Now let's say we wanted to select…all of the athletes who have won a gold medal.…The condition we'd enter is oo dot Medal…and these are going to be gold medals.…So if I hit enter, I'm going to get…a whole series of trues or falses.…
You can see that the first true…corresponds to this first record, or this first true,…where this athlete has won a gold medal.…The second one, the athlete has won a silver medal…
- 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.