Table of Contents
numpy.doc
numpy.lib
numpy.random
numpy.linalg
numpy.fft
numpy.polynomial
numpy.testing
numpy.f2py
numpy.distutils
numpy.lib.
iterable
Check whether or not an object can be iterated over.
y : object
Input object.
b : {0, 1}
Return 1 if the object has an iterator method or is a sequence, and 0 otherwise.
Examples
>>> np.iterable([1, 2, 3]) 1 >>> np.iterable(2) 0