Selecting multiple rows and columns from a pandas DataFrame

In this section, we will learn more about methods for selecting multiple rows and columns from a dataset read into pandas. We will also introduce some of the pandas data selection methods, and we will apply these methods to our real dataset to demonstrate the selection of a subset of data.

Let's get started by importing pandas and reading the data from zillow.com in the same manner as we did in the previous section. This is done as follows:

import pandas as pd 
zillow = pd.read_table('data-zillow.csv', sep=',') 
zillow.head() 

The following is the output:

Next, let's look at some techniques ...

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.