Git Product home page Git Product logo

homebase_assignment's Introduction

homebase_assignment

Heart Disease Data Analysis Repository

This repository contains scripts and configurations for extracting, transforming, loading (ETL), and analyzing heart disease data.

Prerequisites

Before proceeding, ensure you have the following prerequisites installed:

  • Python 3.8 or higher
  • Airflow
  • PostgreSQL database
  • ClickHouse database

Data Extraction and Transformation

  1. Extract data from source:

    Run the etl.py script to extract data from the source system and load it into a staging table in PostgreSQL.

    python etl.py
    
    

Data Loading and Analysis

  1. Create ClickHouse DAG:

    Copy the postgres_to_clickhouse_dag.py file to the DAGS folder of your Airflow installation. This file defines an Airflow DAG that will periodically transfer data from PostgreSQL to ClickHouse.

    bash cp postgres_to_clickhouse_dag.py /

  2. Trigger ClickHouse DAG:

    Trigger the ClickHouse DAG to load data from PostgreSQL to ClickHouse. You can do this manually from the Airflow web interface or schedule it to run automatically.

  3. Analyze data in ClickHouse:

    Use the heart_disease_query.sql file to explore and analyze the heart disease data in ClickHouse. This file contains sample queries to get insights into the data.

Contributing

Contributions are welcome! Please feel free to open issues or pull requests with suggestions, improvements, or bug fixes.

homebase_assignment's People

Contributors

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