Previous topic

scikits.timeseries.DateArray.real

Next topic

scikits.timeseries.DateArray.__array_priority__

This Page

scikits.timeseries.DateArray.flat

DateArray.flat

A 1-D flat iterator over the array.

This is a flatiter instance, which acts similarly to a Python iterator.

See also

flatten
Return a copy of the array collapsed into one dimension.

flatiter

Examples

>>> x = np.arange(1, 7).reshape(2, 3)
>>> x
array([[1, 2, 3],
       [4, 5, 6]])
>>> x.flat[3]
4
>>> x.T
array([[1, 4],
       [2, 5],
       [3, 6]])
>>> x.T.flat[3]
5
>>> type(x.flat)
<type 'numpy.flatiter'>