text_html_output_1.png text_plain_output_1.png
import pandas as pd

TRAIN_PATH = '../input/tabular-playground-series-feb-2022/train.csv'
TEST_PATH = '../input/tabular-playground-series-feb-2022/test.csv'
PSEUDO_PATH = '../input/automl-tps-02-22-flaml-prediction/submission.csv'
ID = 'row_id'
TARGET = 'target'

train = pd.read_csv(TRAIN_PATH)

test = pd.read_csv(TEST_PATH)
pseudo = pd.read_csv(PSEUDO_PATH)
pseudo = pseudo.drop([ID], axis=1)
pseudo_train = pd.concat([test, pseudo], axis=1)
pseudo_train.reset_index(inplace=True, drop=True)

new_train = pd.concat([train, pseudo_train], axis=0, ignore_index=True)
print('new_train size = ', len(new_train))
new_train.head()