GithubHelp home page GithubHelp logo

themrityunjaypathak / supermarketsalesanalysis Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 2.0 1.39 MB

Super Market Sales Analysis

Home Page: https://www.kaggle.com/code/themrityunjaypathak/super-market-sales-analysis

License: MIT License

Jupyter Notebook 98.22% Python 1.78%
data-visualization eda matplotlib numpy pandas seaborn

supermarketsalesanalysis's Introduction

Super Market Sales Analysis

Hello Everyone,

Here is My EDA Project based on Super Market Sales Analysis where I analyzed the Data by using Matplotlib and Seaborn.

Dataset

I used Super Market Sales Dataset from Kaggle recorded for 3 Different Cities for 3 Months.

Link to the Dataset : Super Market Sales Dataset

Problem Statement

  • To analyze sales data and gain insights into customer purchasing behavior, product performance and overall trends of the supermarket business.

Streamlit Web App

  • For my Super Market Sales Analysis Project, I have created a Streamlit Web App for analyzing the Data in more interactive and user friendly way.

  • This Web App allows you to dig deep into the sales data, helping you answer critical questions in just few clicks.

Link to the Web App : Super Market Sales App

image

Table of Contents

Setting up the Enviroment

Jupyter Notebook is required for this project and you can install and set it up in the terminal.

  • Install the Notebook - pip install notebook

  • Run the Notebook - jupyter notebook

Libraries required for the Project

NumPy

  • Go to Terminal and run this code - pip install numpy

  • Go to Jupyter Notebook and run this code from a cell - !pip install numpy

Pandas

  • Go to Terminal and run this code - pip install pandas

  • Go to Jupyter Notebook and run this code from a cell - !pip install pandas

Matplotlib

  • Go to Terminal and run this code - pip install matplotlib

  • Go to Jupyter Notebook and run this code from a cell - !pip install matplotlib

Seaborn

  • Go to Terminal and run this code - pip install seaborn

  • Go to Jupyter Notebook and run this code from a cell - !pip install seaborn

Sklearn

  • Go to Terminal and run this code - pip install sklearn

  • Go to Jupyter Notebook and run this code from a cell - !pip install sklearn

Getting Started

  • Clone the repository to your local machine using the following command :
git clone https://github.com/TheMrityunjayPathak/SuperMarketSalesAnalysis.git

Steps involved in the Project

Reading the Data

  • First I installed all the necessary libraries required for this Project.

  • Then I imported the Data by reading csv file using read.csv() Method.

  • Then I dropped the Invoice ID Column because we don't need it in analysis.

  • After that I listed down all the columns in the Dataset by df.columns Method.

  • Then I used df.shape Method to look for the rows and columns in the Data.

  • Then I look for the Info of the Dataset by using df.info() Method.

Cleaning the Data

  • First I start by describing the Data by using df.describe() Method.

  • Then I converted Date Column to Pandas Date and Time DataType.

  • And After that I extracted Year, Month, Day from the Date.

  • Then I listed down all the unique values of categorical columns.

  • And Finally I verified the null values in the Dataset by using df.isna().sum()

Visualizing the Data

  • Subplots of Distribution of Unit Price, Ratings and Gross Income

__results___37_0

  • Per Unit Price of Each Product Lines

4dda0fb4-2fe9-461c-877f-6d309d329bea

  • Count of Different Types of Customers from Different Cities

59566abe-8e0a-4347-8ee9-fb8f5608ddb0

  • Count of Different Types of Products in Super Market

9f65905c-ff13-4ecd-abfa-3f780508e363

  • Count of Different Gender Visitors at Different Branches

ab391fa6-b095-4134-9cca-9d0aa26db3d0

  • Count of Different Types of Payment Methods used by Different Genders

1cec281b-96e2-42eb-8e4c-7ef76eaeb497

  • Count of Different Gender Visitors from Different Cities

69ab4d7f-a7a3-4af6-ad73-55422d57e381

  • Quantity of Products Sold from Each Product Line

b5d54ca5-3d22-4eec-b21d-392e91dfa6d7

  • Different Payment Methods Used by Different Cities

73eaa774-43ac-4728-9c6d-16462bcddfc6

  • Total Amount Spend on Different Product Lines by Different Genders

f016e947-d8ca-48ca-8094-030e53cdd1a4

  • Rating of Different Product Lines by Different Genders

07944ecc-262b-4c34-9011-28d2fa8730aa

  • Gross Income from Different Product Lines in Different Cities

download

  • Total Sale on Each Day for All Months

download

  • Taxes on Different Product Lines

download

  • Number of Products bought by Different Genders from Different Product Lines

download

  • Total Gross Income from Different Branches by Different Genders

download

Conclusion

  • In conclusion, Super Market Sales Project revealed valuable insights into customer purchasing behavior and product performance.

  • It provide opportunities for data-driven strategies to enhance profitability and customer satisfaction.

Link to the Notebook

Super Market Sales Analysis

Scroll to Top ⬆️

supermarketsalesanalysis's People

Contributors

themrityunjaypathak 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.