# Python 3 code to demonstrate
# removing duplicated from list
# using collections.OrderedDict.fromkeys()
from collections import OrderedDict
# using collections.OrderedDict.fromkeys()
# to remove duplicated
# from list
res = list(OrderedDict.fromkeys(l_features))
res
'언어 꿀Tip > Python 꿀tip!' 카테고리의 다른 글
07_01_71. sql로 데이터프레임(dataframe) 다루기, pysqldf (0) | 2021.08.17 |
---|---|
07_01_70. 두 list 중복값 추출하기 (0) | 2021.07.27 |
07_01_68. pd.pivot_table 컬럼명 prefix (0) | 2021.07.23 |
07_01_67. 더미변수 생성하기 get_dummies (0) | 2021.07.16 |
07_01_61. 데이터프레임 특정 컬럼명 변경 (dataframe rename) (0) | 2021.06.23 |