GithubHelp home page GithubHelp logo

test_bm's Introduction

Back Market Data Engineering team

Download this file: https://backmarket-data-jobs.s3-eu-west-1.amazonaws.com/data/product_catalog.csv

This technical assessment will be evaluated regarding these following points:

  • Python Programming
  • Clean code
  • Interoperabilityæ
  • Scalability
  • Versioning
  • Automatization

Data Pipeline Assessment

You can develop & refactor your code (using your versioning tool) following this pipeline:

  1. Download and read the file: product_catalog.csv locally
  2. Transform the file from CSV to Parquet format locally
  3. Separate the valid rows from the invalid ones into two separate files: the business wants only the product with an image but wants to archive the invalids rows

Yeah, well done!

Now Back Market is growing so fast, what you would do to tackle the massive new CSV files? Describe the next steps for your code to scale it up.

Tips:

  1. Do not reinvent the wheel, take the hypothesis
  2. Think about the quality of the code
  3. Handle the common errors, what if we start again your code?
  4. Take the time you need
  5. Enjoy!

Answer : Back Market grows too fast

We have different options to scale the pipeline.

First using a distributed data processing framework such as spark, which would allow us to distribute the processing on multiple thread and instances.

We could compute the split on the dataframe with only the past x minutes of data and run the pipeline every x minutes.

To run the tests

pip install-r requirements.txt
pytest

To run the pipeline

pip install-r requirements.txt
export PYTHONPATH=. 
python transformater/transform.py

test_bm's People

Contributors

charlesandre avatar

Watchers

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