---
id: 5e9a093a74c4063ca6f7c14e
title: Data Analysis Example B
challengeType: 11
videoId: 0kJz0q0pvgQ
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 on GitHub](https://github.com/ine-rmotr-curriculum/FreeCodeCamp-Pandas-Real-Life-Example)
-   [How to open Notebooks from GitHub using Google Colab.](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)

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

