text_plain_output_1.png
from pathlib import Path

import pandas as pd

import pandas as pd
from pathlib import Path
input_root_path = Path('../input')

sub = pd.read_csv(input_root_path.joinpath('sample_submission.csv'))
all_zeros = sub.copy()
all_zeros['y'] = 0
all_zeros.to_csv('baseline_probe_0.0.csv', index=False)
P_bp = -59.2822

idx_1_replace_100 = all_zeros.copy()
idx_1_replace_100['y'][0] = 100
idx_1_replace_100.to_csv('probe_0001_100.csv', index=False)
P_1_100 = -59.25187

idx_1_replace_100['y'][0] = 200
idx_1_replace_100.to_csv('probe_0001_200.csv', index=False)
P_1_200 = -59.36366

S_tot = 20000.0 / (2 * P_1_100 - P_bp - P_1_200)
print('Stot is : {:.5f}'.format(S_tot))