[SciPy-Dev] signature for k-sample tests ???
josef.pktd at gmail.com
josef.pktd at gmail.com
Fri Jan 3 15:50:34 EST 2014
On Fri, Jan 3, 2014 at 3:49 PM, <josef.pktd at gmail.com> wrote:
> 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.)
this is a follow-up to PR https://github.com/scipy/scipy/pull/3183
Josef
>
> Josef
More information about the SciPy-Dev
mailing list