Summary
In this chapter, you learned about the pandas Series
object and how it provides capabilities beyond that of the NumPy array. We examined how to create and initialize a Series
and its associated index. Using a Series, we then looked at how to manipulate the data in one or more Series
objects, including alignment by labels, various means of rearranging and changing data, and applying arithmetical operations. We closed with examining how to reindex and perform slicing.
In the next chapter, you will learn how the DataFrame
is used to represent multiple Series
of data that are automatically aligned to a DataFrame
level index, providing a uniform and automatic ability to represent multiple values for each index label.
Get Learning pandas 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.