colour_datasets.utilities.row_to_index#

colour_datasets.utilities.row_to_index(row: int | str) int[source]#

Return the 0-based index of given row name.

Parameters:

row (int | str) – Row name.

Returns:

0-based row index.

Return type:

class`int` or str

Examples

>>> row_to_index("1")
0