File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -211,9 +211,10 @@ surveys_df['record_id'].dtype
211211>
212212> Try converting the column ` plot_id ` to floats using
213213>
214- > ``` python
214+ > ~~~
215215> surveys_df.plot_id.astype("float")
216- > ```
216+ > ~~~
217+ >> {: .language-python}
217218>
218219> Next try converting `weight` to an integer. What goes wrong here? What is Pandas telling you?
219220> We will talk about some solutions to this later.
@@ -327,7 +328,7 @@ df_na = surveys_df.dropna()
327328~~~
328329{: .language-python}
329330
330- If you now type ``` df_na`` ` , you should observe that the resulting DataFrame has 30676 rows
331+ If you now type `df_na`, you should observe that the resulting DataFrame has 30676 rows
331332and 9 columns, much smaller than the 35549 row original.
332333
333334We can now use the `to_csv` command to do export a DataFrame in CSV format. Note that the code
You can’t perform that action at this time.
0 commit comments