Skip to content

Commit 92847d9

Browse files
authored
Update README.md
Fix typo: from "ealier" to "earlier" Fix format: From **Dropping duplicates: `drop_duplicates`: `drop_duplicates` to **Dropping duplicates: `drop_duplicates`:**
1 parent b1a9aff commit 92847d9

File tree

1 file changed

+2
-2
lines changed
  • 2-Working-With-Data/08-data-preparation

1 file changed

+2
-2
lines changed

2-Working-With-Data/08-data-preparation/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ Notice that when a previous value is not available for forward-filling, the null
265265
266266
In addition to missing data, you will often encounter duplicated data in real-world datasets. Fortunately, `pandas` provides an easy means of detecting and removing duplicate entries.
267267

268-
- **Identifying duplicates: `duplicated`**: You can easily spot duplicate values using the `duplicated` method in pandas, which returns a Boolean mask indicating whether an entry in a `DataFrame` is a duplicate of an ealier one. Let's create another example `DataFrame` to see this in action.
268+
- **Identifying duplicates: `duplicated`**: You can easily spot duplicate values using the `duplicated` method in pandas, which returns a Boolean mask indicating whether an entry in a `DataFrame` is a duplicate of an earlier one. Let's create another example `DataFrame` to see this in action.
269269
```python
270270
example4 = pd.DataFrame({'letters': ['A','B'] * 2 + ['B'],
271271
'numbers': [1, 2, 1, 3, 3]})
@@ -290,7 +290,7 @@ example4.duplicated()
290290
4 True
291291
dtype: bool
292292
```
293-
- **Dropping duplicates: `drop_duplicates`: `drop_duplicates` simply returns a copy of the data for which all of the `duplicated` values are `False`:
293+
- **Dropping duplicates: `drop_duplicates`:** simply returns a copy of the data for which all of the `duplicated` values are `False`:
294294
```python
295295
example4.drop_duplicates()
296296
```

0 commit comments

Comments
 (0)