In [1]:
import scikit_posthocs as sp
import numpy as np
import pandas as pd
In [2]:
x = [[1,2,3,5,1], [12,31,54], [10,12,6,74,11]]
sp.posthoc_conover(x)
Out[2]:
In [3]:
sp.posthoc_conover(x, p_adjust = 'holm')
Out[3]:
In [4]:
groups = [['a']*5, ['b']*3, ['c']*5]
df = pd.DataFrame({'vals': np.concatenate(x), 'groups': np.concatenate(groups)})
df
Out[4]:
In [5]:
result = sp.posthoc_conover(df, val_col='vals', group_col='groups')
result
Out[5]: