statannot
statannot copied to clipboard
Submitting subset of dataframe to add_stat_annotation() causes TypeError: unhashable type: 'numpy.ndarray'
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.