This repository is the final project of the Dicoding class "Learn Data Analysis with Python". This project attempts to analyze the E-Commerce Public Dataset data provided by Dicoding or through the source Kaggle with the title Brazilian E-Commerce Public Dataset by Olist. The purpose of this analysis is to explore and get to know the dataset, as well as find some interesting insights from the dataset to answer business questions.
./data: Contains all datasets in.csvformat used in theData_Analysis_Project.ipynbnotebook../dashboard: Contains all files and codes used to build the data analysis dashboard using Streamlit.notebook.ipynb: Interactive Python Notebook (.ipynb) file where the entire data analysis process is carried out.
-
Clone the repository to the local computer using the following command.
git clone https://github.com/bayu-siddhi/e-commerce-data-analysis.git -
Once inside the root directory of this project on your local computer, create a virtual environment (e.g. with the name
.venv) to install all the dependencies needed to run the notebook and dashboard.python -m venv .venv -
Activate the
.venvvirtual environment by running the following command..\.venv\Scripts\activate -
After the virtual environment is active, the next step is to install the project dependencies by running the following command.
pip install -r requirements.txt -
After all dependencies have been successfully installed, the dashboard can be run using the following command.
streamlit run .\dashboard\main.py
If steps 4 and 5 do not work in the virtual environment .venv in step 3, then use the method of calling the virtual environment manually as follows.
Make sure the position of the current working directory is at the root of the project directory.
-
Alternative step number 4.
.\.venv\Scripts\python.exe -m pip install -r requirements.txt -
Alternative step number 5.
.\.venv\Scripts\python.exe -m streamlit run .\dashboard\main.py
