I want to compute a ranksum test statistic for a small sample (n=32). scipy.stats.mannwhitneyu uses a normal approximation for the test statistic and the associated p-value (see here). For small samples, this might be misleading.
Is there a way in python to compute exact test statistics and/or associated p-values (as described here, just not in excel of course)?
[R has such an option, see here but I would prefer to stay in python.]