1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Julia

Exercise

Sorting patients

You are looking at the patient data again, and you have come to realize just how unruly it is. Let's bring some order to this data using the sort() function.

The patient data is available in your environment as df_patients.

Instructions 1/2

undefined XP
    1
    2
  • Sort df_patients according to the heartrate column from lowest to highest.
  • Slice out the first 5 rows of the sorted DataFrame and print them.