일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- Gitbook
- PowerMock
- ECMAScript2015
- NPM
- java
- python
- API
- Unit-test
- primitive type
- sanghaklee
- REST
- ubuntu
- node.js
- AWS
- javascript
- JaCoCo
- dict
- GIT
- Code-coverage
- 개인정보수정
- Lodash
- {}
- sinopia
- nginx
- ATOM
- RESTful
- 인프런
- Coveralls
- Linux
- Travis CI
Archives
- Today
- Total
목록list (1)
이상학의 개발블로그
[Python] 리스트 딕셔너리 중복 제거
python how to remove duplicate dict in list https://stackoverflow.com/questions/11092511/python-list-of-unique-dictionaries dict 전체 중복 # 순서가 보장되지 않음 list(map(dict, set(tuple(sorted(d.items())) for d in data))) # 순서가 보장됨 list(map(dict, collections.OrderedDict.fromkeys(tuple(sorted(d.items())) for d in data))) data = [ {'id': 1, 'name': 'hak', 'age': 30}, {'id..
Python
2020. 2. 13. 17:41