---
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:

-  <a href="https://github.com/ine-rmotr-curriculum/FreeCodeCamp-Pandas-Real-Life-Example" target="_blank" rel="noopener noreferrer nofollow">Notebooks على GitHub</a>
-  <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">كيفية فتح Notebook من GitHub باستخدام Google Colab.</a>

# --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

