Coder Social home page Coder Social logo

etl-challenge's Introduction

Problem:

  • You have a vendor that delivers 2 files (data.csv, headers.txt) every day at 6AM UTC.
  • Here you are provided the files in the root path as if they were already downloaded from an external source (e.g. S3 or SFTP).
  • One file contains the raw pipe-delimited data (data.csv) without a header row.
  • The other file (headers.txt) contains the headers in the same order as the data in data.csv, but each header is a separate row. E.g. the first column in data.csv is Order ID, the next is Order Date and so on.
  • Write a program that takes the data from both files, transforms into a single CSV file with both header row and data, and finally loads it into a database using the provided function.
  • Use the class provided in src/main.py, start your code in the class's run function, and write as if this were production-ready code.
  • We are not using a real database here, so just pretend that the Database class's load_file function handles everything for us.

Note: use Python >= 3.7 to solve and do not use any other packages or dependencies (e.g. Pandas). The goal is to show us your coding style and see how you would approach the problem using plain Python. This should not take more than 1 hour to complete.

etl-challenge's People

Contributors

rwhitten577 avatar

Watchers

James Cloos 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.