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

Connected

Exercise

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.

Instructions 1/2

undefined XP
  • 1
    • Resample the data to obtain daily data using the mean and print the top five rows.
  • 2
    • Resample the data to obtain weekly data using the mean and print the top five rows.