From 657512800239774cb1cf3ff7f5734edc0dace787 Mon Sep 17 00:00:00 2001 From: Oroel Ipas Date: Thu, 11 Sep 2025 12:17:21 +0000 Subject: [PATCH] use .loc instead of list indexing for ranks --- scikit_posthocs/_plotting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scikit_posthocs/_plotting.py b/scikit_posthocs/_plotting.py index 4c5ea60..d90b27b 100644 --- a/scikit_posthocs/_plotting.py +++ b/scikit_posthocs/_plotting.py @@ -530,7 +530,7 @@ def critical_difference_diagram( # Sort by lowest rank and filter single-valued sets crossbar_sets = sorted( - (x for x in crossbar_sets if len(x) > 1), key=lambda x: ranks[list(x)].min() + (x for x in crossbar_sets if len(x) > 1), key=lambda x: ranks.loc[list(x)].min() ) # Create stacking of crossbars: for each level, try to fit the crossbar,