Skip to content

Commit a519f6f

Browse files
committed
reverted from Hashable. now testing for (str, int, float). Not great but should cover most use cases?
1 parent f73b1e3 commit a519f6f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

dabest/_classes.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@ def __init__(self, data, idx, x, y, paired, id_col, ci, resamples,
3636
# data_in.reset_index(inplace=True)
3737
# data_in_index_name = data_in.index.name
3838

39-
40-
from collections import Hashable
4139
# Determine the kind of estimation plot we need to produce.
42-
if all([isinstance(i, Hashable) for i in idx]):
40+
if all([isinstance(i, (str, int, float)) for i in idx]):
4341
# flatten out idx.
4442
all_plot_groups = set(idx)
4543
if len(idx) > len(all_plot_groups):

0 commit comments

Comments
 (0)