原码
import tushare as ts
df = ts.profit_data(top=60)
df.sort('shares',ascending=False)
报错
AttributeError:'DataFrame' object has no attribute 'sort'
解决:将“sort”改为“sort_values”
import tushare as ts
df = ts.profit_data(top=60)
df.sort_values('shares',ascending=False)