🚗 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.

Subscribe
Notify of
guest

2 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Rodrigo

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

Joy

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 »

2
0
Questions or comments?x