O'Reilly logo

Mastering pandas for Finance by Michael Heydt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Reshaping, Reorganizing, and Aggregating

In the first two chapters, we gave you a general overview of pandas and examined some of the basics of the pandas DataFrame. Our coverage of the DataFrame was focused solely upon simple manipulation of a single DataFrame, such as adding and removing columns and rows, indexing the contents, selecting content, basic indexing, and performing simple arithmetic upon its data.

In this chapter, we will expand our scope of data operations on DataFrame objects to include more complex techniques of manipulating data and deriving results from grouped sets of financial data. The examples in this chapter will focus on retrieving, organizing, reshaping, and grouping/aggregating data to be able to perform basic ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required