text_html_output_1.png
import numpy as np # linear algebra

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

sub1 = pd.read_csv('../input/ncaam-2022/stage2_seeds_sample_submission.csv')
sub1.sort_values(by=['ID'], inplace=True)
sub2 = pd.read_csv('../input/mens-march-mania-2022/MDataFiles_Stage2/MSampleSubmissionStage2.csv')
sub2.sort_values(by=['ID'], inplace=True)
prob = 0.5 + 0.03 * (sub1['T2_seed'] - sub1['T1_seed'])
prob = np.round(prob, decimals=2)
sub2['Pred'] = np.clip(prob, 0.05, 0.95)
sub2.to_csv('submission.csv', index=False)
sub2.head()