File size: 338 Bytes
53a6def
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""
Labs processing utilities
"""


def add_total_labs(df):
    """
    Historical features: to-date features
    --------
    :param df: dataframe to be updated
    :return: updated dataframe with historical columns added
    """
    # Add counter for rescue meds to date
    df['labs_to_date'] = df.labs_to_date.cumsum()

    return df