[SciPy-Dev] stats._support.adm() dos not seem to like string values

Vincent Davis vincent@vincentdavis....
Fri Jul 2 14:25:40 CDT 2010


>>> y
array([['1', '2', 't'],
       ['1', '3', '3']],
      dtype='|S8')
>>> s.adm(y, 'x[1]=='2'')
Traceback (most recent call last):
  File "<string>", line 1, in <fragment>
invalid syntax: <string>, line 1, pos 18

The documentation is very lacking, My question is should the ability
to handle string be added/fixed or should the docs specify numbers
only.

Also I think the criterion should be improved accept "x[1]" or in the
above example "y[1]" really it could accept anything as the "x" has
not real meaning in the criterion

Suggestion/comments

Vincent


More information about the SciPy-Dev mailing list