def save_predictions(df,target,model_name='',directory='Submits/',estimator_class='',note=''):
    timestamp = datetime.now().strftime('%m-%d-%y_%H%M')
    filename = directory+timestamp+'--'+model_name+'_'+estimator_class+'_'+note+'.csv'
    #---Perform any manual predictions cleanup that may be necessary---#

    #Save predictions
    try:
        df[target] = [x[0] for x in df[target]]
    except IndexError:
        df[target] = [x for x in df[target]]
    df.ix[:,['id',target]].to_csv(filename, index=False)
    log.info('Submission file saved: %s' % filename)
dataset/ETHPy150Open theusual/kaggle-seeclickfix-ensemble/Bryan/data_io.py/save_predictions/original