[加权排序盘面]#tags:看盘
import tushare as ts a=ts.get_today_all() x=(a.changepercent*a.nmc)/a.nmc.sum() a['weight']=x a.sort(['weight'],ascending=False)