cf.Data.to_memory

Data.to_memory(regardless=False)[source]

Store each partition’s data in memory in place if the master array is smaller than the chunk size.

There is no change to partitions with data that are already in memory.

Parameters :
regardless : bool, optional

If True then store all partitions’ data in memory regardless of the size of the master array. By default only store all partitions’ data in memory if the master array is smaller than the chunk size.

Returns :

None

Examples

>>> pa.to_memory()
>>> pa.to_memory(True)

Previous topic

cf.Data.to_disk

Next topic

cf.Data.transpose

This Page