🚗 Video too fast or too slow? Click the gear icon ⚙️ at the bottom-right to change the speed!

Lesson code

Please download the zip folder below to code along with the instructor.

You need to unzip this folder to code along. Or “Extract All” on Windows. See our video explanation of this if you are unsure.

Lesson notes

The written guide below is an accompaniment to the lesson video. You may read through it if you prefer written tutorials to video content.

👋 Before you go, please rate your satisfaction with this lesson

Ratings are completely anonymous

Average rating 4.7 / 5. Vote count: 6

No votes so far! Be the first to rate this post.

Please share any positive or negative feedback you may have.

Feedback is completely anonymous

Notify of

Oldest Most Voted
Inline Feedbacks
View all comments

Why when we calculate each person’s weight rank by sex we get a rank with decimals?


Good question! In this dataset, there were some cases where multiple people had a the same weight, therefore they are all tied for the same rank. In such cases, the rank() function calculates the average rank and assigns it to all of them. For example, there are 2 people weighing 115 kgs in the female… Read more »

Questions or comments?x