Data Visualization Case Study in Python
Data Visualization Case Study in Python
Website: www.analytixlabs.co.in
Email: [email protected]
Disclaimer: This material is protected under copyright act AnalytixLabs © 2011-2018. Unauthorized use and/ or duplication of this material
or any part of this material including data, in any form without explicit and written permission from AnalytixLabs is strictly prohibited. Any
violation of this copyright will attract legal actions.
It enables decision makers to see analytics presented visually, so they can grasp difficult
concepts or identify new patterns.
The client would like to come see a dynamic dashboard with different KPI's at different
levels (National, Region & Territory etc). Create the below charts as these would help us
explore the past data in a better manner and give a good picture of the progress and
failures. This in turn would catalyse the decision-making process, making it easier, simpler
and accurate.
IMPORTANT NOTE: When answering the below questions, you would require to reshape
the data i.e., convert from wide to long and long to wide (with stack(), unstack() and pivot())
after aggregating it by using groupby(). Please refer to the material at Pandas – Data
Understanding.ipynb for details.
1. Compare Sales by region for 2016 with 2015 using bar chart
2. What are the contributing factors to the sales for each region in 2016. Visualize it using a
Pie Chart.
3. Compare the total sales of 2015 and 2016 with respect to Region and Tiers
5. In all the High tier, which Division saw a decline in number of units sold in 2016 compared
to 2015?
6. Create a new column Qtr using numpy.where() or any suitable utility in the imported
dataset. The Quarters are based on months and defined as -
• Jan - Mar : Q1
• Apr - Jun : Q2
• Jul - Sep : Q3
• Oct - Dec : Q4
8. Determine the composition of Qtr wise sales in and 2016 with regards to all the Tiers in a
pie chart.
2015?