Questions tagged «column-width»

16
如何扩展输出显示以查看pandas DataFrame的更多列?
有没有办法在交互式或脚本执行模式下扩大输出的显示? 具体来说,我describe()在pandas上使用该功能DataFrame。当DataFrame5列(标签)宽时,我得到了所需的描述性统计信息。但是,如果DataFrame具有更多列,则统计信息将被抑制,并返回如下所示的内容: >> Index: 8 entries, count to max >> Data columns: >> x1 8 non-null values >> x2 8 non-null values >> x3 8 non-null values >> x4 8 non-null values >> x5 8 non-null values >> x6 8 non-null values >> x7 8 non-null values 无论是6列还是7列,都会给出“ 8”值。“ 8”是什么意思? …

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.