📜  熊猫头和尾巴 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:22.692000             🧑  作者: Mango

代码示例1
#make 100 3d random numbers
df = pd.DataFrame(np.random.randn(100,3))

# sort them by their axis sum
df = df.loc[df.sum(axis=1).index]

with pd.option_context('display.max_rows',10):
    print(df)