The input data is removed from the repo!
This repo contains the following folders:
- main.py
- functions.py
- input folder
- output folder
- requirements.txt
This file includes the core part of the code and all the functions are called there to produce the final result. To get the desired JSON file, run main.py.
From getting the raw data to the desired JSON file, all is done by functions in functions.py.
This file contains all the libraries used in the code. It will be used to create a virtual environment to run the code.
The raw data is stored into the input folder.
The requested JSON file and csv of the dataframe are stored in this folder.
1- Open the termial and clone the repo to your terminal -- using HTTPS
git clone https://github.com/erfanbyt/MachineryAnalytics_coding_assignment.git
2- change the directory to the project's folder
cd MachineryAnalytics_coding_assignment
3- create a virtual environment (venv) in the directory
python3 -m venv venv
4- activate the virtual environment
__ macOS users __
source venv/bin/activate
__ windows users __
source venv/Scripts/activate
5- install the required libraries from requirements.txt
pip install -r requirements.txt
6- run the python code
python main.py
After running the code successfully, "Code executed successfully!" will be displayed.
OUTPUTs:
- JSON file: results_Erfan.json
- CSV file: dataframe.csv