这很有趣
these questions
不要得到太多的爱。。。不管怎样,我正在调查
market data recently
from pandas_datareader import data as pdr
import fix_yahoo_finance as yf
import seaborn as sns
import matplotlib.pyplot as plt
yf.pdr_override() # <== that's all it takes :-)
# download Panel
tags = ["SPY", "AMZN"]
data = pdr.get_data_yahoo(tags, start="2017-01-01", end="2017-01-30")
#print(data["Open"]["AMZN"])
print(data)
sns.violinplot(x=data["Close"]["AMZN"].values, palette="muted")
plt.show()
sns.violinplot(x=data["Close"]["SPY"].values, palette="muted")
plt.show()