Iowa Liquor Sales

Notebook Created by: Melody Yip

The Iowa Department of Commerce requires that every store that sells alcohol in bottled form for off-the-premises consumption must hold a class "E" liquor license (an arrangement typical of most of the state alcohol regulatory bodies). All alcoholic sales made by stores registered thusly with the Iowa Department of Commerce are logged in the Commerce department system, which is in turn published as open data by the State of Iowa. Data Source : https://console.cloud.google.com/marketplace/product/iowa-department-of-commerce/iowa-liquor-sales?project=fiery-province-334423

https://data.iowa.gov/Sales-Distribution/Iowa-Liquor-Sales/m3tr-qhgy

Introduction

The Dataset is about 6GB on the Google BigQuery. The is total 22,716,731 rows.

Goal

On the basis of Sales data, I am going to find the answer to the following question

  1. What is the overall sales trend?
  2. What is the Monthly growth?
  3. What is the overall YoY growth?
  4. What is the YoY growth by liquor category?

Column Descriptions (source)


Column Name Description Data Type
Invoice/Item Number Concatenated invoice and line number associated with the liquor order. Plain Text
Date Date of Order Date/Time
Store Number Unique number assigned to the store who ordered the liquor. Plain Text
Store Name Name of store who ordered the liquor. Plain Text
City City where the store who ordered the liquor is located Plain Text
Zip Code Zip Code where the store who ordered the liquor is located Plain Text
Store Location Location of store who ordered the liquor. Plain Text
County Number Iowa county number for the county where store who ordered the liquor is located Plain Text
County County where the store who ordered the liquor is located Plain Text
Category Category code associated with the liquor ordered Plain Text
Category Name Category of the liquor ordered Plain Text
Vendor Number The vendor number of the company for the brand of liquor ordered Plain Text
Vendor Name The vendor name of the company for the brand of liquor ordered Plain Text
Item Number Item number for the individual liquor product ordered. Plain Text
Item Description Description of the individual liquor product ordered. Plain Text
Pack The number of bottles in a case for the liquor ordered Number
Bottle Volume (ml) Volume of each liquor bottle ordered in milliliters. Number
State Bottle Cost The amount that Alcoholic Beverages Division paid for each bottle of liquor ordered Number
State Bottle Retail The amount the store paid for each bottle of liquor ordered Number
Bottles Sold The amount the store paid for each bottle of liquor ordered Number
Sale (Dollars) Total cost of liquor order (number of bottles multiplied by the state bottle retail) Number
Volume Sold (Liters) Total volume of liquor ordered in liters. (i.e. (Bottle Volume (ml) x Bottles Sold)/1,000) Number
Volume Sold (Gallons Total volume of liquor ordered in gallons. (i.e. (Bottle Volume (ml) x Bottles Sold)/3785.411784) Number


*Store Location:

The Address, City, State and Zip Code are geocoded to provide geographic coordinates. Accuracy of geocoding is dependent on how well the address is interpreted and the completeness of the reference data used.

Import libraries

Data Preparation (Download the data from the google BigQuery)

After looking at the data, I would study the general picture of the total_sale. The only columns we are interested in are; 'year' and 'sale_dollars'. So we use read_gbq() to extract a summarized data

Q1. What is the overall sales trend?

Total Sales Over Time

The line chart shows changes in the iowa liquor sale since Jan 2012 to Nov 2021. It shows a slow and steady increase over the years. There is also an obvious seasonal trend. Therefore, I plot the multiple line chart below for further investigation.

Muliple line chart (Total Sale Over Time)

Q2. What is the Monthly growth?

Q3. What is the YoY growth?

Q4. What is the YoY growth by liquor category?

Thanks for reading!!! 😊 🍀