text_html_output_1.png
import pandas as pd

def submit(model, test_features, test_ids, filename):
    loss_pred = model.predict(test_features)
    submission = pd.DataFrame({'id': test_ids, 'loss': loss_pred.reshape(-1)})
    submission.to_csv(filename, index=False)

train = pd.read_csv('/kaggle/input/tabular-playground-series-aug-2021/train.csv')
test = pd.read_csv('/kaggle/input/tabular-playground-series-aug-2021/test.csv')

train.shape