--- id: 5e9a093a74c4063ca6f7c14e title: 数据分析 案例 B challengeType: 11 videoId: 0kJz0q0pvgQ bilibiliIds: aid: 505593432 bvid: BV1kg411c7M6 cid: 409003530 dashedName: data-analysis-example-b --- # --description-- *在视频中我们使用的编辑器工具是在 notebook.ai 这个平台,你也可以选择用其他的平台,比如说 Google Colab 也是一个不错的选择。* 更多资源: - [在 GitHub 平台的 Notebooks](https://github.com/ine-rmotr-curriculum/FreeCodeCamp-Pandas-Real-Life-Example) - [如何使用 Google Colab 来打开 GitHub 上的 Notebooks](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb) # --question-- ## --text-- `loc` 方法允许您做什么? ## --answers-- 通过提供整数位置参数来获取一个行和列的子集。 --- 通过提供标签参数来访问一组行和列。 --- 根据提供的整数参数返回前 `n` 行。 ## --video-solution-- 2