--- id: 5e9a093a74c4063ca6f7c14e title: Data Analysis Example B challengeType: 11 videoId: 0kJz0q0pvgQ bilibiliIds: aid: 505593432 bvid: BV1kg411c7M6 cid: 409003530 dashedName: data-analysis-example-b --- # --description-- *Instead of using notebooks.ai like it shows in the video, you can use Google Colab instead.* More resources: - Notebooks على GitHub - كيفية فتح Notebook من GitHub باستخدام Google Colab. # --question-- ## --text-- What does the `loc` method allow you to do? ## --answers-- Retrieve a subset of rows and columns by supplying integer-location arguments. --- Access a group of rows and columns by supplying label(s) arguments. --- Returns the first `n` rows based on the integer argument supplied. ## --video-solution-- 2