Chapter 8Working with Data Tables
This chapter builds on everything you’ve learned so far to work with entire tables of data.
A hypothetical data analysis scenario is used in this chapter to provide context to how and why you will change, combine, and pivot your dataframes.
8.1 ADVENTUREWORKS DATA ANALYSIS
Imagine you’re a newly hired Analyst at AdventureWorks. Your first project is to analyze why reseller sales’ profitability is down in Canada and the United States.
AdventureWorks executives are particularly interested in why large resellers in the United States and Canada have decreased profitability. Their interest is due to a recent campaign to attract larger resellers as part of AdventureWorks’ growth strategy.
This hypothetical data analysis scenario is used as context for the Python formulas you write in this chapter and the next. As you work through this chapter you will likely think that everything covered could be done using out-of-the-box Excel features (e.g., PivotTables).
You would be correct in this thinking.
However, think of building skills with Python in Excel as the gateway to capabilities that are difficult, or impossible, to achieve with traditional Excel features.
You will see an example of this in the next chapter on data visualization. Other examples of where you need a Python foundation to be successful are cluster analysis and crafting machine learning predictive models, which are briefly touched on in the last chapter of the book.
8.2 CHANGING ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access