Can somebody help me with the simpler way to write the following code? This code works, but it seems long, and when I want to repeat this it is time consuming. I am iterating over rows, but i'd like to run several .sum functions on each row during each iteration, and put that value in a new column.
for ind, row in tqdm(df.iterrows()):
print("I'm Working ", end = '\r')
df.loc[ind,"pre_fighter_2_sig_str_totals_total_A_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_totals_total_A"].sum()
df.loc[ind,"pre_fighter_2_sig_str_totals_total_B_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_totals_total_B"].sum()
df.loc[ind,"pre_fighter_1_total_str_totals_total_A_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_total_str_totals_total_A"].sum()
df.loc[ind,"pre_fighter_1_total_str_totals_total_B_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_total_str_totals_total_B"].sum()
df.loc[ind,"pre_fighter_2_total_str_totals_total_A_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_total_str_totals_total_A"].sum()
df.loc[ind,"pre_fighter_2_total_str_totals_total_B_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_total_str_totals_total_B"].sum()
df.loc[ind,"pre_fighter_1_td_totals_total_A_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_td_totals_total_A"].sum()
df.loc[ind,"pre_fighter_1_td_totals_total_B_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_td_totals_total_B"].sum()
df.loc[ind,"pre_fighter_2_td_totals_total_A_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_td_totals_total_A"].sum()
df.loc[ind,"pre_fighter_2_td_totals_total_B_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_td_totals_total_B"].sum()
df.loc[ind,"pre_fighter_1_sig_str_totals_round1_A_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_totals_round1_A"].sum()
df.loc[ind,"pre_fighter_1_sig_str_totals_round1_B_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_totals_round1_B"].sum()
df.loc[ind,"pre_fighter_2_sig_str_totals_round1_A_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_totals_round1_A"].sum()
df.loc[ind,"pre_fighter_2_sig_str_totals_round1_B_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_totals_round1_B"].sum()
df.loc[ind,"pre_fighter_1_total_str_totals_round1_A_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_total_str_totals_round1_A"].sum()
df.loc[ind,"pre_fighter_1_total_str_totals_round1_B_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_total_str_totals_round1_B"].sum()
df.loc[ind,"pre_fighter_2_total_str_totals_round1_A_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_total_str_totals_round1_A"].sum()
df.loc[ind,"pre_fighter_2_total_str_totals_round1_B_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_total_str_totals_round1_B"].sum()
df.loc[ind,"pre_fighter_1_td_totals_round1_A_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_td_totals_round1_A"].sum()
df.loc[ind,"pre_fighter_1_td_totals_round1_B_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_td_totals_round1_B"].sum()
df.loc[ind,"pre_fighter_2_td_totals_round1_A_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_td_totals_round1_A"].sum()
df.loc[ind,"pre_fighter_2_td_totals_round1_B_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_td_totals_round1_B"].sum()
df.loc[ind,"pre_fighter_1_sig_str_totals_round2_A_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_totals_round2_A"].sum()
df.loc[ind,"pre_fighter_1_sig_str_totals_round2_B_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_totals_round2_B"].sum()
df.loc[ind,"pre_fighter_2_sig_str_totals_round2_A_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_totals_round2_A"].sum()
df.loc[ind,"pre_fighter_2_sig_str_totals_round2_B_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_totals_round2_B"].sum()
df.loc[ind,"pre_fighter_1_total_str_totals_round2_A_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_total_str_totals_round2_A"].sum()
df.loc[ind,"pre_fighter_1_total_str_totals_round2_B_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_total_str_totals_round2_B"].sum()
df.loc[ind,"pre_fighter_2_total_str_totals_round2_A_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_total_str_totals_round2_A"].sum()
df.loc[ind,"pre_fighter_2_total_str_totals_round2_B_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_total_str_totals_round2_B"].sum()
df.loc[ind,"pre_fighter_1_td_totals_round2_A_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_td_totals_round2_A"].sum()
df.loc[ind,"pre_fighter_1_td_totals_round2_B_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_td_totals_round2_B"].sum()
df.loc[ind,"pre_fighter_2_td_totals_round2_A_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_td_totals_round2_A"].sum()
df.loc[ind,"pre_fighter_2_td_totals_round2_B_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_td_totals_round2_B"].sum()
df.loc[ind,"pre_fighter_1_sig_str_totals_round3_A_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_totals_round3_A"].sum()
df.loc[ind,"pre_fighter_1_sig_str_totals_round3_B_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_totals_round3_B"].sum()
df.loc[ind,"pre_fighter_2_sig_str_totals_round3_A_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_totals_round3_A"].sum()
df.loc[ind,"pre_fighter_2_sig_str_totals_round3_B_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_totals_round3_B"].sum()
df.loc[ind,"pre_fighter_1_total_str_totals_round3_A_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_total_str_totals_round3_A"].sum()
df.loc[ind,"pre_fighter_1_total_str_totals_round3_B_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_total_str_totals_round3_B"].sum()
df.loc[ind,"pre_fighter_2_total_str_totals_round3_A_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_total_str_totals_round3_A"].sum()
df.loc[ind,"pre_fighter_2_total_str_totals_round3_B_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_total_str_totals_round3_B"].sum()
df.loc[ind,"pre_fighter_1_td_totals_round3_A_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_td_totals_round3_A"].sum()
df.loc[ind,"pre_fighter_1_td_totals_round3_B_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_td_totals_round3_B"].sum()
df.loc[ind,"pre_fighter_2_td_totals_round3_A_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_td_totals_round3_A"].sum()
df.loc[ind,"pre_fighter_2_td_totals_round3_B_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_td_totals_round3_B"].sum()
df.loc[ind,"pre_fighter_1_sig_str_totals_round4_A_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_totals_round4_A"].sum()
df.loc[ind,"pre_fighter_1_sig_str_totals_round4_B_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_totals_round4_B"].sum()
df.loc[ind,"pre_fighter_2_sig_str_totals_round4_A_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_totals_round4_A"].sum()
df.loc[ind,"pre_fighter_2_sig_str_totals_round4_B_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_totals_round4_B"].sum()
df.loc[ind,"pre_fighter_1_total_str_totals_round4_A_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_total_str_totals_round4_A"].sum()
df.loc[ind,"pre_fighter_1_total_str_totals_round4_B_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_total_str_totals_round4_B"].sum()
df.loc[ind,"pre_fighter_2_total_str_totals_round4_A_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_total_str_totals_round4_A"].sum()
df.loc[ind,"pre_fighter_2_total_str_totals_round4_B_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_total_str_totals_round4_B"].sum()
df.loc[ind,"pre_fighter_1_td_totals_round4_A_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_td_totals_round4_A"].sum()
df.loc[ind,"pre_fighter_1_td_totals_round4_B_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_td_totals_round4_B"].sum()
df.loc[ind,"pre_fighter_2_td_totals_round4_A_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_td_totals_round4_A"].sum()
df.loc[ind,"pre_fighter_2_td_totals_round4_B_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_td_totals_round4_B"].sum()
df.loc[ind,"pre_fighter_1_sig_str_totals_round5_A_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_totals_round5_A"].sum()
df.loc[ind,"pre_fighter_1_sig_str_totals_round5_B_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_totals_round5_B"].sum()
df.loc[ind,"pre_fighter_2_sig_str_totals_round5_A_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_totals_round5_A"].sum()
df.loc[ind,"pre_fighter_2_sig_str_totals_round5_B_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_totals_round5_B"].sum()
df.loc[ind,"pre_fighter_1_total_str_totals_round5_A_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_total_str_totals_round5_A"].sum()
df.loc[ind,"pre_fighter_1_total_str_totals_round5_B_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_total_str_totals_round5_B"].sum()
df.loc[ind,"pre_fighter_2_total_str_totals_round5_A_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_total_str_totals_round5_A"].sum()
df.loc[ind,"pre_fighter_2_total_str_totals_round5_B_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_total_str_totals_round5_B"].sum()
df.loc[ind,"pre_fighter_1_td_totals_round5_A_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_td_totals_round5_A"].sum()
df.loc[ind,"pre_fighter_1_td_totals_round5_B_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_td_totals_round5_B"].sum()
df.loc[ind,"pre_fighter_2_td_totals_round5_A_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_td_totals_round5_A"].sum()
df.loc[ind,"pre_fighter_2_td_totals_round5_B_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_td_totals_round5_B"].sum()
df.loc[ind,"pre_fighter_1_sig_str_sig_str_totals_A_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_sig_str_totals_A"].sum()
df.loc[ind,"pre_fighter_1_sig_str_sig_str_totals_B_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_sig_str_totals_B"].sum()
df.loc[ind,"pre_fighter_2_sig_str_sig_str_totals_A_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_sig_str_totals_A"].sum()
df.loc[ind,"pre_fighter_2_sig_str_sig_str_totals_B_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_sig_str_totals_B"].sum()
df.loc[ind,"pre_fighter_1_sig_str_head_totals_A_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_head_totals_A"].sum()
df.loc[ind,"pre_fighter_1_sig_str_head_totals_B_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_head_totals_B"].sum()
df.loc[ind,"pre_fighter_2_sig_str_head_totals_A_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_head_totals_A"].sum()
df.loc[ind,"pre_fighter_2_sig_str_head_totals_B_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_head_totals_B"].sum()
df.loc[ind,"pre_fighter_1_sig_str_body_totals_A_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_body_totals_A"].sum()
df.loc[ind,"pre_fighter_1_sig_str_body_totals_B_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_body_totals_B"].sum()
df.loc[ind,"pre_fighter_2_sig_str_body_totals_A_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_body_totals_A"].sum()
df.loc[ind,"pre_fighter_2_sig_str_body_totals_B_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_body_totals_B"].sum()
df.loc[ind,"pre_fighter_1_sig_str_leg_totals_A_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_leg_totals_A"].sum()
df.loc[ind,"pre_fighter_1_sig_str_leg_totals_B_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_leg_totals_B"].sum()
df.loc[ind,"pre_fighter_2_sig_str_leg_totals_A_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_leg_totals_A"].sum()
df.loc[ind,"pre_fighter_2_sig_str_leg_totals_B_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_leg_totals_B"].sum()
df.loc[ind,"pre_fighter_1_sig_str_distance_totals_A_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_distance_totals_A"].sum()
df.loc[ind,"pre_fighter_1_sig_str_distance_totals_B_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_distance_totals_B"].sum()
df.loc[ind,"pre_fighter_2_sig_str_distance_totals_A_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_distance_totals_A"].sum()
df.loc[ind,"pre_fighter_2_sig_str_distance_totals_B_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_distance_totals_B"].sum()
df.loc[ind,"pre_fighter_1_sig_str_clinch_totals_A_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_clinch_totals_A"].sum()
df.loc[ind,"pre_fighter_1_sig_str_clinch_totals_B_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_clinch_totals_B"].sum()
df.loc[ind,"pre_fighter_2_sig_str_clinch_totals_A_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_clinch_totals_A"].sum()
df.loc[ind,"pre_fighter_2_sig_str_clinch_totals_B_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_clinch_totals_B"].sum()
df.loc[ind,"pre_fighter_1_sig_str_ground_totals_A_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_ground_totals_A"].sum()
df.loc[ind,"pre_fighter_1_sig_str_ground_totals_B_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_ground_totals_B"].sum()
df.loc[ind,"pre_fighter_2_sig_str_ground_totals_A_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_ground_totals_A"].sum()
df.loc[ind,"pre_fighter_2_sig_str_ground_totals_B_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_ground_totals_B"].sum()
df.loc[ind,"pre_fighter_1_sig_str_sig_str_round1_A_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_sig_str_round1_A"].sum()
df.loc[ind,"pre_fighter_1_sig_str_sig_str_round1_B_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_sig_str_round1_B"].sum()
df.loc[ind,"pre_fighter_2_sig_str_sig_str_round1_A_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_sig_str_round1_A"].sum()
df.loc[ind,"pre_fighter_2_sig_str_sig_str_round1_B_all_fights_1"] = df[(df["B_fighter"] == row["B_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_2_sig_str_sig_str_round1_B"].sum()
df.loc[ind,"pre_fighter_1_sig_str_head_round1_A_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_head_round1_A"].sum()
df.loc[ind,"pre_fighter_1_sig_str_head_round1_B_all_fights_1"] = df[(df["B_fighter"] == row["R_fighter"]) & (df["Original Index"] < row["Original Index"])]["fighter_1_sig_str_head_round1_B"].sum()