cf.RaggedIndexedContiguousArray.get_compressed_dimension

RaggedIndexedContiguousArray.get_compressed_dimension(*default)[source]

Return the position of the compressed dimension in the compressed array.

New in version 1.7.0.

See also

get_compressed_axearray, get_compressed_axes, get_compressed_type

Parameters:
default: optional

Return default if the underlying array is not compressed.

Returns:
int

The position of the compressed dimension in the compressed array. If the underlying is not compressed then default is returned, if provided.

Examples:

>>> i = d.get_compressed_dimension()