Data Selection

In this chapter, we'll learn about advanced techniques of data selection with pandas, how to select a subset of data, how to select multiple rows and columns from a dataset, how to do sorting on a pandas DataFrame or a series, how to filter roles of a pandas DataFrame, and also learn how to apply multiple filters to a pandas DataFrame. We'll also look at how to use the axis parameter in pandas and the uses of string methods in pandas. Finally, we'll learn about how to change the datatype of a pandas series.

First, we'll learn about how to select a subset of data from a pandas DataFrame and create a series object. We'll start by importing a real dataset. We'll introduce some of the pandas data selection methods, and we'll apply ...

Get Mastering Exploratory Analysis with pandas now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.