彙總產業別資料
在這個練習中,你將計算資訊科技(Information Technology)與民生消費(Consumer Staples)兩個產業的本益比(P/E)平均值與標準差。
numpy 已以 np 匯入,你的工作環境中也已提供前一個練習的陣列 it_pe 與 cs_pe。
本練習屬於課程
Python 金融入門
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Calculate mean and standard deviation
it_pe_mean = np.___(it_pe)
it_pe_std = np.____(it_pe)
print(it_pe_mean)
print(it_pe_std)