Re: scipy.stats.itemfreq: overflow with add.reduce

2005-12-21 Thread Hans Georg Krauthaeuser
Hans Georg Krauthaeuser schrieb: > Hans Georg Krauthaeuser schrieb: > >> Hi All, >> >> I was playing with scipy.stats.itemfreq when I observed the following >> overflow: >> >> In [119]:for i in [254,255,256,257,258]: >>.:l=[0]*i >>.:print i, stats.itemfreq(l), l.count(0) >

Re: scipy.stats.itemfreq: overflow with add.reduce

2005-12-21 Thread Hans Georg Krauthaeuser
Hans Georg Krauthaeuser schrieb: > Hi All, > > I was playing with scipy.stats.itemfreq when I observed the following > overflow: > > In [119]:for i in [254,255,256,257,258]: >.:l=[0]*i >.:print i, stats.itemfreq(l), l.count(0) >.: > 254 [ [ 0 254]] 254 > 255 [ [

scipy.stats.itemfreq: overflow with add.reduce

2005-12-21 Thread Hans Georg Krauthaeuser
Hi All, I was playing with scipy.stats.itemfreq when I observed the following overflow: In [119]:for i in [254,255,256,257,258]: .:l=[0]*i .:print i, stats.itemfreq(l), l.count(0) .: 254 [ [ 0 254]] 254 255 [ [ 0 255]] 255 256 [ [0 0]] 256 257 [ [0 1]] 257 258 [