Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scikit_posthocs/_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down