2020-08-13 12:00:20 +02:00
|
|
|
---
|
|
|
|
id: 5e9a093a74c4063ca6f7c14e
|
|
|
|
challengeType: 11
|
|
|
|
videoId: 0kJz0q0pvgQ
|
2021-01-13 03:31:00 +01:00
|
|
|
dashedName: data-analysis-example-b
|
2020-08-13 12:00:20 +02:00
|
|
|
---
|
|
|
|
|
2020-12-16 00:37:30 -07:00
|
|
|
# --description--
|
2020-08-13 12:00:20 +02:00
|
|
|
|
|
|
|
More resources:
|
|
|
|
|
2020-12-16 00:37:30 -07:00
|
|
|
\- [Notebook](https://notebooks.ai/rmotr-curriculum/freecodecamp-pandas-real-life-example-24fa5bf8)
|
2020-08-13 12:00:20 +02:00
|
|
|
|
2020-12-16 00:37:30 -07:00
|
|
|
# --question--
|
2020-08-13 12:00:20 +02:00
|
|
|
|
2020-12-16 00:37:30 -07:00
|
|
|
## --text--
|
2020-08-13 12:00:20 +02:00
|
|
|
|
2020-12-16 00:37:30 -07:00
|
|
|
What does the `loc` method allow you to do?
|
|
|
|
|
|
|
|
## --answers--
|
|
|
|
|
|
|
|
Retrieve a subset of rows and columns by supplying interger-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
|
|
|
|
|