Skip to content

Commit

Permalink
mergig
Browse files Browse the repository at this point in the history
Merge branch 'master' of github.com:DS-100/textbook
  • Loading branch information
debnolan committed Apr 26, 2023
2 parents a6eb232 + 88585bb commit 0c57980
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 2,583 deletions.
1 change: 0 additions & 1 deletion content/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ parts:
- file: ch/07/sql_aggregating
- file: ch/07/sql_joining
- file: ch/07/sql_transforming
- file: ch/07/sql_other_reps
- file: ch/07/sql_summary

- caption: Understanding The Data
Expand Down
4 changes: 2 additions & 2 deletions content/ch/07/sql_joining.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"(sec:sql_joining)=\n",
"# Joining\n",
"\n",
"To connect records between two data tables, SQL relations can be joined together just like dataframes. In this section, we introduce SQL joins to replicate our analysis of the baby names data. Recall that {numref}`Chapter %s <ch:pandas>` mentions a New York Times article that talks about how certain name categories, like mythological and baby boomer names, have become more or less popular over time.\n",
"To connect records between two data tables, SQL relations can be joined together similar to dataframes. In this section, we introduce SQL joins to replicate our analysis of the baby names data. Recall that {numref}`Chapter %s <ch:pandas>` mentions a New York Times article that talks about how certain name categories, like mythological and baby boomer names, have become more or less popular over time.\n",
"\n",
"We've taken the names and categories in the NYT article and put them in a small relation named `nyt`:"
]
Expand Down Expand Up @@ -866,7 +866,7 @@
"source": [
":::{note}\n",
"\n",
"Notice that in the SQL code above, the numbers appear out of order---`[3]`, `[1]`, then `[2]`. We often think of the `SELECT` statement as the *last* piece of the query to execute although it appears first.\n",
"Notice that in the SQL code above, the numbers appear out of order---`[3]`, `[1]`, then `[2]`. As a rule of thumb for first-time SQL learners, we can often think of the `SELECT` statement as the *last* piece of the query to execute although it appears first.\n",
"\n",
":::"
]
Expand Down
5 changes: 1 addition & 4 deletions content/ch/07/sql_summary.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@
"source": [
"In this chapter, we explain what relations are, why they're useful, and\n",
"how to work with them using SQL code.\n",
"Subsetting, aggregating, joining, and transforming are\n",
"useful in nearly every data analysis.\n",
"We'll rely on these operations often in the rest of the book, especially in\n",
"the {ref}`ch:files`, {ref}`ch:wrangling`, and {ref}`ch:eda` chapters."
"SQL databases are useful for many real-world settings. For example, SQL databases typically have robust data recovery mechanisms---if the computer crashes while in the middle of a SQL operation, the database system can recover as much data as possible without corruption. As mentioned earlier, SQL databases can also handle larger scale; organizations use SQL databases to store and query databases that are far too large to analyze in-memory using `pandas` code. These are just a few reasons why SQL is an important part of the data science toolbox, and we expect that many readers will soon encounter SQL code as part of their work."
]
}
],
Expand Down

0 comments on commit 0c57980

Please sign in to comment.