p_res[label_cols] = (p_nbsvm[label_cols] + p_lstm[label_cols]) / 2 p_res.to_csv('submission.csv', index=False)