Summary
In this chapter, you learned about the pandas Series
object and how it can be used to represent an indexed representation of variable measurements. We started with how to create and initialize a Series
and its associated index, and then examined how to manipulate the data in one or more Series
objects. We examined how to align Series
objects by index label and apply mathematical operations across the aligned values. We then examined how to look up data by index, as well as how to perform queries based upon the data (Boolean expressions). We then closed with an examination of how to use re-indexing to change indexes and align data.
In the next chapter, you will learn how the DataFrame
is used to represent multiple Series
of data in a uniform tabular structure.