https://github.com/allanotieno254/business-data-analysis.-solving-real-world-problem-using-pandas
this repository shows analysis of business of an entrepreneur of the sales he has made in one year for the all months .it analyzes using pandas to do predictions and give insights on how he can improve on his sales
https://github.com/allanotieno254/business-data-analysis.-solving-real-world-problem-using-pandas
Last synced: 5 months ago
JSON representation
this repository shows analysis of business of an entrepreneur of the sales he has made in one year for the all months .it analyzes using pandas to do predictions and give insights on how he can improve on his sales
- Host: GitHub
- URL: https://github.com/allanotieno254/business-data-analysis.-solving-real-world-problem-using-pandas
- Owner: AllanOtieno254
- License: cc0-1.0
- Created: 2024-03-09T09:37:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-09T10:08:24.000Z (over 1 year ago)
- Last Synced: 2025-02-17T08:33:57.346Z (8 months ago)
- Language: Jupyter Notebook
- Size: 6.18 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pandas-Data-Science-Tasks
Set of real world data science tasks completed using the Python Pandas library.## Setup
click the green "clone or download" button and then click "Download ZIP". You then should extract all of the files to the location you want to edit your code.
Installing Jupyter Notebook: https://jupyter.readthedocs.io/en/latest/install.html
Installing Pandas library: https://pandas.pydata.org/pandas-docs/stable/install.html## Background Information:
in this project ive used Python Pandas & Python Matplotlib to analyze and answer business questions about 12 months worth of sales data. The data contains hundreds of thousands of electronics store purchases broken down by month, product type, cost, purchase address, etc.
We start by cleaning our data. Tasks during this section include:
- Drop NaN values from DataFrame
- Removing rows based on a condition
- Change the type of columns (to_numeric, to_datetime, astype)Once we have cleaned up our data a bit, we move the data exploration section. In this section we explore 5 high level business questions related to our data:
- What was the best month for sales? How much was earned that month?
- What city sold the most product?
- What time should we display advertisemens to maximize the likelihood of customer’s buying 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 we walk through many different pandas & matplotlib methods. They include:
- Concatenating multiple csvs together to create a new DataFrame (pd.concat)
- Adding columns
- Parsing cells as strings to make new columns (.str)
- Using the .apply() method
- Using groupby to perform aggregate analysis
- Plotting bar charts and lines graphs to visualize our results
- Labeling our graphs