* feat(tools): add seed/solution restore script * chore(curriculum): remove empty sections' markers * chore(curriculum): add seed + solution to Chinese * chore: remove old formatter * fix: update getChallenges parse translated challenges separately, without reference to the source * chore(curriculum): add dashedName to English * chore(curriculum): add dashedName to Chinese * refactor: remove unused challenge property 'name' * fix: relax dashedName requirement * fix: stray tag Remove stray `pre` tag from challenge file. Signed-off-by: nhcarrigan <nhcarrigan@gmail.com> Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
59 lines
645 B
Markdown
59 lines
645 B
Markdown
---
|
|
id: 5e9a093a74c4063ca6f7c15d
|
|
challengeType: 11
|
|
videoId: ovYNhnltVxY
|
|
dashedName: data-cleaning-introduction
|
|
---
|
|
|
|
# --description--
|
|
|
|
More resources:
|
|
|
|
\- [Notebook](https://notebooks.ai/rmotr-curriculum/data-cleaning-rmotr-freecodecamp-fd76fa59)
|
|
|
|
# --question--
|
|
|
|
## --text--
|
|
|
|
What will the following code print out?
|
|
|
|
```py
|
|
import pandas as pd
|
|
import numpy as np
|
|
|
|
s = pd.Series(['a', 3, np.nan, 1, np.nan])
|
|
|
|
print(s.notnull().sum())
|
|
```
|
|
|
|
## --answers--
|
|
|
|
3
|
|
|
|
---
|
|
|
|
```
|
|
0 True
|
|
1 True
|
|
2 False
|
|
3 True
|
|
4 False
|
|
dtype: bool
|
|
```
|
|
|
|
---
|
|
|
|
```
|
|
0 False
|
|
1 False
|
|
2 True
|
|
3 False
|
|
4 True
|
|
dtype: bool
|
|
```
|
|
|
|
## --video-solution--
|
|
|
|
1
|
|
|