0

最后一行代码中的烛台图显示不正确。相反,所有显示的是白色背景。我该如何解决?

from pandas_datareader import data
import pandas as pd
import numpy as np
import datetime
import yfinance as yf
yf.pdr_override()

%matplotlib inline

start = datetime.datetime.now() - datetime.timedelta(days = 365*5)
end = datetime.datetime.now()

GS = yf.download("GS", start,end)

import matplotlib.pyplot as plt
sns.set_style('whitegrid')

from plotly import __version__

import cufflinks as cf

from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot

init_notebook_mode (connected=True)

cf.go_offline()

GS[['High', 'Low', 'Open', 'Close']]['2016-06-17':'2021-06-15'].iplot(kind="candle")
4

0 回答 0