column names. Either assert uniqueness or
(preferably) provide a de-uniqueness normalization
(e.g. ["col", "col"] -> ["col", "col-2"]. Check
existing solution for Dataset key uniqueness.
|
# TODO: RowWiseTableWithColNamesModel fails with duplicate |
|
# column names. Either assert uniqueness or |
|
# (preferably) provide a de-uniqueness normalization |
|
# (e.g. ["col", "col"] -> ["col", "col-2"]. Check |
|
# existing solution for Dataset key uniqueness. |
if len(data_list_of_lists) > 0:
first_row_as_colnames = Model[list[str]](data_list_of_lists[0]).content
# TODO: RowWiseTableWithColNamesModel fails with duplicate
# column names. Either assert uniqueness or
# (preferably) provide a de-uniqueness normalization
# (e.g. ["col", "col"] -> ["col", "col-2"]. Check
# existing solution for Dataset key uniqueness.
return cls._convert_list_of_lists_to_list_of_dicts(data_list_of_lists,
first_row_as_colnames)
else:
column names. Either assert uniqueness or
(preferably) provide a de-uniqueness normalization
(e.g. ["col", "col"] -> ["col", "col-2"]. Check
existing solution for Dataset key uniqueness.
omnipy/src/omnipy/components/tables/models.py
Lines 588 to 592 in b90dfac