larray.LArray.info

LArray.info

Describes a LArray (title + shape and labels for each axis).

Returns:

str

Description of the array (title + shape and labels for each axis).

Examples

>>> nat = Axis('nat=BE,FO')
>>> sex = Axis('sex=M,F')
>>> mat0 = ones([nat, sex])
>>> mat0.info
2 x 2
 nat [2]: 'BE' 'FO'
 sex [2]: 'M' 'F'
dtype: float64
>>> mat1 = LArray(np.ones((2, 2)), [nat, sex], 'test matrix')
>>> mat1.info
test matrix
2 x 2
 nat [2]: 'BE' 'FO'
 sex [2]: 'M' 'F'
dtype: float64