In this chapter, we'll tackle the question of rearranging and reshaping data in our data structures. We'll examine the various functions that enable us to rearrange data by utilizing them on real-world datasets. Such functions include groupby, concat, aggregate, append, and so on.
The topics that we'll discuss in this chapter are as follows:
- Aggregating/grouping data
- Merging and concatenating data
- Reshaping data
- Other methods for reshaping DataFrames