, , 1- (, , , 1-...;) - , ( dict, ).
dict, , , , (, 2).
dicts 2 . x, y.
new_dicts = [{'x': x} for x in d['x']]
for new_dict, y in zip(new_dicts, d['y']):
new_dict['y'] = y
1 , , :
new_dicts = [{'x': x, 'y': y} for x, y in zip(d['x'], d['y'])]
, ...
import operator
value_getter = operator.itemgetter(*list_of_keys)
new_dicts_values = zip(*value_getter(d))
new_dicts = [
dict(zip(list_of_keys, new_dict_values))
for new_dict_values in new_dicts_values]
, ... , , . , , , zipping dict , ...
, , ,
list_of_keys = list(d)