pyfan.amto.lsdc.lsdcconvert¶
The pyfan.amto.lsdc.lsdcconvert module provides list and dict converters.
Created on Dec 18, 2020
import pyfan.amto.lsdc.lsdcconvert as pyfan_amto_lsdcconvert
Includes method ff_decimal_rounder_uncommon() and ff_decimal_rounder().
Module Contents¶
Functions¶
|
Convert list to dict with list name and index and dict keys |
-
pyfan.amto.lsdc.lsdcconvert.ff_ls2dc(ls_list, st_counter_str='i', st_all_str='o', st_ls_name=None, verbose=False)[source]¶ Convert list to dict with list name and index and dict keys
- Parameters
- ls_listlist
A list of values.
- st_counter_strstr
String prefix for list counter in dictionary name.
- st_all_strstr
String prefix in front of total ele length in dict key name.
- Returns
- dict
A dictionary of equal length to ls_list input, list converted to dict.