To see how Pandas indexing figures into an end-to-end project, check out the Decision Trees course.
You can also read this in a blog post.
By the way, you're free to download and make use of the code and slides however you like.
Slides
Python code