/Storytelling-Sales

Data analysis of sales

Primary LanguageJupyter Notebook

Storytelling-Sales

Sales Overview During the Period

Sales by Year

The total sales were analyzed year by year. A bar graph was used to visualize the annual sales. The sales trend shows how the business performed each year from 2015 to 2018.

Sales by Month and Year

Monthly sales for each year were analyzed and compared to identify seasonal patterns or trends. A bar graph was plotted for monthly sales in each year (2015 to 2018) to observe how sales varied throughout the year.

Best-Selling Category

Sales by Category per Year

The sales for each category (Furniture, Office Supplies, and Technology) were calculated and compared annually. Technology emerged as the best-selling category over the years, with a steady increase in sales.

Best-Selling Item

Top 10 Best-Selling Products

The top-selling products were identified and listed based on total sales. The highest-selling product was highlighted, with a horizontal bar graph displaying the sales of the top 10 items.

Sales of Top Products per Year

The sales trends for the top products were further broken down by year to see how each product performed annually. This analysis helps identify if any of the top products had consistent sales or if there were significant fluctuations year to year.

Key Insights

Overall Sales Performance

The analysis of yearly sales showed a general upward trend, indicating growth in the business.

Category Insights

Technology was consistently the best-performing category, followed by Office Supplies and Furniture.

Product Insights

A few products dominated the sales, with significant contributions from the top 10 items. Understanding these trends can help in inventory management and marketing focus.

These insights can guide future business strategies by highlighting the areas of strength and potential opportunities for improvement.


Files Required

To run the analysis, you'll need to download the following files:

  • Python Script (analysis.py): Contains the code for performing the sales analysis.
  • Dataset (sales_data.csv): Holds the sales data from 2015 to 2018.
  • Image (sales_trend.png): Displays the sales trend over the analyzed period.

How to Run the Analysis

  1. Download the Files

    Make sure you have the following files:

    • analysis.py
    • sales_data.csv
    • sales_trend.png
  2. Set Up the Environment

    • Ensure Python is installed on your system.
    • Install any necessary libraries. Check the requirements.txt file (if available) for a list of dependencies.
  3. Place the Files

    • Make sure all files are in the same directory or adjust the file paths in the script accordingly.
  4. Execute the Script

    Open your terminal or command prompt and navigate to the directory containing the files. Run the following command:

    python analysis.py