Git Product home page Git Product logo

habitica-challenge-wrangler's Introduction

habitica-challenge-wrangler

Data wrangling tool for quickly selecting a winner from Habitica Challenge CSV data.

Installation

To install the latest release from PyPI:

pip install habitica-challenge-wrangler

If you already have habitica-challenge-wrangler installed, then upgrade with:

pip install --upgrade habitica-challenge-wrangler

This application requires the pandas library, version 0.17.0 or higher. If you have trouble installing with pip, then I suggest you use one of the scientific Python distributions, such as Anaconda (Linux, Mac, Windows), or WinPython (Windows only).

To uninstall, simply use pip again:

pip uninstall habitica-challenge-wrangler

Usage

First, download your Habitica challenge CSV data from the Habitica website.

Then execute the pick-winner script, passing the downloaded CSV file name as a command line argument:

pick-winner --input-file my_challenge_data.csv

By default, the leaderboard showing the top 10 participants is displayed. The number of participants to display can be specified with the --leaderboard-rows option:

pick-winner --input-file my_challenge_data.csv --leaderboard-rows 5

The intermediate data products can optionally be written to a spreadsheet with the to-excel command:

pick-winner --input-file my_challenge_data.csv --to-excel

This will write a single excel file (the name is based on your input file name), with several sheets.

  • raw: The raw challenge data.
  • reshaped: The raw challenge data in a more flexible layout compared to the raw data.
  • placings: Participant placings in each task.
  • final scores: The complete final scores.

Scoring

Each task is considered separately. Scores are ranked from first to last, with first place getting 1 point, second place getting 2 points, and so on through to last place.

For todos, a completed todo is treated as equal first place while incomplete todos are scored as equal last place.

Finally, the ranking scores are averaged for each participant. The participant with the highest average placing in each task is considered the winner.

Tie Breaks

In the event of a tie for first place, the names of all tied participants are printed, and a random winner is selected.

habitica-challenge-wrangler's People

Contributors

dc23 avatar

Stargazers

Ricardo Ruiz avatar

Watchers

James Cloos avatar  avatar

habitica-challenge-wrangler's Issues

Add CSV export function

After transformation, there should be an option to save the reshaped challenge data to CSV.

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.