cfdm.Data.persist¶
-
Data.
persist
(inplace=False)[source]¶ Persist data into memory.
Persisting turns an underlying lazy dask array into an equivalent chunked dask array, but now with the results fully computed and in memory. This can avoid the expense of re-reading the data from disk, or re-computing it, when the data is accessed on multiple occassions.
Compare with
compute
andarray
.Performance
persist
causes delayed operations to be computed.New in version (cfdm): 1.11.2.0
See also
compute
,array
,datetime_array
,dask.array.Array.persist
- Parameters
- Returns
Examples
>>> e = d.persist()