Practice Use Case
Practice Use Case
Practice Use Case
In this Chapter you will practice applying what you learned in the previous lessons in the context of a use
case working with customer data. Before you begin working on this lesson, read the following background
information about the Customers dataset and use case. Once you have completed the use case, you can
find the steps we took and the results produced with in the following pages. This example is meant to test
what you have learned thus far. When you feel comfortable with this use case example, we recommend
you challenge your wrangling skills by taking our Certification Exam.
Example
You work for a technical services company that sells three monthly subscription products:
The company occasionally offers promotional discounts – therefore, some product prices may be slightly
lower than those listed above. Your overall goal is to provide an analysis of sales activity by zip code.
In order to do this, you’ll need to join your Lab_customers dataset (where zip code information resides)
with sales data from your transactions datasets. Once you’ve joined the data, you’ll need to aggregate the
results.
• lab_customers.csv
• lab_2010_transactions.csv
• lab_2011_transactions.csv
• lab_2012_transactions.csv
• lab_2013_transactions.csv
• lab_2014_transactions.csv
• lab_2015_transactions.csv
• zip_to_state_map.csv
Lab_Transactions
Add a Recipe to the Lab_2010_transactions dataset. Edit that Recipe to enter the grid
• 2011_Transactions
• 2012_Transactions
• 2013_Transactions
• 2014_Transactions
• 2015_Transactions
• Customer_id (2010_transactions)
• transaction_date (2010 Transactions)
• adjusted_price (2010 Transactions)
• product (2010 Transactions)
• address_state (Customers)
• address_zip (Customers)
• region (Customers)
• start_date (Customers)
• end_date (Customers)
Solution
Solution Guide