itertools does not recognize numpy ints as valid inputs on Python 3.6 – stackoverflow.com

Take this code: import itertools as it import numpy as np data = ['a','b','c','d'] dw = np.array([1, 3], dtype=np.int64) print(list(it.islice(data,dw[0],dw[1],1))) On Python 2.7 it prints ['b', ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "itertools does not recognize numpy ints as valid inputs on Python 3.6 – stackoverflow.com"