ipython / ipython/ipykernel

AttributeError: 'dict' object has no attribute 'plot'

オープン
#333 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
734
フォーク
412
平均マージ
1日 5時間
マージ済み PR(30日)
8

説明

from iexfinance import Stock
import matplotlib.pyplot as plt
tsla = Stock('TSLA')
tsla.get_close()
tsla.get_price()

from iexfinance import get_historical_data
from datetime import datetime
import pandas as pd
pd.set_option('display.max_rows', 1000)

start = datetime(2017, 2, 9)
end = datetime(2017, 5, 24)

df = get_historical_data("TSLA", start=start, end=end, output_format='json')
df.plot()
plt.show()

I keep getting the following error and I am not sure what am i doing wrong

---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
in ()
8
9 df = get_historical_data("TSLA", start=start, end=end, output_format='json')
---> 10 df.plot()
11 plt.show()
12 df

AttributeError: 'dict' object has no attribute 'plot'

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。