问题
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.
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