Selecting Subsets of Data in Pandas: Part 1

Ted Petrou
Nov 24, 2017 · 23 min read

Part 1: Selection with [ ], .loc and .iloc

This is the beginning of a four-part series on how to select subsets of data from a pandas DataFrame or Series. Pandas offers a wide variety of options for subset selection which necessitates multiple articles. This series is broken down into the following four topics.

  1. Selection with [], .loc and .iloc