Skip to content

Commit

Permalink
- notebooks/exploratory.ipynb
Browse files Browse the repository at this point in the history
    - minor improvements
  • Loading branch information
manuvazquez committed Sep 23, 2021
1 parent 9c5f865 commit 0884e6f
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions notebooks/exploratory.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@
{
"cell_type": "markdown",
"id": "bb6836d0-24fa-4c72-a5b0-41d36a10d338",
"metadata": {},
"metadata": {
"tags": []
},
"source": [
"# Abstracts"
]
Expand Down Expand Up @@ -418,7 +420,7 @@
"id": "30484c3d-ed3d-410c-9193-fe0fb691b5b1",
"metadata": {},
"source": [
"The code below yields an out-of-memory error."
"<font color='red'>**CAVEAT**: The code below yields an out-of-memory error.</font>"
]
},
{
Expand Down Expand Up @@ -482,23 +484,31 @@
"patents_df.head()"
]
},
{
"cell_type": "markdown",
"id": "f142b20f-2fe5-4f0e-b2df-c7585cc181c9",
"metadata": {},
"source": [
"Patents and projects can be connected with a *merge* <font color='red'>(**CAVEAT**: this might give rise to out-of-memory problems)</font>"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "d30b6aa7-76a3-433e-a04a-02e2ddc880fc",
"metadata": {},
"outputs": [],
"source": [
"patents_projects_df = patents_df.merge(projects_df, how='outer', left_on='PROJECT_ID', right_on='CORE_PROJECT_NUM', indicator=True)\n",
"patents_projects_df.shape"
"# patents_projects_df = patents_df.merge(projects_df, how='outer', left_on='PROJECT_ID', right_on='CORE_PROJECT_NUM', indicator=True)\n",
"# patents_projects_df.shape"
]
},
{
"cell_type": "markdown",
"id": "e89b786b-fcce-4abd-a146-b0dfd5002441",
"metadata": {},
"source": [
"There are projects now showing in both tables"
"There are projects **not** showing in both tables"
]
},
{
Expand All @@ -508,7 +518,7 @@
"metadata": {},
"outputs": [],
"source": [
"(patents_projects_df['_merge'] != 'both').sum()"
"# (patents_projects_df['_merge'] != 'both').sum()"
]
},
{
Expand Down

0 comments on commit 0884e6f

Please sign in to comment.