获取行名和列名
print
(df._stat_axis.values.tolist
())
print
(df.columns.values.tolist
())
拷贝DataFrame
tmp
= df.copy
(deep
=True/False
)
按列值排序
df
['rank'] = df.groupby
('comp',sort
=False
)['value'].rank
(ascending
=True
).astype
(int
)
转载请注明原文地址: https://lol.8miu.com/read-1657.html