Statistical post-hoc analysis and outlier detection algorithms for Python. Provides pairwise multiple comparison tests (e.g., Nemenyi, Conover, Dunn, Bonferroni) and outlier detection (e.g., IQR, Grubbs). Current version: 0.12.0. Release cadence is irregular, major updates every 1-2 years.
pip install scikit-posthocsVerified import paths — ran on the pinned version, not inferred.
Perform Nemenyi post-hoc test after Friedman test. Input data: rows = subjects, columns = treatments. Output: pairwise p-value matrix.
Update to use named arguments: posthoc_nemenyi_friedman(data, group_col='groups')
Replace outliers_iqr(data) with outlier_test(data, method='iqr')
Replace sign_array(...) with sign_plot(...) (same arguments).
Always verify data shape: data.shape should be (subjects, treatments).
Install with pip install scikit-posthocs and import from scikit_posthocs (underscore).
Ensure your data array has at least 3 columns (e.g., data.shape[1] >= 3).
Use posthoc_nemenyi_friedman(data=your_data) or just your_data as first argument if using version >=0.8.0.