繪製時間序列折線圖
加密貨幣是一種新興資產類別,你想更深入探索。你有一份以 CSV 檔案儲存的 Bitcoin 每日歷史價格資料。你打算先做基本的資料探索與繪圖,來熟悉這份資料。
pandas 套件已匯入為 pd(後續課程需要時皆相同),而 matplotlib.pyplot 已匯入為 plt。
本練習屬於課程
Financial Trading in Python
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Load the data
bitcoin_data = ____.____(____, ____, parse_dates=True)
# Print the top 5 rows
print(____.____())