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

Resample the data

In this exercise, you will switch your hat from a day trader to a swing trader and then a position trader, and manipulate the data to suit your needs.

You will work with 4-hour currency exchange rates of Euros (EURUSD) data. The data has been loaded as eurusd_4h.

Bu egzersiz

Financial Trading in Python

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

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Resample the data to daily by calculating the mean values
eurusd_daily = eurusd_4h.____('____').____()

# Print the top 5 rows
print(eurusd_daily.____())
Kodu Düzenle ve Çalıştır