semvec/pypi-packages huggingface dataset:
myreco 0.65.5
A Recommendations Framework
License: MIT
Keywords: recommendations neighborhood visualsimilarity visual similarity topseller top seller swagger openapi falconframework falcon framework

# myreco &middot; [![Build Status](https://travis-ci.org/dutradda/myreco.svg?branch=master)](https://travis-ci.org/dutradda/myreco) [![Coverage Status](https://coveralls.io/repos/github/dutradda/myreco/badge.svg?branch=master)](https://coveralls.io/github/dutradda/myreco?branch=master) [![PyPi Last Version](https://img.shields.io/pypi/v/myreco.svg)](https://pypi.python.org/pypi/myreco) [![PyPi Develop Status](https://img.shields.io/pypi/status/myreco.svg)](https://pypi.python.org/pypi/myreco) [![Python Versions](https://img.shields.io/pypi/pyversions/myreco.svg)](https://pypi.python.org/pypi/myreco) [![License](https://img.shields.io/pypi/l/myreco.svg)](https://github.com/dutradda/myreco/blob/master/LICENSE)

My Recommendations - A HTTP API Recommendations Service
snotra 0.0.9
Tool to analyze data on hospital events, prescriptions and similar types of health data
License: MIT
Keywords: health pandas

# Snotra - Health registry research using Pandas and Python
Snotra is a tool that extends and builds on the Pandas library to make it easier to analyze data on hospital events, prescriptions and similar types of health data.

Snotra is a also a Norse goddess associated with wisdom. 

### Examples
- **Count the number of unique persons with a diagnosis in event data**
    - Using special notation (star, hyphen and colon)
    ```python
    df.count_persons(codes=['K50*', 'K51*'], cols='icd*')  

    df.count_persons(codes=['K50.0-K51.9'], cols='icd*')        
    ```

    - Using logical expressions
    ```python
    df.count_persons(codes='K50 or K51 and not K52', cols='icd*')

    df.count_persons(codes='K50 in: icd and 4AB02 in:atc1, atc2')
    ```


- **Select all events for some persons using codelists or logical expressions**

    ```python
    df.select_persons(codes=['K50*', 'K51*'], cols='icd')

    df.select_persons(codes='(K50 or K51) and not K52', cols='icd')

    ```

- **Count the number of unique codes in multiple columns with multiple values in each cell**
    ```python
    df['icd_primary', 'icd_secondary'].count_codes(sep=',')
    ```
- **Calculate Charlson Comorbidity Index***
    ```python
    cci = sa.charlson(df=df, cols=['icd1', 'icd2'], sep=',')
    ```

## Installation
 - We recommend using 'sa' as an abbreviation for snotra

    ```python
    pip install snotra as sa
    ```

 ### Requirements
 - Python 3.6 
 - Pandas

 ### License
 MIT

 ## Documentation
 Draft overview of methods and functions [doc](doc/docs.md)

 ### Disclaimer
 Snotra is currently under development and not ready for production. Much remains to be tested and corrected, use at your own risk - and contributions are welcome!


 ### Features
 - **Easy and efficient notation and methods to deal with medical codes:** Medical data often use special code systems to indicate diagnoses, pharmaceuticals and medical procedures. We integrated these tools and allow the use of different types of notation (star, hyphen, colon) to make it easy to select or count the relevant patients.

- **Answer person level question using event level data:** Often health data contains information about events (a prescription, a hospital stay), while the questions we want answered are both at the event-level and person-level:
    - Event-level: How many doses of a certain pharmaceutical is used in a year?
    - Person-level: How many people have received a given pharmaceutical?
 We have methods, such as `count_persons` that make it easy to get person-level answers from event-level data.

- **Deal with messy data:** Sometimes the files supplied to the analysis are multiple large files of messy administrative data. For instance procedure codes can be merged in one column (comma separated) or spread across many columns. To deal with this we have methods that accept both types of data. For instance: the method `count_codes()` can count codes from many columns, some of which may contain comma seperated codes, some of which may be single valued.