1 | initial version |
This is worse than the usual mess. Your table entries are numpy.int64
and Sage integers don't "win" from those:
sage: int(5)/int(6)
0
sage: int(5)/Integer(6)
5/6
sage: np.int64(5)/Integer(6)
0
If you don't want the properties of numpy's word-length integers you should probably get rid of them as soon as possible, so do something like
valueT = [Integer(a) for a in np.bincount(freqT)]