|
1 | 1 | --- |
2 | 2 | title: Introduction to Python and Pandas |
3 | | -author: Kevin Nota, Robin Warner, and Maxime Borry |
| 3 | +author: Kevin Nota, Robin Warner, Rémi Denise, and Maxime Borry |
4 | 4 | --- |
5 | 5 |
|
6 | 6 | ::: {.callout-note} |
@@ -154,13 +154,13 @@ Hello World from bash! |
154 | 154 | ``` |
155 | 155 | ::: |
156 | 156 |
|
157 | | -Stings or numbers can be stored as a variable by using the *=* sign. |
| 157 | +Strings or numbers can be stored as a variable by using the *=* sign. |
158 | 158 |
|
159 | 159 | ```{.python eval=False} |
160 | 160 | i = 0 |
161 | 161 | ``` |
162 | 162 |
|
163 | | -Ones a variable is set in one _code cell_ they are stored and can be accessed in other downstream _code cells_. |
| 163 | +Once a variable is set in a _code cell_, they are stored and can be accessed in another downstream _code cell_. |
164 | 164 |
|
165 | 165 | To see what value a variable contains, the `print()` function can be used. |
166 | 166 |
|
@@ -1336,10 +1336,10 @@ Looking at the data, can you figure out what might cause this? |
1336 | 1336 | ::: {.callout-note collapse="true" title="Answer"} |
1337 | 1337 |
|
1338 | 1338 | When we look at the highest earners, we see that somebody put _666666_ as their income. |
1339 | | -This is much higher than any other income, which makes the histogram very draged out to include this person. |
| 1339 | +This is much higher than any other income, which makes the histogram very dragged out to include this person. |
1340 | 1340 |
|
1341 | 1341 | ```{.python eval=False} |
1342 | | -merged_df[merged_df["Income"].sort_values(ascending=False)] |
| 1342 | +merged_df["Income"].sort_values(ascending=False) |
1343 | 1343 | ``` |
1344 | 1344 | :::{.callout-note collapse="true"} |
1345 | 1345 | ## Expand to see output |
@@ -1488,7 +1488,7 @@ library_table_url |
1488 | 1488 | ## Summary |
1489 | 1489 |
|
1490 | 1490 | In this chapter, we have started exploring the basics of data analysis using `Python` with the versatile `Pandas` library. |
1491 | | -We wrote `Python` code and executed it in a Jupyter Notebook, with just a handful of functions such as `.read_csv()`, `.loc[]`, `drop()`, `merge()`, `.concat() and `plot()`, we have done data manipulation, calculated summary statistics, and plotted the data. |
| 1491 | +We wrote `Python` code and executed it in a Jupyter Notebook, with just a handful of functions such as `.read_csv()`, `.loc[]`, `drop()`, `merge()`, `.concat()` and `plot()`, we have done data manipulation, calculated summary statistics, and plotted the data. |
1492 | 1492 |
|
1493 | 1493 | The takeaway messages therefore are: |
1494 | 1494 |
|
|
0 commit comments