arthurai.core.util.update_column_in_list_of_dicts#
- arthurai.core.util.update_column_in_list_of_dicts(data, target_column, column_values)#
Adds column_values to target_column in a list of dicts in place. If values are present for target_column, they are overwritten. :type data:
List
[Dict
[str
,Any
]] :param data: the List of Dict data to modify :type target_column:str
:param target_column: the name of the column to write values into :type column_values:Sequence
[Any
] :param column_values: the values to write :rtype:None
:return: None (in place) :raises UserValueError: if the lengths don’t match or aren’t retrievable