Code Monkey home page Code Monkey logo

codac_assesment's Introduction

Codac Assignment

Description

The aim of the assignment is to prepare a data file for the company KommatiPara, which deals with bitcoin tradings. Using 2 datasets, which contains client details and their financial details. The company needs to have one dataset including details from the two datasets without personal information and for specific countries.


Input

For the assignment a user should upload two .csv files.

The first file with client details, consists of the following columns:

id first_name last_name email country

The second file with financial details consists of the followig columns:

id btc_a cc_t cc_n

Modifications

For both datasets applied following modifications:

  • Filtered the first dataset by the country column to obtain only records for United Kingdom and Netherlands
  • Dropped unneccesary columns which consisted personal informations like first_name and last_name
  • Joined both datasets on id column
  • Renamed columns, as follows:
    • btc_a -> bitcoin_address
    • cc_t -> credit_card_type
    • id -> client_identifier

Output

The output file contains only id, email, btc_a, cc_t and cc_n columns which are also renamed. The file should look like as follows:

client identifier email country bitcoin_address credit card type

Example of use

After package installation, run the following comand:

Codac --file_one "./datasets/dataset_one.csv" --file_two "./datasets/dataset_two.csv" --countries "Netherlands" "United Kingdom"

Explanation:

  • --file_one is the argument name for the first dataset file
  • "./datasets/dataset_one.csv" is the path for the fist dataset file
  • --file_two is the argument name for the second dataset file
  • "./datasets/dataset_two.csv" is the path for the second dataset file
  • --countries is the argument for the list containing country names by which the first dataset will be filtered, this argument is default so user do not need to put it.
  • "Netherlands" is the country by which the first dataset will be filtered, this argument is default so user do not need to put it.
  • "United Kingdom" is also the country by which the first dataset will be filtered, this argument is default so user do not need to put it.

codac_assesment's People

Contributors

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