LabeledDimension

class csdmpy.LabeledDimension(labels, label='', description='', application={}, **kwargs)[source]

Bases: csdmpy.dimensions.base.BaseDimension

A labeled dimension.

Generates an object representing a non-physical dimension whose coordinates are labels. See LabeledDimension for details.

property axis_label

Return a formatted string for displaying label along the dimension axis.

property coordinates

Return the coordinates along the dimensions. This is an alias for labels.

copy()[source]

Return a copy of the object.

property count

Total number of labels along the dimension.

property data_structure

Json serialized string describing the LabeledDimension class instance.

is_quantitative()[source]

Return True, if the dimension is quantitative, otherwise False. :returns: A Boolean.

property labels

Return a list of labels along the dimension.

to_dict()[source]

Return the LabeledDimension as a python dictionary.

property type

Return the type of the dimension.