(T)
T = 0
    folder = 'trainT-0'
T = 0
    folder = 'trainT-0'
T = 0 folder = trainT - 0
def make(T):
    """
    T = 0
    folder = 'trainT-0'
    """
    if T==-1:
        folder = 'test'
    else:
        folder = 'trainT-'+str(T)
        
    label = pd.read_pickle('../feature/{}/label_reordered.p'.format(folder))
    
    df = pd.merge(label[['order_id', 'product_id']], 
                 tbl[['order_id', 'product_id','days_since_last_order_this_item']], 
                 on=['order_id', 'product_id'], how='left')
    
    df.to_pickle('../feature/{}/f303_order-product.p'.format(folder))
def make ( T ) : if T == - 1 : folder = 'test' else : folder = 'trainT-' + str ( T ) label = pd . read_pickle ( '../feature/{}/label_reordered.p' . format ( folder ) ) df = pd . merge ( label [ [ 'order_id' , 'product_id' ] ] , tbl [ [ 'order_id' , 'product_id' , 'days_since_last_order_this_item' ] ] , on = [ 'order_id' , 'product_id' ] , how = 'left' ) df . to_pickle ( '../feature/{}/f303_order-product.p' . format ( folder ) )