Giter VIP home page Giter VIP logo

pymmwr's Introduction

pymmwr

https://img.shields.io/travis/reichlab/pymmwr.svg?style=flat-square https://img.shields.io/pypi/v/pymmwr.svg?style=flat-square

MMWR weeks for Python. Port of MMWRWeek.

Weekdays go from Sunday (1) to Saturday (7). See ./tests/test_basic.py for usage instructions.

pip install pymmwr

pymmwr's People

Contributors

lepisma avatar dependabot[bot] avatar

Stargazers

Jaime Cascante Vega avatar Leonidas Tsaprounis avatar Amit Manchanda avatar

Watchers

James Cloos avatar  avatar  avatar

pymmwr's Issues

Standardize notation

Right now, the representation of an epiweek is like a dictionary at some places (when returned from a few functions) and two independent integers at other places (when ingested in functions). Similar to mmwr-week (the js version), we can make it a class that goes like Epiweek(2014, 23).

There are the following benefits:

  1. Its cleaner to have a single standard
  2. The Epiweek class can then be made hashable (dicts are not) so it will work nicely with pandas.Series which gets used a lot while working with the data we have.

On the downside, the projects depending on this might have to either:

  1. Pin their version as pymmwr == 0.1.0 (preferred) or
  2. Change the code if thats not a lot of problem.

As far as I know, other than some ensemble repositories (where I can pin the version), there is forecast-repository where this is getting used. @matthewcornell, thoughts?

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.