Skip to content
Sports clothing and athleisure attire is a huge industry, worth approximately $193 billion in 2021 with a strong growth forecast over the next decade!
In this notebook, you will undertake the role of a product analyst for an online sports clothing company. The company is specifically interested in how it can improve revenue. You will dive into product data such as pricing, reviews, descriptions, and ratings, as well as revenue and website traffic, to produce recommendations for its marketing and sales teams.
You've been provided with four datasets to investigate:
brands.csv
Columns | Description |
---|---|
product_id | Unique product identifier |
brand | Brand of the product |
finance.csv
Columns | Description |
---|---|
product_id | Unique product identifier |
listing_price | Original price of the product |
sale_price | Discounted price of the product |
discount | Discount off the listing price, as a decimal |
revenue | Revenue generated by the product |
info.csv
Columns | Description |
---|---|
product_name | Name of the product |
product_id | Unique product identifier |
description | Description of the product |
reviews.csv
Columns | Description |
---|---|
product_id | Unique product identifier |
rating | Average product rating |
reviews | Number of reviews for the product |
import pandas as pd
import numpy as np
brands = pd.read_csv("brands.csv")
finance = pd.read_csv("finance.csv")
info = pd.read_csv("info.csv")
reviews = pd.read_csv("reviews.csv")
# Merging relevant csv files, dropping NULL values
adidas_vs_nike = brands.merge(finance, how='inner', on='product_id').dropna()
#Creating quartile bounds on listing price
q1 = adidas_vs_nike['listing_price'].quantile(0.25)
q2 = adidas_vs_nike['listing_price'].quantile(0.5)
q3 = adidas_vs_nike['listing_price'].quantile(0.75)
adidas_vs_nike['price_label'] = pd.cut(adidas_vs_nike['listing_price'],
bins = [0,q1,q2,q3,max(adidas_vs_nike['listing_price'])],
labels= ['Budget','Average','Expensive','Elite'])