2017-10-02 8 views
0
import numpy as np 
import pandas as pd 
import pandas_datareader.data as web 

from pandas_datareader import data, wb 


goog = web.DataReader('GOOG', data_source='google', start='3/14/2017',end='9/14/2017') 

print goog.head() 

googの構文が無効であるのはなぜですか?印刷時にGoogle Financeの構文エラーが発生する

は正しいタイプがあるので、彼らは機能とそれを置き換える[OK]を、私は理由はPython 3で見つけた

+0

3、 'print()'は関数です。あなたは 'print(goog.head())'を使う必要があります。あなたが持っているものは、Python 2の構文です。 – SherylHohman

答えて

0

ありがとう:

プリント(goog.head())あなたはpythonの上にある場合

関連する問題