How to view the whole table

烂漫一生 提交于 2021-02-09 11:12:50

问题


I am trying to get a table(dataset) using quandl. The table has 5rows X 12Columns but it is only showing 4 columns in the output and rest columns are replaced by 3 dots. I wrote the following piece of code using Python:

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

for the output please refer to this image. Click Here

P.S.: I tried using different IDEs for this code but the output was same.


回答1:


I found the solution The following code will work perfectly:

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


来源:https://stackoverflow.com/questions/51458892/how-to-view-the-whole-table

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!