statannot icon indicating copy to clipboard operation
statannot copied to clipboard

Submitting subset of dataframe to add_stat_annotation() causes TypeError: unhashable type: 'numpy.ndarray'

Open moldovannorbert opened this issue 4 years ago • 0 comments

When I subset a pandas df with .isin() and I submit this to add_stat_annotation(ax[0,0], data=SubsetDf, x=x, y=y, hue=hue, box_pairs=box_pairs, perform_stat_test=False, pvalues=SubsetDf["P-val"], text_annot_custom=SubsetDf["Text"], loc='inside', order=order, verbose=0) I get the TypeError: unhashable type: 'numpy.ndarray'. The SubsetDf is reindexed following subsetting.

moldovannorbert avatar Dec 09 '20 11:12 moldovannorbert