Skip to content

Commit

Permalink
Change drop to use baseline as iloc instead of label
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Gabín committed May 2, 2024
1 parent 210b590 commit f524e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyterrier/pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ def _apply_round(measure, value):
for pcol in p_col_names:
pcol_reject = pcol.replace("p-value", "reject")
pcol_corrected = pcol + " corrected"
reject, corrected, _, _ = statsmodels.stats.multitest.multipletests(df[pcol].drop(baseline), alpha=correction_alpha, method=correction)
reject, corrected, _, _ = statsmodels.stats.multitest.multipletests(df[pcol].drop(df.index[baseline]), alpha=correction_alpha, method=correction)
insert_pos = df.columns.get_loc(pcol)
# add reject/corrected values for the baseline
reject = np.insert(reject, baseline, False)
Expand Down

0 comments on commit f524e95

Please sign in to comment.