ssb_timeseries.sample_metadata¶
- camel_case_keys(dictionary)¶
Rename dictionary keys to camel case.
- Return type:
dict- Parameters:
dictionary (dict)
- list_to_tax(list_of_dicts)¶
Use code as key, convert list of dicts to dict.
- Return type:
list[dict[str, typing.Any]]- Parameters:
list_of_dicts (list[dict[str, TypeAliasForwardRef('typing.Any')]])
- lower_first_char(s)¶
Change first character of string to lowercase.
- Return type:
str- Parameters:
s (str)
- random_words(some_list=None, n=1)¶
Return a random word from ‘some_list’.
- Return type:
list[str]- Parameters:
some_list (list[str] | None)
n (int)
- snake_case_keys(dictionary)¶
Rename dictionary keys to snake case.
- Return type:
dict- Parameters:
dictionary (dict)
- tags_string(separator='_', *args)¶
Join one random element from each list in ‘args’, separated by ‘separator’.
- Return type:
str- Parameters:
separator (str)
args (list[str])