Path: blob/master/Exercises_1.ipynb
145 views
Exercises
## Bike store sales
Hands on!
What's the mean of Customers_Age
?
Why don't you try with .mean()
Go ahead and show a density (KDE) and a box plot with the Customer_Age
data:
What's the mean of Order_Quantity
?
Go ahead and show a histogram and a box plot with the Order_Quantity
data:
### How many sales per year do we have?
Go ahead and show a pie plot with the previous data:
### How many sales per month do we have?
Go ahead and show a bar plot with the previous data:
Which country has the most sales quantity of sales
?
Go ahead and show a bar plot of the sales per country:
### Create a list of every product sold
Create a bar plot showing the 10 most sold products (best sellers):
Can you see any relationship between Unit_Cost
and Unit_Price
?
Show a scatter plot between both columns.
Can you see any relationship between Order_Quantity
and Profit
?
Show a scatter plot between both columns.
Can you see any relationship between Profit
per Country
?
Show a grouped box plot per country with the profit values.
Can you see any relationship between the Customer_Age
per Country
?
Show a grouped box plot per country with the customer age values.
Add and calculate a new Calculated_Date
column
Use Day
, Month
, Year
to create a Date
column (YYYY-MM-DD
).
Parse your Calculated_Date
column into a datetime object
How did sales evolve through the years?
Show a line plot using Calculated_Date
column as the x-axis and the count of sales as the y-axis.
### Increase 50 U$S revenue to every sale
How many orders were made in Canada
or France
?
How many Bike Racks
orders were made from Canada?
How many orders were made in each region (state) of France?
Go ahead and show a bar plot with the results:
How many sales were made per category?
Go ahead and show a pie plot with the results:
How many orders were made per accessory sub-categories?
Go ahead and show a bar plot with the results:
How many orders were made per bike sub-categories?
Go ahead and show a pie plot with the results:
Which gender has the most amount of sales?
How many sales with more than 500 in Revenue
were made by men?
Get the top-5 sales with the highest revenue
Get the sale with the highest revenue
What is the mean Order_Quantity
of orders with more than 10K in revenue?
What is the mean Order_Quantity
of orders with less than 10K in revenue?
How many orders were made in May of 2016?
How many orders were made between May and July of 2016?
Show a grouped box plot per month with the profit values.
### Add 7.2% TAX on every sale Unit_Price
within United States