Chapter 2. Introducing the Series and DataFrame
pandas provides a comprehensive set of data structures for working with and manipulating data and performing various statistical and financial analyses. The two primary data structures in pandas are Series
and DataFrame
. In this chapter, we will examine the Series
object and how it extends a NumPy ndarray
to provide operations such as indexed data retrieval, axis labeling, and automatic alignment. Then, we will move on to examine how DataFrame
extends the capabilities of Series
to use columnar/tabular data, which can be of more than one data type.
The intention of this chapter is to be not only a refresher for those with basic familiarity with pandas, but also a means by which someone who is not initiated ...
Get Mastering pandas for Finance now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.