Tôi muốn tạo một ô hình nến hàng ngày từ dữ liệu tôi đã tải xuống từ yahoo bằng cách sử dụng gấu trúc. Tôi đang gặp khó khăn trong việc tìm ra cách sử dụng hàm matplotlib trong ngữ cảnh này. Đây là mã:Vẽ dữ liệu nến từ một khung dữ liệu trong Python
#The following example, downloads stock data from Yahoo and plots it.
from pandas.io.data import get_data_yahoo
import matplotlib.pyplot as plt
from matplotlib.pyplot import subplots, draw
from matplotlib.finance import candlestick
symbol = "GOOG"
data = get_data_yahoo(symbol, start = '2013-9-01', end = '2013-10-23')[['Open','Close','High','Low','Volume']]
ax = subplots()
candlestick(ax,data['Open'],data['High'],data['Low'],data['Close'])
Cảm ơn
Andrew.