您好,我想知道(4)在此循环中代表什么 谢谢
# compute the percentage of the price change for every 5 days
btcusd["5d_close_pct"]=btcusd["Adj Close"].pct_change(5)
# Create a new column that shift the price (5 days change)
btcusd["5d_close_future"]=btcusd["Adj Close"].shift(-5)
# compute the percentage of the price change for every 5 days
btcusd["5d_close_future_pct"]=btcusd["5d_close_future"].pct_change()
# compute the correlation between this two columns
btcusd[btcusd["5d_close_pct"],btcusd["5d_close_future_pct"]].corr()
答案 0 :(得分:0)
均值:从sheetXls的第8行到最后使用的行