import pandas as pd
data = {'Conditions ': ['NormalBlink1400', 'NormalBlink2000', 'NormalBlink3000', 'NormalBlink4000','NormalNoBlink1400'],
'-1': [48, 74, 77, 67,40],
'1': [108, 124, 147, 150,119]}
df = pd.DataFrame(data)
df['perc_one '] = (df["1"] / (df["1"] + df["-1"]))
df["perc_minus_one"] = (df["-1"] / (df["1"] + df["-1"]))
Выход:
df.head()