Git Product home page Git Product logo

wonderakwei / robust-data-pipeline-csv-to-postgresql-with-airflow-docker-and-pandas Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 261 KB

Built a strong data pipeline that effortlessly moves CSV data to PostgreSQL, combining the power of Airflow for task orchestration, Docker for containerized deployment, and Pandas for efficient data processing. Achieved seamless integration and reliable data workflows.

License: MIT License

robust-data-pipeline-csv-to-postgresql-with-airflow-docker-and-pandas's Introduction

Data Engineering End-to-End with PostgreSQL, Airflow, Docker, Pandas

Overview: This project demonstrates an end-to-end data engineering process using PostgreSQL, Apache Airflow, Docker, and Pandas. The primary goal is to establish a robust data pipeline for seamlessly transferring CSV data into a PostgreSQL database.

Tech Stack:

  • Apache Airflow: Task orchestration
  • PostgreSQL: Database management
  • Pandas: Efficient data processing
  • Docker: Containerized deployment
  • Python: Programming language
  • SQL: Query language

Workflow:

  1. Get Remote CSV Data:

    • Download a CSV file from a remote repository.
    • Configure PostgreSQL connection parameters.
  2. Data Import and Table Creation:

    • Create a local PostgreSQL table.
    • Write CSV data to the PostgreSQL table using a Python script.
  3. Data Modification and DataFrame Creation:

    • Retrieve data from the table.
    • Perform data modifications and Pandas practices.
    • Create three separate data frames.
  4. Write Data Frames to PostgreSQL:

    • Create related tables in the PostgreSQL database.
    • Insert data frames into these tables.
  5. Automate with Airflow DAGs:

    • Utilize Airflow for task automation.
    • Schedule daily execution of tasks.

Usage:

  1. Configure PostgreSQL connection parameters.
  2. Install necessary libraries using pip install -r requirements.txt.
  3. Run Python scripts for CSV import, table creation, data modification, and DataFrame creation.
  4. Execute Airflow DAG for automated task execution.

robust-data-pipeline-csv-to-postgresql-with-airflow-docker-and-pandas's People

Contributors

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