(dfs, new, window=None)
return dfs, old
Emit new list of dfs and decayed data

    Parameters
    ----------
    dfs: list
        List of historical dataframes
    new: DataFrame, Series
        New data
    window: int

    Returns
    -------
    dfs: list
        New list of historical data
    old: list
        List of dataframes to decay
Emit new list of dfs and decayed data
Emit new list of dfs and decayed data
def diff_iloc(dfs, new, window=None):
    """ Emit new list of dfs and decayed data

    Parameters
    ----------
    dfs: list
        List of historical dataframes
    new: DataFrame, Series
        New data
    window: int

    Returns
    -------
    dfs: list
        New list of historical data
    old: list
        List of dataframes to decay
    """
    dfs = deque(dfs)
    if len(new) > 0:
        dfs.append(new)
    old = []
    if len(dfs) > 0:
        n = sum(map(len, dfs)) - window
        while n > 0:
            if len(dfs[0]) <= n:
                df = dfs.popleft()
                old.append(df)
                n -= len(df)
            else:
                old.append(dfs[0].iloc[:n])
                dfs[0] = dfs[0].iloc[n:]
                n = 0

    return dfs, old
def diff_iloc ( dfs , new , window = None ) : dfs = deque ( dfs ) if len ( new ) > 0 : dfs . append ( new ) old = [ ] if len ( dfs ) > 0 : n = sum ( map ( len , dfs ) ) - window while n > 0 : if len ( dfs [ 0 ] ) <= n : df = dfs . popleft ( ) old . append ( df ) n -= len ( df ) else : old . append ( dfs [ 0 ] . iloc [ : n ] ) dfs [ 0 ] = dfs [ 0 ] . iloc [ n : ] n = 0 return dfs , old