Skip to content

Commit 07fc435

Browse files
author
craigsdennis
committed
QA review
1 parent 09f8e6e commit 07fc435

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

s2n04-manipulation-techniques.ipynb

+5-9
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
"import numpy as np\n",
3636
"import pandas as pd\n",
3737
"\n",
38-
"from utils import render\n",
39-
"\n",
4038
"users = pd.read_csv(os.path.join('data', 'users.csv'), index_col=0)\n",
4139
"transactions = pd.read_csv(os.path.join('data', 'transactions.csv'), index_col=0)\n",
4240
"# Pop out a quick sanity check\n",
@@ -355,9 +353,9 @@
355353
"source": [
356354
"### Appending with [`DataFrame.append`](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.append.html)\n",
357355
"\n",
358-
"There is a method on `DataFrame`s that allow a way to [`append`](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.append.html) a new row to a new dataset. This returns a copy of the DataFrame with the new row(s) appended.\n",
356+
"The `DataFrame.append`](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.append.html) method adds a new row to a new dataset. This method doesn't change the original dataset it returns a copy of the DataFrame with the new row(s) appended.\n",
359357
"\n",
360-
"The index for our **`transactions`** is auto assigned, so we'll set ths **`ignore_index`** keyword argument to `True`, so it gets generated.\n"
358+
"The index for our **`transactions`** is auto assigned, so we'll set the **`ignore_index`** keyword argument to `True`, so it gets generated.\n"
361359
]
362360
},
363361
{
@@ -811,7 +809,7 @@
811809
"## Renaming Columns\n",
812810
"Renaming columns can be acheived using the [`DataFrame.rename`](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.rename.html) method. You specify the current name(s) as the key(s) and the new name(s) as the value(s).\n",
813811
"\n",
814-
"By default this returns a copy, but you can use the `inplace` command to change the existing `DataFrame`."
812+
"By default this returns a copy, but you can use the `inplace` parameter to change the existing `DataFrame`."
815813
]
816814
},
817815
{
@@ -923,9 +921,7 @@
923921
"source": [
924922
"## Deleting Columns\n",
925923
"\n",
926-
"In addition to slicing a `DataFrame` to simply not include a specific existing column. You can also drop columns by name.\n",
927-
"\n",
928-
"Let's remove the two that we added, in place."
924+
"In addition to slicing a `DataFrame` to simply not include a specific existing column. You can also drop columns by name. Let's remove the two that we added, in place."
929925
]
930926
},
931927
{
@@ -1029,7 +1025,7 @@
10291025
"cell_type": "markdown",
10301026
"metadata": {},
10311027
"source": [
1032-
"You might also seen this done using the `axis` parameter.\n",
1028+
"You might have seen this done before using the `axis` parameter.\n",
10331029
"\n",
10341030
"Let's get rid of the oddly named **`big_sender`** column. Why'd you let me name it that way?"
10351031
]

0 commit comments

Comments
 (0)