text_html_output_1.png
import pandas as pd

import pandas as pd
p1 = '../input/30dml-30-d-ml-xgb/submission.csv'
p2 = '../input/30dml-catboost/submission.csv'
p3 = '../input/30dml-catboost-xgb-folds/submission.csv'
p4 = '../input/30dml-lightgbm/submission_lgb_5.csv'
all_s = []
for p in [p1, p2, p3, p4]:
    all_s.append(pd.read_csv(p))

weights = [0.03, 0.2, 0.03, 0.74]

sub = pd.concat([w * x.target for x, w in zip(all_s, weights)], axis=1).sum(axis=1)
sub.name = 'target'
sub = pd.concat([all_s[0]['id'], sub], axis=1)
sub.to_csv('submission_ens.csv', index=False)

sub.head()