版本:
System version : Windows 10 64-bit
Python version : Python 3.6.0 :: Anaconda 4.3.1 (64-bit)
list1=[1,2,4,3,1,2]
list1_remove_duplicate = sorted(set(list1),key=list1.index)
print(list1_remove_duplicate)
執行結果
[1, 2, 4, 3]
System version : Windows 10 64-bit
Python version : Python 3.6.0 :: Anaconda 4.3.1 (64-bit)
list1=[1,2,4,3,1,2]
list1_remove_duplicate = sorted(set(list1),key=list1.index)
print(list1_remove_duplicate)
[1, 2, 4, 3]
Exception: Cython-generated file 'statsmodels/tsa/kalmanf/kalman_loglike.c' not found.
Cython is required to compile statsmodels from a development branch.
Please install Cython or download a source release of statsmodels.
pip install statsmodels-0.8.0-cp36-cp36m-win_amd64.whl