GithubHelp home page GithubHelp logo

sonnen_mai_task's Introduction

Data Transformation Application

This Python application performs data transformation and cleansing operations on a CSV file, calculates totals for grid_purchase and grid_feedin by hour and writes the transformed data to an output file.

Folder Structure

  1. README : Please read through this file to be able to run the date transformation application
  2. dockerfile : This text file is used to build the docker image
  3. measurments.csv: Input dataset provided to work on.
  4. output.csv: The transformed data with the added boolean column
  5. python_application.py: The python code of carrying on the required cleansing and transformation
  6. requirements.txt: Dependincies and packages used in python app and used by docker to build the docker image
  7. Documentation.pdf: Application documentation and output screenshots

Prerequisites

  1. Python 3.9 or higher installed on your local machine.
  2. Required Python packages: pandas, pandasql.
  3. Docker installation on the local machine

Getting Started

Clone the repository or download the application code locally.

You can run the python application directly from the terminal or using Docker.

Python

  1. Open the terminal and navigate to the cloned folder
  2. Install the required Python packages using pip:

    pip install pandas pandasql

  3. Run the application:

    python python_application.py

Dockerization

To run the application within a Docker container, follow these steps:

  1. In the terminal or command prompt, navigate to the project directory containing the Dockerfile.
  2. Build the Docker image using the following command

    docker build -t data-transformation-app .

  3. After the Docker image is successfully built, run the following command to start a container from the Docker image:

    docker run --name data-trans-cont data-transformation-app

  4. After the container finishes running, access the output file output.csv by copying it from the container to your local machine:

    docker cp data-trans-cont:/app/output.csv ./output.csv

sonnen_mai_task's People

Contributors

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