Question: Now that we've go the data we need, let's get a sense for how much missing data there is in this dataset by determining how

Now that we've go the data we need, let's get a sense for how much missing data there is in this dataset by determining how many null- containing rows there are in survey. Assign this value to the variable null_rows . Now that we've go the data we need, let's get a sense for how much missing data there is in this dataset by determining how many nullcontaining rows there are in survey. Assign this value to the variable null_rows .
```
[89]: # YOUR CODE HERE
survey = survey[pd.isnull(survey).any(axis=1)]
null_rows = survey
```
[90]:
```
# Do not edit this cell. This cell is for testing purposes
### BEGIN TESTS
assert null_rows ==217
### END TESTS
```
```
ValueError Traceback (most recent call last)
/tmp/ipykernel_422/4027023900.py in ?()
l # Do not edit this cell. This cell is for testing purposes
2 ### BEGIN TESTS
---->3 assert null_rows ==217
4 ### END TESTS
/opt/conda/lib/python3.11/site-packages/pandas/core/generic.py in ?(self)
1575 @final
1576 def __nonzero__(self)-> NoReturn:
->1577_ raise ValueError(
1578 f"The truth value of a {type(self).__name__} is ambiguous. "
1579 "Use a.empty, a.bool(), a.item(), a.any() or a.all()."
1580)
ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
```
Now that we've go the data we need, let's get a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!