Get startedGet started for free

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.

This exercise is part of the course

Introduction to Julia

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Sort the data by heart rate
df_byheart = ____(____, _____)

# Print the first 5 rows
println(df_byheart[____, ____])
Edit and Run Code