Skip to content

Commit 2dde404

Browse files
committed
Proofreading edits.
1 parent bdb8b0d commit 2dde404

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

notebooks/3a_retrieval3.ipynb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@
132132
"outputs": [],
133133
"source": [
134134
"%%sql\n",
135-
"SELECT * \n",
136-
" FROM comp.funda \n",
135+
"SELECT *\n",
136+
" FROM comp.funda\n",
137137
" LIMIT 10\n"
138138
]
139139
},
@@ -159,8 +159,8 @@
159159
"outputs": [],
160160
"source": [
161161
"%%sql df01 <<\n",
162-
"SELECT * \n",
163-
" FROM comp.funda \n",
162+
"SELECT *\n",
163+
" FROM comp.funda\n",
164164
" LIMIT 10\n"
165165
]
166166
},
@@ -184,11 +184,11 @@
184184
"\n",
185185
"You may have noticed the comment, `# noqa: F821`, in the method call above.\n",
186186
"\n",
187-
"This is a specially-formatted comment that tells my testing infrastructure to ignore (i.e. no quality assurance, or noqa, error for the type F821, which corresponds with a `NameError`).\n",
187+
"This is a specially-formatted comment that tells my testing infrastructure to ignore (i.e. no quality assurance, or `noqa`, error for the type F821, which corresponds with a `NameError`).\n",
188188
"The reason we need to capture it is that the code testing tool doesn't understand the `%%sql` magic commands, and it can't find where `df01` was previously defined.\n",
189189
"\n",
190190
"For a project of this scope and update frequency, it helps to have some automated testing that helps me catch when things stop working.\n",
191-
"One part of that is supressing errors that happen for some technical or intended reason, to isolate real problemsf."
191+
"One part of that is suppressing errors that happen for some technical or intended reason, to isolate real problems."
192192
]
193193
},
194194
{
@@ -265,7 +265,7 @@
265265
" , SUBSTRING(cusip, 1, 8) AS cusip8\n",
266266
" , at, lt\n",
267267
" FROM comp.funda\n",
268-
" WHERE (datafmt = 'STD') AND \n",
268+
" WHERE (datafmt = 'STD') AND\n",
269269
" (fyear BETWEEN 2000 AND 2020)\n",
270270
" LIMIT 10\n"
271271
]
@@ -315,7 +315,7 @@
315315
" , AVG(at) AS assets_avg\n",
316316
" , SUM(ni) AS netincome_total\n",
317317
" FROM comp.funda\n",
318-
" WHERE (datafmt = 'STD') AND \n",
318+
" WHERE (datafmt = 'STD') AND\n",
319319
" (fyear BETWEEN 2000 AND 2020)\n",
320320
"GROUP BY gvkey\n",
321321
" LIMIT 10\n"
@@ -329,7 +329,7 @@
329329
"# Window functions\n",
330330
"\n",
331331
"Sometimes, we want data at the level of the table, but we would also like aggregated measures.\n",
332-
"SQL has something called **window fuctions** which aggregate data like we did before, but then they **broadcast** it up to the level of the original table."
332+
"SQL has something called **window functions** which aggregate data like we did before, but then they **broadcast** it up to the level of the original table."
333333
]
334334
},
335335
{
@@ -350,7 +350,7 @@
350350
" , AVG(at) OVER(PARTITION BY gvkey) AS assets_avg\n",
351351
" , SUM(ni) OVER(PARTITION BY gvkey) AS netincome_total\n",
352352
" FROM comp.funda\n",
353-
" WHERE (datafmt = 'STD') AND \n",
353+
" WHERE (datafmt = 'STD') AND\n",
354354
" (fyear BETWEEN 2000 AND 2020)\n",
355355
" LIMIT 10\n"
356356
]
@@ -402,7 +402,7 @@
402402
" FROM comp.funda AS f\n",
403403
" JOIN comp.company AS c\n",
404404
" ON f.gvkey = c.gvkey\n",
405-
" WHERE (f.datafmt = 'STD') AND \n",
405+
" WHERE (f.datafmt = 'STD') AND\n",
406406
" (f.fyear BETWEEN 2000 AND 2020)\n",
407407
" LIMIT 10\n"
408408
]
@@ -470,7 +470,7 @@
470470
"name": "python",
471471
"nbconvert_exporter": "python",
472472
"pygments_lexer": "ipython3",
473-
"version": "3.11.3"
473+
"version": "3.12.2"
474474
},
475475
"vscode": {
476476
"interpreter": {

0 commit comments

Comments
 (0)