Skip to content

erfanbyt/data-cleaning-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note:

The input data is removed from the repo!

Coding assignment of machinery analytics

This repo contains the following folders:

  • main.py
  • functions.py
  • input folder
  • output folder
  • requirements.txt

main.py

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.

functions.py

From getting the raw data to the desired JSON file, all is done by functions in functions.py.

requirement.txt

This file contains all the libraries used in the code. It will be used to create a virtual environment to run the code.

input folder

The raw data is stored into the input folder.

output folder

The requested JSON file and csv of the dataframe are stored in this folder.

Instruction to run the code

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:

  1. JSON file: results_Erfan.json
  2. CSV file: dataframe.csv

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages