def add_temporality(df):
    """
    Adds previous five-game statistics to each sample as numerical data. 

    Parameters 
    ----------
    df: pandas dataframe
        Containing basic stats from past games (pts, reb, ast, date, etc)

    Returns 
    ----------
    df: pandas dataframe 
        The updated df, previous stats included. 
    
    """
    df_ = df.drop([0,1,2,3,4])
    
    pts = df['pts'].values
    reb = df['reb'].values
    ast = df['ast'].values
    
    pts_ = []
    reb_ = []
    ast_ = []
    
    for i in range(1,6):
        pts_.append([pts[j-i] for j in range(5,len(pts))])
        reb_.append([reb[j-i] for j in range(5,len(reb))])
        ast_.append([ast[j-i] for j in range(5,len(ast))])
        
    df_['pts-1'] = pts_[0]
    df_['pts-2'] = pts_[1]
    df_['pts-3'] = pts_[2]
    df_['pts-4'] = pts_[3]
    df_['pts-5'] = pts_[4]
    
    df_['reb-1'] = reb_[0]
    df_['reb-2'] = reb_[1]
    df_['reb-3'] = reb_[2]
    df_['reb-4'] = reb_[3]
    df_['reb-5'] = reb_[4]
    
    df_['ast-1'] = ast_[0]
    df_['ast-2'] = ast_[1]
    df_['ast-3'] = ast_[2]
    df_['ast-4'] = ast_[3]
    df_['ast-5'] = ast_[4]
    
    return df_