Coder Social home page Coder Social logo

hdx-data-scientist-test's Introduction

HDX Data Scientist Test

This repository contains a broken script that needs to be fixed. The script contains 3 errors:

  1. The main function fails to run.
  2. The columns of the CSV output are improperly organized.
  3. Some records fail to be written in the output CSV file.

You should be able to identify the source of all the errors above and be able to fix them, making sure that the script runs successully and that the output CSV file is correct.

Script Objective

The ebola-dataset-list.py script queries the Humanitarian Data Exchange API and creates a CSV file with the results of the query. We are interested in getting a table with all datasets that contain the tag "ebola". The table should contain a subset of the number of metadata fields available in the query result, but not all of them.

The CSV file available in this repository contains the results of a run with the broken script. The objective is to generate that file, but without the errors it currently presents. That sample CSV file can be found here.

Getting Started

The first step is to clone this repository locally -- (do not fork!). You will work on the solution on your local computer. When done, you can submit the whole repository as a ZIP package to the evaluation team via email.

Also, remember to install this script's dependencies from requirements.txt.

Usage

If you are using an UNIX system, we recommend using the run.sh script as follows:

$ bash run.sh

Or if you would like to run it direcly using Python, you can run:

$ source venv/bin/activate
$ python code/ebola-datasets-list.py

Either approach above will throw an error. That's when the test starts. Good luck!

hdx-data-scientist-test's People

Contributors

luiscape avatar reubano avatar

Watchers

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