You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Try converting the column `plot_id` to floats using `surveys_df.plot_id.astype("float")`. Next try converting `weight` to an integer. What goes wrong here? What is Pandas telling you?
249
+
248
250
Pandas cannot convert types from float to int if the column contains NaN values.
249
251
250
252
### Challenge - Counting
253
+
254
+
* Count the number of missing values per column. Hint: The method .count() gives you the number of non-NA observations per column. Try looking to the .isnull() method.
255
+
256
+
~~~
251
257
surveys_df.isnull()
258
+
~~~
259
+
{: .language-python}
252
260
253
-
If the students have trouble generating the output, or anything happens with that, there is a file
254
-
called "sample output" that contains the data file they should generate.
261
+
If the students have trouble generating the output, or anything happens with that, there is a file called "sample output" that contains the data file they should generate.
0 commit comments