freeCodeCamp/curriculum/challenges/chinese-traditional/08-data-analysis-with-python/data-analysis-with-python-c.../data-cleaning-duplicates.md

44 lines
1.3 KiB
Markdown
Raw Normal View History

---
id: 5e9a093a74c4063ca6f7c15f
title: 數據 清理重複項
challengeType: 11
videoId: kj7QqjXhH6A
bilibiliIds:
aid: 675611672
bvid: BV1VU4y1A7tu
cid: 409019368
dashedName: data-cleaning-duplicates
---
# --description--
*在視頻中我們使用的編輯器工具是在 notebook.ai 這個平臺,你也可以選擇用其他的平臺,比如說 Google Colab 也是一個不錯的選擇。*
以下有更多的資料:
- <a href="https://github.com/ine-rmotr-curriculum/data-cleaning-rmotr-freecodecamp" target="_blank" rel="noopener noreferrer nofollow">在 GitHub 平臺的 Notebooks</a>
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">如何使用 Google Colab 來打開 GitHub 上的 Notebooks</a>
# --question--
## --text--
Python 方法 `.duplicated()` 將針對你的 DataFrame 返回一個儲存着布爾值的 Series。 `True` 是行的返回值:
## --answers--
包含一個重複值,並且它表示了在這一行這一重複值第一次出現。
---
包含一個重複值,並且它表示了在這一行這一重複值至少第二次出現。
---
包含一個重複值,並且它表示了在這一行這一重複值第一次或第二次出現。
## --video-solution--
2