[SciPy-Dev] signature for k-sample tests ???

josef.pktd at gmail.com josef.pktd at gmail.com
Fri Jan 3 15:49:29 EST 2014


I don't like it, but I don't care. Opinions please.

The inherited pattern in scipy.stats for k-sample tests is to use *args

anderson_ksamp(*args)
f_oneway(*args)
obrientransform(*args)

what do we do if we want to add keyword arguments?

>>> def f(*args, method='approx'):
SyntaxError: invalid syntax
unless this changes in newer versions of python

In statsmodels I either require a tuple instead of *args, or stack the
data into a long format. (I don't use *args for the main required
arguments.)

Josef



More information about the SciPy-Dev mailing list