pandas 打印所有dtypes [英] Pandas printing ALL dtypes
本文介绍了 pandas 打印所有dtypes的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这似乎是一个非常简单的问题,但是却使我转弯.我确定它应该由RTFM解决,但我已经研究了这些选项,并且可以看到一个解决方法.
This seems like a very simple problem, however it's driving me round the bend. I'm sure it should be solved by RTFM, but I've looked at the options and I can see the one to fix it.
我只想打印所有列的dtypes,目前我正在获取:
I just want to print the dtypes of all columns, currently I'm getting:
print df.dtypes
#>
Date object
Selection object
Result object
...
profit float64
PL float64
cumPL float64
Length: 11, dtype: object
我尝试将选项display.max_row
,display.max_info_row
,display.max_info_columns
都设置为无效.
I've tried setting options display.max_row
, display.max_info_row
, display.max_info_columns
all to no avail.
我在做什么错了?
熊猫版本= 0.13.1
更新:
原来我是白痴并且没有将display.max_row
设置为足够高的值.
Turns out I was being and idiot and hadn't set display.max_row
to a high enough value.
解决方案是:
pd.set_option('display.max_rows', 20)
推荐答案
我尝试过并工作:
df.info(verbose=True)
这篇关于 pandas 打印所有dtypes的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文