colour_datasets.utilities.row_to_index

colour_datasets.utilities.row_to_index(row: Union[Integer, str]) Integer[source]

Return the 0-based index of given row name.

Parameters

row (Union[Integer, str]) – Row name.

Returns

0-based row index.

Return type

class`int` or str

Examples

>>> row_to_index('1')
0