/Data_Visualization_Python

Week 2 Day 4 - Dataviz using Python (matplotlib and seaborn)

Primary LanguageJupyter Notebook

Data_Visualization_Python

Week 2 Day 4 - Data Visualization (dataviz) using Python (matplotlib and seaborn)

Graph 1

Create a graph with two axes. The x-axis goes from 0 to 50 and is called "x-axis". The y-axis is labeled "y-axis". Draw the line of equation: x = 3y. With x ranging from 0 to 50. The graph has the following title "Draw a straight line" and the line is red.

Cosmetics company sales data

For the following graphs, we will use the sales data from a cosmetics company, from the file "company_sales_data.csv".

Graph 2

First, we want a graph that gives the curve of total profit realized per month.

Graph 3

Next, we want a graph that gives the profit curve for each product, as a function of time. Each curve will have a different color and we want a legend that indicates which color corresponds to which product.

Graph 4

We want a graph that compares, each month, the number of units sold for each product. It's up to you to choose the best representation to know the best-selling product per month.

Graph 5

We want a graph that gives the contribution of each product in the total profit (over the year studied). Please add the percentage for each product.

Bookstore sales data

Now, we are going to change the data source. And we're going to come back to yesterday's project, using the 3 csv files which give the sales, the list of customers and the list of products.

Graph 6

First, we want to have a pie chart that gives the distribution of products by category. Please indicate the percentage per product (nb of products of such category / nb of total products).

Graph 7

We want a graph that gives the evolution of turnover for each category (as a function of time).

Graph 8

We want a graph that gives a boxplot of the price distribution of a product for each category. Clearly, the graph shows 3 boxplots (one corresponding to category 0, one to category 1 and one to category 2).

Graph 9

We want a graph that gives the distribution of turnover, for each month, according to the gender of the customer.

Graph 10

We want a graph which, for each transaction, links the age group of the customer and the amount of the transaction.

Graph 11

We want a graph which, for each item, links price and number of items sold during the period.

Graph 12

We want a graph that gives the distribution of the average basket (for each transaction).

Other graphs

Find 3 other graphs that can be useful in understanding the sales of the bookstore chain.