SocratesClub / css

《计算社会科学》课程
https://SocratesClub.github.io/css/
16 stars 4 forks source link

numpy tricks #9

Open chengjun opened 4 years ago

chengjun commented 4 years ago
alist= [[1, 3], 
        [2, 4], 
        [6, 9]]

np.array(alist)[:,0]

array([1, 2, 6])