[SciPy-user] .typecode in scipy.stats

joep josef.pktd@gmail....
Wed Sep 24 11:19:37 CDT 2008

``.typecode`` seems to be depreciated for a long time, but there is
still one left in \scipy\stats\_support.py (is still in current trunk)

see traceback


>>> stats.itemfreq(freq)
Traceback (most recent call last):
  File "<pyshell#12>", line 1, in ?
  File "c:\programs\python24\lib\site-packages\scipy\stats\stats.py",
line 954, in itemfreq
    scores = _support.unique(a)
  File "c:\programs\python24\lib\site-packages\scipy\stats
\_support.py", line 51, in unique
    if inarray.typecode() != 'O':  # not an Object array
AttributeError: 'numpy.ndarray' object has no attribute 'typecode'

More information about the SciPy-user mailing list