LoslegenKostenlos starten

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.

Diese Übung ist Teil des Kurses

<Kurs>Financial Trading in Python</Kurs>
Kurs ansehen

Interaktive praktische Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# Load the data
bitcoin_data = ____.____(____, ____, parse_dates=True)

# Print the top 5 rows
print(____.____())
Code bearbeiten und ausführen