pair_list_to_dict

tsml_eval.utils.functions.pair_list_to_dict(pl)[source]

Convert a 2d list of pairs to a dict.

Each list item must be a tuple or list of length 2. The first item in each pair is used as the key, the second as the value.

If ls is None, returns an empty dict.