Skip to content

Commit 11e2e1a

Browse files
authored
Merge pull request #173 from crahal/gh-pages
De-duplication in Ep 13, added keypoints to Ep 9.
2 parents 4959c4e + 39aeb12 commit 11e2e1a

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

_episodes/09-extracting-data.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ questions:
66
- 'How can I extract specific rows and columns from a Dataframe?'
77
- 'How can I add or delete columns from a Dataframe?'
88
- 'How can I find and change missing values in a Dataframe?'
9+
910
objectives:
1011
- 'Define indexing as it relates to data structures'
1112
- 'Select specific columns from a data frame'
@@ -14,9 +15,12 @@ objectives:
1415
- 'Copy a data frame'
1516
- 'Add columns to a data frame'
1617
- 'Analyse datasets having missing/null values'
17-
keypoints:
18-
- 'First key point.'
1918

19+
keypoints:
20+
- 'Import specific columns when reading in a .csv with the `usecols` parameter'
21+
- 'We easily can chain boolean conditions when filtering rows of a pandas dataframe'
22+
- 'The `loc` and `iloc` methods allow us to get rows with particular labels and at particular integer locations respectively'
23+
- 'pandas has a handy `sample` method which allows us to extract a sample of rows from a dataframe'
2024
---
2125

2226
We will continue this episode from where we left off in the last episode. If you have restarted Jupyter or you want to use a new notebook make sure that you import pandas and have read the SN7577.tab dataset into a Dataframe.

_episodes/13-matplotlib.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,6 @@ df.boxplot(by ='village',column=['buildings_in_compound'])
155155
~~~
156156
{:.language-python}
157157
158-
We can make it look prettier with seaborn, much more easily than fixing components manually with Matplotlib.
159-
~~~
160-
import seaborn as sns
161-
sns.boxplot(data=df,x ='village',y='buildings_in_compound')
162-
~~~
163-
{:.language-python}
164-
165158
![png](../fig/boxplot1.png)
166159
167160
We can make it look prettier with Seaborn, much more easily than fixing components manually with Matplotlib.

0 commit comments

Comments
 (0)