BaşlayınÜcretsiz Başlayın

Reading market history

Many data sources let you download data in the .csv file format. To understand a stocks performance over time it is useful to analyze its history. Imagine that you want to analyze the history of a stocks performance, looking at it closing prices for the last few months. The first thing you need to do is open the file as a DataFrame. The path to the .csv file containing the data is 'pcdg.csv'.

Bu egzersiz

Intermediate Python for Finance

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Read the .csv file into a DataFrame.
  • Print the DataFrame.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Read the data
stocks = ____.____('____')

# Look at the data
print(____)
Kodu Düzenle ve Çalıştır