首页 > 解决方案 > 是否可以从打印功能中静音数据帧的索引?

问题描述

我想在我的数据框中使索引静音。我将如何使用熊猫来做到这一点?

Current output:

0        Prob(name) = 100.0%
1        Prob(name) = 0.0%

Expected output:
Prob(name) = 100.0%
Prob(name) = 0.0%

标签: pythonpandas

解决方案


print(df.to_string(index=False))

推荐阅读