Skip to content

Commit ff0e333

Browse files
committed
Episode 04: fix python code blocks
1 parent 8bb0270 commit ff0e333

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

_episodes/04-data-types-and-format.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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
331332
and 9 columns, much smaller than the 35549 row original.
332333
333334
We can now use the `to_csv` command to do export a DataFrame in CSV format. Note that the code

0 commit comments

Comments
 (0)