[Tips] pandas 如何根据index进行slice 如果在遍历pandas对象过程中获得了行的index构成的list,比如 alist = [0,5,8,10] 那想将pandas dataframe中相应index的行取出来则: dfmi.loc[alist]