1. Learn
  2. /
  3. Courses
  4. /
  5. Financial Trading in Python

Exercise

Plot a time series line chart

Cryptocurrencies are a new category of assets, and you are interested in exploring them more. You have some daily historical price data of Bitcoin saved in a CSV file. You want to get familiar with the data by doing some basic exploration and plotting.

The pandas package has been imported as pd (for the rest of the course as needed), and matplotlib.pyplot has been imported as plt.

Instructions 1/2

undefined XP
    1
    2
  • Load the CSV file 'bitcoin_data.csv' , specify the Date column as index, and save it in bitcoin_data.
  • Print the first 5 rows of the data.