def chunk(self, size="<STR_LIT>", axis=None, padding=None):
if type(size) is not str:<EOL><INDENT>size = tupleize((size))<EOL><DEDENT>axis = tupleize((axis))<EOL>padding = tupleize((padding))<EOL>from bolt.spark.chunk import ChunkedArray<EOL>chnk = ChunkedArray(rdd=self._rdd, shape=self._shape, split=self._split, dtype=self._dtype)<EOL>return chnk._chunk(size, axis, padding)<EOL>
Chunks records of a distributed array.

Chunking breaks arrays into subarrays, using an specified
size of chunks along each value dimension. Can alternatively
specify an average chunk byte size (in kilobytes) and the size of
chunks (as ints) will be computed automatically.

Parameters
----------
size : tuple, int, or str, optional, default = "150"
    A string giving the size in kilobytes, or a tuple with the size
    of chunks along each dimension.

axis : int or tuple, optional, default = None
    One or more axis to chunk array along, if None
    will use all axes,

padding: tuple or int, default = None
    Number of elements per dimension that will overlap with the adjacent chunk.
    If a tuple, specifies padding along each chunked dimension; if a int, same
    padding will be applied to all chunked dimensions.

Returns
-------
ChunkedArray