I knew the right answer but tried to use
.head() instead. Is there a reason to choose one over the other? They both seem to create dataframes.
- Assign the first five rows of the
null_previous_rankdataframe to the variable
top5_null_prev_rankby choosing the correct method out of either
# My Answer top5_null_prev_rank = null_previous_rank.head(5) # Course answer top5_null_prev_rank = null_previous_rank.iloc[:5]