问题描述
我在 ipython3 中尝试了以下代码。但我没有看到绘制任何图形。有人可以让我知道如何使图形可见吗?谢谢。
import pandas as pd
apple_df = pd.read_csv('AAPL.csv',index_col=0,parse_dates=True)
dt_range = pd.date_range(start="2021-05-01",end="2020-05-31")
apple_df = apple_df[apple_df.index.isin(dt_range)]
apple_df.head()
import cufflinks as cf
qf=cf.Quantfig(apple_df,title='Apple Quant figure',legend='top',name='GS')
qf.add_bollinger_bands(periods=20,boll_std=2,colors=['magenta','grey'],fill=True)
qf.add_sma([10,20],width=2,color=['green','lightgreen'],legendgroup=True)
qf.add_rsi(periods=20,color='java')
qf.iplot()
https://coderzcolumn.com/tutorials/data-science/candlestick-chart-in-python-mplfinance-plotly-bokeh
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)