Dunder Data
Published in

Dunder Data

Selecting Subsets of Data in Pandas: Part 1

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
  2. Boolean indexing
  3. Assigning subsets of data
  4. How NOT to select subsets of data




Expert python data science training — take a course at dunderdata.com

Recommended from Medium

3 Methods to Reduce Overfitting of Machine Learning Models

Makeup Classification Using Deep Learning:

Cross-Validate on Data Containing Groups, Correctly!!

SQL-lise Elasticsearch Query For Data Analysis Using Docker, SQL Client, And Python (Part-1)

Hash2Vec: One liner word vectors

Bioinformatics on the cloud:

How to use GSEApy for pathway enrichment analysis

Z Test & T test in a Nutshell:

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ted Petrou

Ted Petrou

Author of Master Data Analysis with Python and Founder of Dunder Data

More from Medium

5 Tricks to Master Pandas append()

Speed up a pandas query 10x with these 6 Dask DataFrame tricks

How to Combine Multiple Datasets

Mastering Pandas — Part 1: Installation And Overview Pandas