Giter VIP home page Giter VIP logo

robyriyanto / sales-analysis Goto Github PK

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

In this case, the company needs to compare the performance of each branch in various cities. Take the five (5) largest cities in Java Island to analyze in terms of order size, customer count, product count, brand count, and GMV on a monthly basis.

Jupyter Notebook 100.00%
data-science data-analysis data-visualization python3 pandas matplotlib sales-analysis

sales-analysis's Introduction

Mini Project - Sales Performance in Each Branch Analysis

Disclaimer

This is a mini project provided by Academy DQLab.

In this case, the company needs to compare the performance of each branch in various cities. Take the five (5) largest cities in Java to be analyzed in terms of order size, customer count, product count, brand count, and GMV on a monthly basis.

The dataset provided is net data on the performance of the company's branches in 2019.

Sales Data in Each Branch

  • Provided 4 csv files containing retail data for each Quarter:
    • csv (data from January - March) -> here
    • csv (data from April - June) -> here
    • csv (data from July - September) -> here
    • csv (data from October - December) -> here
  • Goal: Automation for making graphs of the measurement required.

Tasks and Steps

  1. Load each data *.csv with Pandas
  2. Checking and Data Transformation
    • Check data at a glance (seeing the form of data is usually the top 5 data)
    • Check the column list for all dataframes whether all the columns of the four separate dataframes are the same
    • If the same is combined.
    • Check the combined dataframe information
    • Descriptive statistics of aggregated dataframes.
  3. Data Transformation
    • If there is data that is not supposed to be discarded
    • If there is a column that should be of type datetime64 change it
    • Check back dataframe information
    • Show back descriptive statistics from dataframe
  4. Filter province which only includes 5 major provinces in Java (DKI Jakarta, West Java, Central Java, East Java, and Yogyakarta)
  5. Group data based on filtered order_date and province and calculate unique count orders, customer unique count, product unique count, brand unique count, and GMV (Gross Merchandise Volume = total_price for all sales)
  6. Unstack to get order_date in the row and province in the column
  7. Slicing data for each measurement (column), for example: order column
  8. Resampling the data to do calculations on a monthly basis
  9. Plot for resampling results
  10. Create a loop with the dataframe 'unstack_city_province' used (result from step 5)

sales-analysis's People

Contributors

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