【问题标题】:How to view the whole table如何查看整个表
【发布时间】:2018-12-29 17:32:37
【问题描述】:

我正在尝试使用 quandl 获取表(数据集)。该表有 5rows X 12Columns 但在输出中仅显示 4 列,其余列被 3 个点替换。 我使用 Python 编写了以下代码:

import quandl
df = quandl.get('WIKI/GOOGL')
print(df.head())

有关输出,请参阅此图像。

P.S.:我尝试为这段代码使用不同的 IDE,但输出是相同的。

【问题讨论】:

  • 请不要将文本输出作为图像发布。
  • @Mr.T:当然。但它看起来与发布的文本相同,减去颜色和字体。这似乎不是问题的一部分。
  • 我不知道 quandl,但看输出 - isn't it simply this pandas question?
  • @Mr.T 感谢为我工作的伙伴。我对我的代码进行了以下更改,它对我有用:import pandas as pdimport quandldf = quandl.get('WIKI/GOOGL')pd.set_option('display.max_columns', None)print(df.head())

标签: python-3.x quandl


【解决方案1】:

我找到了解决方案以下代码将完美运行:

import pandas as pd
import quandl
df = quandl.get('WIKI/GOOGL')
pd.set_option('display.max_columns', None)
print(df.head())

【讨论】:

  • 你是救生员!你在哪里找到这个的?能否请您添加来源?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2014-02-16
  • 2014-10-07
  • 2020-11-24
  • 1970-01-01
  • 2017-01-28
  • 2011-02-20
  • 2023-03-15
相关资源
最近更新 更多