extracting unparalleled equipment list mappings
he're an engaging problem looks many pythonic solution. suspect i have list mappings {'id': id, 'url': url}. ids list duplicate, i wish emanate new list, duplicates removed. i came adult following function:
def unique_mapping(map):
d = {}
res map:
d[res['id']] = res['url']
relapse [{'id': id, 'url': d[id]} id d]
i suspect it's definitely efficient. nonetheless there "more pythonic" proceed ? maybe some-more fit proceed ?
Comments
Post a Comment