Skip to content

Commit dfddae9

Browse files
authored
Merge pull request #126 from rdenise/main
Update python-pandas.qmd
2 parents 02de355 + 6b1b64e commit dfddae9

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

python-pandas.qmd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
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
44
---
55

66
::: {.callout-note}
@@ -154,13 +154,13 @@ Hello World from bash!
154154
```
155155
:::
156156

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.
158158

159159
```{.python eval=False}
160160
i = 0
161161
```
162162

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_.
164164

165165
To see what value a variable contains, the `print()` function can be used.
166166

@@ -1336,10 +1336,10 @@ Looking at the data, can you figure out what might cause this?
13361336
::: {.callout-note collapse="true" title="Answer"}
13371337

13381338
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.
13401340

13411341
```{.python eval=False}
1342-
merged_df[merged_df["Income"].sort_values(ascending=False)]
1342+
merged_df["Income"].sort_values(ascending=False)
13431343
```
13441344
:::{.callout-note collapse="true"}
13451345
## Expand to see output
@@ -1488,7 +1488,7 @@ library_table_url
14881488
## Summary
14891489

14901490
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.
14921492

14931493
The takeaway messages therefore are:
14941494

0 commit comments

Comments
 (0)