Code Monkey home page Code Monkey logo

datascientist-politicalparties-python's Introduction

Survey Analysis

As a data scientist you are required to analyse the political landscape of Europe using the Chapel Hill Expert Survery dataset. The dataset provides insights into the positioning of 277 political parties in Europe based on 55 different attributes. The dataset can be downloaded here and the codebook provides further information on the survey attributes.

This repository contains the necessary setup and codebase to help guide you in performing an analysis using different statistical methods.

Project Setup

Pre-requisites

Please make sure you have the following software installed:

Install all Python dependencies

Poetry is used for Python dependency management. To install the necessary Python dependencies run the following command:

poetry install

Alternatively, the make command defined in the Makefile can also be used:

make install

Similarly to add and install new Python packages to your Poetry virtual environment, use:

poetry add <python-package-name>

Run tests & checks

The unit tests, linting checks, and type checks can be run either by using the make commands (given in the Makefile) or by using the corresponding commands for the respective packages. For example, unit tests can be executed using:

make test

or

poetry run pytest tests

For running linting checks using flake8, use:

poetry run flake8 src tests

or

make lint-check

Gearing Up for the Pairing Session

Please be sure to complete the below tasks before the pairing session:

  1. Get a high-level understanding of the dataset by looking into the codebook and if necessary, downloading and inspecting the dataset.
  2. Have your preferred text editor or IDE setup and ready to go.
  3. Have your coding environment ready by installing Python and Poetry.
  4. Ensure that you are able to run all commands mentioned in this README (note that a failing test from pytest is expected).

Please note that you DO NOT have to complete the code/tasks inside the src/ folder. These are intended to be completed collaboratively during the pairing session.

datascientist-politicalparties-python's People

Contributors

ned2 avatar iswariyam avatar shraddhasurana avatar

Stargazers

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