GithubHelp home page GithubHelp logo

parkrun's Introduction

parkrun

This is a collection of simple functions in Python to manipulate and analyse parkrun data.

The library requires pandas and matplotlib to work.

Simple usage

import parkrun
infile = r'.\data\Parkrun_Woodhouse_Results_458_04062016.txt'
results = parkrun.importResults(infile,report=True)

The input data should contain a dump of the table of results as published on the parkrun website. Just copy and paste the entire content of the page in a text file. The function will assume that the headers and footers are in the file and the right number of lines to skip can be set in the function.

To show descriptive statistics of the results, type:

parkrun.print_stats(results)

A bar plot of the number of runners in each age category can be obtained with:

parkrun.plot_AgeCat(results)

This will produce the following image:

example

parkrun's People

Contributors

jobar8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.