GithubHelp home page GithubHelp logo

nafisalawalidris / sales-analysis-report Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 2.82 MB

This repository conducts a sales analysis for Company XYZ, exploring the reasons behind declining sales and suggesting strategies for improvement. Analyzing 12 months of data, it uncovers the best sales month, top-selling city, optimal advertisement timing, frequently sold together products, and the best-selling item.

Python 100.00%
product-combinations sales-analysis visualizations 12-months-of-data actionable-recommendations advertisement-timing best-sales-month best-selling-item declining-sales improvement-strategies

sales-analysis-report's Introduction

Sales Analysis Repository

Project Overview

This repository contains the analysis of sales data for Company XYZ. The objective of the analysis is to understand the reasons behind the decline in sales performance and suggest strategies for improvement. The analysis is based on a dataset that includes 12 months of sales transactions.

File Structure


sales_analysis/
├── data/
│   ├── month_1.csv
│   ├── month_2.csv
│   ├── ...
│   └── month_12.csv
├── notebooks/
│   ├── data_preparation.ipynb
│   ├── sales_analysis.ipynb
│   └── ...
└── README.html
  

Data Preparation

To perform the analysis, the individual CSV files for each month were merged into a single DataFrame. The data was cleaned by dropping NaN values, removing rows with invalid quantities or prices and converting column data types. New columns were created to represent the month and city of each transaction.


# Merge data from each month into one DataFrame
all_data = pd.concat([df1, df2, ..., df12], ignore_index=True)

Clean up the data

all_data.dropna(inplace=True) all_data = all_data[all_data['Quantity Ordered'] != 'Quantity Ordered'] all_data['Quantity Ordered'] = pd.to_numeric(all_data['Quantity Ordered']) all_data['Price Each'] = pd.to_numeric(all_data['Price Each']) all_data['Order Date'] = pd.to_datetime(all_data['Order Date'])

Create new columns

all_data['Month'] = all_data['Order Date'].dt.month all_data['City'] = all_data['Purchase Address'].apply(get_city)

Analysis and Insights

The analysis aims to answer the following business-level questions:

  • What was the best month for sales? How much was earned that month?
  • What city sold the most products?
  • What time should we display advertisements to maximize the likelihood of customer's buying a product?
  • What products are most often sold together?
  • What product sold the most? Why do you think it sold the most?

To answer these questions, various techniques such as grouping, aggregation, and data visualization were employed. Bar graphs and line graphs were used to present the insights in an easily understandable manner.

Conclusion

Based on the analysis, recommendations can be made to improve sales performance. These may include targeted marketing campaigns in high-performing cities, optimizing the timing of advertisements, and bundling frequently sold together products. By implementing these strategies, Company XYZ can aim to increase its sales and overall business performance.

sales-analysis-report's People

Contributors

nafisalawalidris avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.