Skip to content

Commit 52a1747

Browse files
Add date to notebook
1 parent 2451fd2 commit 52a1747

1 file changed

Lines changed: 30 additions & 28 deletions

File tree

data-downloads/1-python-data-exploration-example.ipynb

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,29 @@
66
"source": [
77
"# Data Exploration Example in Python\n",
88
"\n",
9-
"**Author**: Shania Braithwaite and PatentsView Team\n",
10-
"\n"
9+
"- **Author**: Shania Braithwaite and PatentsView Team\n",
10+
"- **Date**: February 2024\n"
1111
]
1212
},
1313
{
1414
"cell_type": "markdown",
1515
"metadata": {},
1616
"source": [
1717
"**Table of contents**<a id='toc0_'></a> \n",
18-
"- 1. [Initialize Local DuckDB Database](#toc1_) \n",
19-
" - 1.1. [Download Bulk Data Files from PatentsView](#toc1_1_) \n",
20-
" - 1.2. [Create/Connect to DuckDB Database](#toc1_2_) \n",
21-
" - 1.3. [Create Tables in Database](#toc1_3_) \n",
22-
"- 2. [Prepare Data](#toc2_) \n",
23-
" - 2.1. [Preview Tables](#toc2_1_) \n",
24-
" - 2.2. [Joining Tables](#toc2_2_) \n",
25-
"- 3. [Analyzing Biotechnology Patents](#toc3_) \n",
26-
" - 3.1. [IPC Codes](#toc3_1_) \n",
27-
" - 3.2. [Trends Over Time](#toc3_2_) \n",
28-
" - 3.3. [Assignee Types](#toc3_3_) \n",
29-
" - 3.4. [U.S. Maps](#toc3_4_) \n",
18+
"- 1. [Overview](#toc1_) \n",
19+
" - 1.1. [System Dependencies](#toc1_1_) \n",
20+
"- 2. [Initialize Local DuckDB Database](#toc2_) \n",
21+
" - 2.1. [Download Bulk Data Files from PatentsView](#toc2_1_) \n",
22+
" - 2.2. [Create/Connect to DuckDB Database](#toc2_2_) \n",
23+
" - 2.3. [Create Tables in Database](#toc2_3_) \n",
24+
"- 3. [Prepare Data](#toc3_) \n",
25+
" - 3.1. [Preview Tables](#toc3_1_) \n",
26+
" - 3.2. [Joining Tables](#toc3_2_) \n",
27+
"- 4. [Analyzing Biotechnology Patents](#toc4_) \n",
28+
" - 4.1. [IPC Codes](#toc4_1_) \n",
29+
" - 4.2. [Trends Over Time](#toc4_2_) \n",
30+
" - 4.3. [Assignee Types](#toc4_3_) \n",
31+
" - 4.4. [U.S. Maps](#toc4_4_) \n",
3032
"\n",
3133
"<!-- vscode-jupyter-toc-config\n",
3234
"\tnumbering=true\n",
@@ -42,7 +44,7 @@
4244
"cell_type": "markdown",
4345
"metadata": {},
4446
"source": [
45-
"## Overview\n",
47+
"## 1. <a id='toc1_'></a>[Overview](#toc0_)\n",
4648
"\n",
4749
"This notebook provides an example exploration of patents data using PatentsView's bulk data downloads, Python, and popular data science tools. It shows how to:\n",
4850
"\n",
@@ -52,7 +54,7 @@
5254
"\n",
5355
"As a running example, we're looking into biotechnology patents identified via a subset of International Patent Classification (IPC) codes. Our goal is to explore the data, considering the distribution of biotechnology patent topic and the geographic distribution of biotechnology patent assignees.\n",
5456
"\n",
55-
"### System Dependencies\n",
57+
"### 1.1. <a id='toc1_1_'></a>[System Dependencies](#toc0_)\n",
5658
"\n",
5759
"You can install required packages for running this notebook using:\n",
5860
"```python\n",
@@ -70,7 +72,7 @@
7072
"cell_type": "markdown",
7173
"metadata": {},
7274
"source": [
73-
"## 1. <a id='toc1_'></a>[Initialize Local DuckDB Database](#toc0_)\n",
75+
"## 2. <a id='toc2_'></a>[Initialize Local DuckDB Database](#toc0_)\n",
7476
"\n",
7577
"First, we set up a local DuckDB database to help efficiently process larger-than-memory data."
7678
]
@@ -79,7 +81,7 @@
7981
"cell_type": "markdown",
8082
"metadata": {},
8183
"source": [
82-
"### 1.1. <a id='toc1_1_'></a>[Download Bulk Data Files from PatentsView](#toc0_)"
84+
"### 2.1. <a id='toc2_1_'></a>[Download Bulk Data Files from PatentsView](#toc0_)"
8385
]
8486
},
8587
{
@@ -149,7 +151,7 @@
149151
"cell_type": "markdown",
150152
"metadata": {},
151153
"source": [
152-
"### 1.2. <a id='toc1_2_'></a>[Create/Connect to DuckDB Database](#toc0_)"
154+
"### 2.2. <a id='toc2_2_'></a>[Create/Connect to DuckDB Database](#toc0_)"
153155
]
154156
},
155157
{
@@ -186,7 +188,7 @@
186188
"cell_type": "markdown",
187189
"metadata": {},
188190
"source": [
189-
"### 1.3. <a id='toc1_3_'></a>[Create Tables in Database](#toc0_)"
191+
"### 2.3. <a id='toc2_3_'></a>[Create Tables in Database](#toc0_)"
190192
]
191193
},
192194
{
@@ -225,7 +227,7 @@
225227
"cell_type": "markdown",
226228
"metadata": {},
227229
"source": [
228-
"## 2. <a id='toc2_'></a>[Prepare Data](#toc0_)\n",
230+
"## 3. <a id='toc3_'></a>[Prepare Data](#toc0_)\n",
229231
"\n",
230232
"With the data loaded in our local DuckDB database, we can now preview and prepare the data."
231233
]
@@ -234,7 +236,7 @@
234236
"cell_type": "markdown",
235237
"metadata": {},
236238
"source": [
237-
"### 2.1. <a id='toc2_1_'></a>[Preview Tables](#toc0_)"
239+
"### 3.1. <a id='toc3_1_'></a>[Preview Tables](#toc0_)"
238240
]
239241
},
240242
{
@@ -638,7 +640,7 @@
638640
"cell_type": "markdown",
639641
"metadata": {},
640642
"source": [
641-
"### 2.2. <a id='toc2_2_'></a>[Joining Tables](#toc0_)"
643+
"### 3.2. <a id='toc3_2_'></a>[Joining Tables](#toc0_)"
642644
]
643645
},
644646
{
@@ -714,7 +716,7 @@
714716
"cell_type": "markdown",
715717
"metadata": {},
716718
"source": [
717-
"## 3. <a id='toc3_'></a>[Analyzing Biotechnology Patents](#toc0_)"
719+
"## 4. <a id='toc4_'></a>[Analyzing Biotechnology Patents](#toc0_)"
718720
]
719721
},
720722
{
@@ -735,7 +737,7 @@
735737
"cell_type": "markdown",
736738
"metadata": {},
737739
"source": [
738-
"### 3.1. <a id='toc3_1_'></a>[IPC Codes](#toc0_)"
740+
"### 4.1. <a id='toc4_1_'></a>[IPC Codes](#toc0_)"
739741
]
740742
},
741743
{
@@ -285131,7 +285133,7 @@
285131285133
"cell_type": "markdown",
285132285134
"metadata": {},
285133285135
"source": [
285134-
"### 3.2. <a id='toc3_2_'></a>[Trends Over Time](#toc0_)"
285136+
"### 4.2. <a id='toc4_2_'></a>[Trends Over Time](#toc0_)"
285135285137
]
285136285138
},
285137285139
{
@@ -286168,7 +286170,7 @@
286168286170
"cell_type": "markdown",
286169286171
"metadata": {},
286170286172
"source": [
286171-
"### 3.3. <a id='toc3_3_'></a>[Assignee Types](#toc0_)"
286173+
"### 4.3. <a id='toc4_3_'></a>[Assignee Types](#toc0_)"
286172286174
]
286173286175
},
286174286176
{
@@ -286526,7 +286528,7 @@
286526286528
"cell_type": "markdown",
286527286529
"metadata": {},
286528286530
"source": [
286529-
"### 3.4. <a id='toc3_4_'></a>[U.S. Maps](#toc0_)"
286531+
"### 4.4. <a id='toc4_4_'></a>[U.S. Maps](#toc0_)"
286530286532
]
286531286533
},
286532286534
{

0 commit comments

Comments
 (0)