dict_list_2_txt¶
-
yoda_powers.display.
dict_list_2_txt
(dico, sep='\t')[source]¶ Function that takes a dictionary of list and returns a tabular string with:
- Parameters
dico (
dict
) – the python dict to translate to formated string.sep (
str
) – the separator for join . Defaults to ‘t’.
- Returns
formated dict to string
- Return type
str
Examples
>>> dico = {"key1":["value1","value1"], "key2":["value2","value2"],"key3":["value3","value3"]} >>> dict_list_2_txt(dico) key1 value1 value1 key2 value2 value2 key3 value3 value3