Skip to content

Commit e8c4677

Browse files
committed
made some text edits and added in the links to the s3 for images
1 parent 1fd762d commit e8c4677

File tree

1 file changed

+38
-34
lines changed

1 file changed

+38
-34
lines changed

index.ipynb

Lines changed: 38 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@
5050
"cell_type": "markdown",
5151
"metadata": {},
5252
"source": [
53-
"![](./biz-card-mistakes.jpg)"
53+
"![](https://learn-verified.s3.amazonaws.com/data-science-assets/biz-card-mistakes.jpg)"
5454
]
5555
},
5656
{
5757
"cell_type": "markdown",
5858
"metadata": {},
5959
"source": [
60-
"Yea, he may not be the best person to get to know. But we know that when people fill out forms, they misenter information all of the time.\n",
60+
"Yea, Mr. Vandelay may not be the best person to get to know or the best at designing business cards, but like Mr. Vandelay, we know that people misenter information on forms all the time.\n",
6161
"\n",
62-
"So as data scientists, we often need to clean and organize data to then make sense of it. Let's get to work. "
62+
"So as data scientists, we often need to clean and organize data before we can make sense of it. Let's get to work. "
6363
]
6464
},
6565
{
@@ -81,7 +81,9 @@
8181
{
8282
"cell_type": "code",
8383
"execution_count": null,
84-
"metadata": {},
84+
"metadata": {
85+
"collapsed": true
86+
},
8587
"outputs": [],
8688
"source": [
8789
"\"art vandelay\" # 'ART VANDELAY'"
@@ -91,20 +93,22 @@
9193
"cell_type": "markdown",
9294
"metadata": {},
9395
"source": [
94-
"Notice that there is no output below the gray code below. This is because Jupyter notebooks do not automatically run our code - so they do not automatically know the output. To display the output, you must **run** the code by clicking on the gray cell and then pressing shift + enter. Try it above and you will see output below the cell."
96+
"Notice that there is no output below the gray code above. This is because Jupyter notebooks do not automatically run our code - so they do not automatically know the output. To display the output, you must **run** the code by clicking on the gray cell and then pressing shift + enter. Try it above and you will see output below the cell."
9597
]
9698
},
9799
{
98100
"cell_type": "markdown",
99101
"metadata": {},
100102
"source": [
101-
"Ok, once you see the output take a look at the hash tag to the right of the string. The hash tag to the right is a comment. Comments are used for programmers to annotate their code. But a comment has no impact on the code. See this by running the next cell below (again, press shift + enter)."
103+
"Ok, once you see the output take a look at the hash tag to the right of the string. The hash tag to the right is a comment. Comments are used for programmers to annotate their code, but a comment has no impact on the code. See this by running the next cell below (again, press shift + enter)."
102104
]
103105
},
104106
{
105107
"cell_type": "code",
106108
"execution_count": null,
107-
"metadata": {},
109+
"metadata": {
110+
"collapsed": true
111+
},
108112
"outputs": [],
109113
"source": [
110114
"'hello'\n",
@@ -129,13 +133,15 @@
129133
"cell_type": "markdown",
130134
"metadata": {},
131135
"source": [
132-
"So to get our output to match comment we change it to the following:"
136+
"To get our output to match comment we will change it to the following:"
133137
]
134138
},
135139
{
136140
"cell_type": "code",
137141
"execution_count": null,
138-
"metadata": {},
142+
"metadata": {
143+
"collapsed": true
144+
},
139145
"outputs": [],
140146
"source": [
141147
"\"art vandelay\".upper() # 'ART VANDELAY'"
@@ -158,7 +164,9 @@
158164
{
159165
"cell_type": "code",
160166
"execution_count": null,
161-
"metadata": {},
167+
"metadata": {
168+
"collapsed": true
169+
},
162170
"outputs": [],
163171
"source": [
164172
"\"art vandelay\" # 'Art Vandelay'"
@@ -174,7 +182,9 @@
174182
{
175183
"cell_type": "code",
176184
"execution_count": null,
177-
"metadata": {},
185+
"metadata": {
186+
"collapsed": true
187+
},
178188
"outputs": [],
179189
"source": [
180190
"\"Ceo\" # 'CEO'"
@@ -189,20 +199,9 @@
189199
},
190200
{
191201
"cell_type": "code",
192-
"execution_count": 1,
202+
"execution_count": null,
193203
"metadata": {},
194-
"outputs": [
195-
{
196-
"data": {
197-
"text/plain": [
198-
"'art.vandelay@vandelay.co'"
199-
]
200-
},
201-
"execution_count": 1,
202-
"metadata": {},
203-
"output_type": "execute_result"
204-
}
205-
],
204+
"outputs": [],
206205
"source": [
207206
"\"art.vandelay@vandelay.co\" # False"
208207
]
@@ -211,13 +210,14 @@
211210
"cell_type": "markdown",
212211
"metadata": {},
213212
"source": [
214-
"As you can see, the website \"vandelay.com\" is not preceded by `\"www.\"`. Use the plus sign to change the website 'vandelay.com' to the string `'www.vandelay.com'`."
213+
"As you can see below, the website \"vandelay.com\" is not preceded by `\"www.\"`. We can perform what is called string interpolation to fix this! Use the plus sign, `+`, to change the website `'vandelay.com'` to the string `'www.vandelay.com'` by prepending `'www.'`."
215214
]
216215
},
217216
{
218217
"cell_type": "code",
219218
"execution_count": null,
220219
"metadata": {
220+
"collapsed": true,
221221
"scrolled": true
222222
},
223223
"outputs": [],
@@ -236,13 +236,15 @@
236236
"cell_type": "markdown",
237237
"metadata": {},
238238
"source": [
239-
"Finally, Mr. Vandelay gave us his phone number, but he actually has a second number different ones listed. All three numbers are the same except for the ending. Coerce the string of his phone number to an `int` and add one, then add two to change the number. "
239+
"Finally, Mr. Vandelay gave us his phone number, but he actually has a second phone number that is different from the one listed. All three numbers are basically the same with the excepion of the ending. Below, start by coercing each phone number, which are currently strings, to an `int` and add one to the first and add two to the second to change the numbers."
240240
]
241241
},
242242
{
243243
"cell_type": "code",
244244
"execution_count": null,
245-
"metadata": {},
245+
"metadata": {
246+
"collapsed": true
247+
},
246248
"outputs": [],
247249
"source": [
248250
"\"7285553334\" # 7285553335"
@@ -251,7 +253,9 @@
251253
{
252254
"cell_type": "code",
253255
"execution_count": null,
254-
"metadata": {},
256+
"metadata": {
257+
"collapsed": true
258+
},
255259
"outputs": [],
256260
"source": [
257261
"\"7285553334\" # 7285553336"
@@ -268,27 +272,27 @@
268272
"cell_type": "markdown",
269273
"metadata": {},
270274
"source": [
271-
"Your first lab done! Sweet. In this lab, you practiced working with string methods to operate on and answer questions about strings. You wrote methods that return Booleans. And you changed strings to an `int` to then perform addition. So much of working with data, is ensuring that our data is properly formatted so we can then operate on it and in this lab you saw how to use code to just that."
275+
"Your first lab done! Sweet. In this lab, you practiced working with string methods to operate on and answer questions about strings. You wrote methods that return Booleans and changed strings to intergers in order to perform addition. So much of working with data is ensuring that it is properly formatted so we can then operate on it, and in this lab, you saw how to use code to just that."
272276
]
273277
}
274278
],
275279
"metadata": {
276280
"kernelspec": {
277-
"display_name": "Python 3",
281+
"display_name": "Python 2",
278282
"language": "python",
279-
"name": "python3"
283+
"name": "python2"
280284
},
281285
"language_info": {
282286
"codemirror_mode": {
283287
"name": "ipython",
284-
"version": 3
288+
"version": 2
285289
},
286290
"file_extension": ".py",
287291
"mimetype": "text/x-python",
288292
"name": "python",
289293
"nbconvert_exporter": "python",
290-
"pygments_lexer": "ipython3",
291-
"version": "3.6.1"
294+
"pygments_lexer": "ipython2",
295+
"version": "2.7.14"
292296
}
293297
},
294298
"nbformat": 4,

0 commit comments

Comments
 (0)