Skip to content

Commit 1003317

Browse files
committed
Added SQLite db read and JOIN
1 parent b338bb8 commit 1003317

File tree

1 file changed

+35
-2
lines changed

1 file changed

+35
-2
lines changed

Dataframe_SQL_query.ipynb

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,9 +602,42 @@
602602
},
603603
{
604604
"cell_type": "code",
605-
"execution_count": null,
605+
"execution_count": 26,
606606
"metadata": {},
607-
"outputs": [],
607+
"outputs": [
608+
{
609+
"name": "stdout",
610+
"output_type": "stream",
611+
"text": [
612+
"+--------+--------------------+-------+--------------------+--------+\n",
613+
"|ArtistId| Name|AlbumId| Title|ArtistId|\n",
614+
"+--------+--------------------+-------+--------------------+--------+\n",
615+
"| 1| AC/DC| 1|For Those About T...| 1|\n",
616+
"| 1| AC/DC| 4| Let There Be Rock| 1|\n",
617+
"| 2| Accept| 2| Balls to the Wall| 2|\n",
618+
"| 2| Accept| 3| Restless and Wild| 2|\n",
619+
"| 3| Aerosmith| 5| Big Ones| 3|\n",
620+
"| 4| Alanis Morissette| 6| Jagged Little Pill| 4|\n",
621+
"| 5| Alice In Chains| 7| Facelift| 5|\n",
622+
"| 6|Antônio Carlos Jobim| 8| Warner 25 Anos| 6|\n",
623+
"| 6|Antônio Carlos Jobim| 34|Chill: Brazil (Di...| 6|\n",
624+
"| 7| Apocalyptica| 9|Plays Metallica B...| 7|\n",
625+
"| 8| Audioslave| 271| Revelations| 8|\n",
626+
"| 8| Audioslave| 11| Out Of Exile| 8|\n",
627+
"| 8| Audioslave| 10| Audioslave| 8|\n",
628+
"| 9| BackBeat| 12| BackBeat Soundtrack| 9|\n",
629+
"| 10| Billy Cobham| 13|The Best Of Billy...| 10|\n",
630+
"| 11| Black Label Society| 14|Alcohol Fueled Br...| 11|\n",
631+
"| 11| Black Label Society| 15|Alcohol Fueled Br...| 11|\n",
632+
"| 12| Black Sabbath| 17|Black Sabbath Vol...| 12|\n",
633+
"| 12| Black Sabbath| 16| Black Sabbath| 12|\n",
634+
"| 13| Body Count| 18| Body Count| 13|\n",
635+
"+--------+--------------------+-------+--------------------+--------+\n",
636+
"only showing top 20 rows\n",
637+
"\n"
638+
]
639+
}
640+
],
608641
"source": [
609642
"df_combined.show()"
610643
]

0 commit comments

Comments
 (0)