Selecting rows and columns

Selecting rows and columns#

Learning Objectives#

After working through this topic, you should be able to:

  • Select rows and individual cells via .loc

  • Select single and multiple columns

  • Explain why label based selection is better than position based selection

  • Select rows based on Boolean Series

  • Select rows via queries

Materials#

Video:

Download the slides.

Quiz#