cf.Data.varray

Data.varray

A numpy array view the data array.

Note that making changes to elements of the returned view changes the underlying data.

If the data array is stored as datetime-like objects then a numpy array view of numeric reference times will be returned. In this case, a numpy array view of datetime-like objects may be created with the dtvarray attribute.

See also

array, dtarray, dtvarray

Examples

>>> a = d.varray
>>> type(a)
<type 'numpy.ndarray'>
>>> a
array([0, 1, 2, 3, 4])
>>> a[0] = 999
>>> d.varray
array([999, 1, 2, 3, 4])

Previous topic

cf.Data.unsafe_array

Next topic

cf.Data.pmdimensions

This Page