Skip to content

Commit dc94936

Browse files
committed
Refactored IMDb notebook with block-style imports, enhanced data exploration tasks, and added visualizations for actor popularity, genre trends, and movie rankings to improve clarity and interactivity.
1 parent d99d72c commit dc94936

2 files changed

Lines changed: 3382 additions & 1495 deletions

File tree

notebooks/customdb.ipynb

Lines changed: 51 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,29 @@
2121
{
2222
"metadata": {
2323
"ExecuteTime": {
24-
"end_time": "2025-07-22T13:49:18.414126600Z",
25-
"start_time": "2025-07-22T13:49:18.336050100Z"
24+
"end_time": "2025-07-23T10:29:58.325606800Z",
25+
"start_time": "2025-07-23T10:29:56.466182900Z"
2626
}
2727
},
2828
"cell_type": "code",
29+
"source": [
30+
"USE {\n",
31+
" dependencies(\"org.hsqldb:hsqldb:2.7.3\")\n",
32+
"}"
33+
],
34+
"outputs": [],
35+
"execution_count": 2
36+
},
37+
{
38+
"metadata": {
39+
"ExecuteTime": {
40+
"end_time": "2025-07-23T10:29:56.451733100Z",
41+
"start_time": "2025-07-23T10:29:56.198896700Z"
42+
}
43+
},
44+
"cell_type": "code",
45+
"outputs": [],
46+
"execution_count": 1,
2947
"source": [
3048
"import org.jetbrains.kotlinx.dataframe.DataFrame\n",
3149
"import org.jetbrains.kotlinx.dataframe.api.describe\n",
@@ -38,31 +56,13 @@
3856
"import java.sql.DriverManager\n",
3957
"import java.util.*\n",
4058
"import org.jetbrains.kotlinx.dataframe.examples.jdbc.customdb.*\n"
41-
],
42-
"outputs": [],
43-
"execution_count": 5
44-
},
45-
{
46-
"metadata": {
47-
"ExecuteTime": {
48-
"end_time": "2025-07-22T13:48:19.970421Z",
49-
"start_time": "2025-07-22T13:48:19.744436800Z"
50-
}
51-
},
52-
"cell_type": "code",
53-
"source": [
54-
"USE {\n",
55-
" dependencies(\"org.hsqldb:hsqldb:2.7.3\")\n",
56-
"}"
57-
],
58-
"outputs": [],
59-
"execution_count": 2
59+
]
6060
},
6161
{
6262
"metadata": {
6363
"ExecuteTime": {
64-
"end_time": "2025-07-22T13:49:25.151594800Z",
65-
"start_time": "2025-07-22T13:49:23.792372900Z"
64+
"end_time": "2025-07-23T10:30:01.512195600Z",
65+
"start_time": "2025-07-23T10:29:59.456875600Z"
6666
}
6767
},
6868
"cell_type": "code",
@@ -85,7 +85,7 @@
8585
"\tat org.hsqldb.jdbc.JDBCDriver.connect(Unknown Source)",
8686
"\tat java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)",
8787
"\tat java.sql/java.sql.DriverManager.getConnection(DriverManager.java:228)",
88-
"\tat Line_15_jupyter.<init>(Line_15.jupyter.kts:1) at Cell In[6], line 1",
88+
"\tat Line_9_jupyter.<init>(Line_9.jupyter.kts:1) at Cell In[3], line 1",
8989
"\tat java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)",
9090
"\tat java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)",
9191
"\tat java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)",
@@ -94,55 +94,47 @@
9494
"\tat kotlin.script.experimental.jvm.BasicJvmScriptEvaluator.invoke$suspendImpl(BasicJvmScriptEvaluator.kt:48)",
9595
"\tat kotlin.script.experimental.jvm.BasicJvmScriptEvaluator.invoke(BasicJvmScriptEvaluator.kt)",
9696
"\tat kotlin.script.experimental.jvm.BasicJvmReplEvaluator.eval(BasicJvmReplEvaluator.kt:49)",
97-
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.InternalEvaluatorImpl$eval$resultWithDiagnostics$1.invokeSuspend(InternalEvaluatorImpl.kt:137)",
98-
"\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)",
99-
"\tat kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)",
100-
"\tat kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:277)",
97+
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.InternalEvaluatorImpl$eval$resultWithDiagnostics$1.invokeSuspend(InternalEvaluatorImpl.kt:138)",
98+
"\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)",
99+
"\tat kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)",
100+
"\tat kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)",
101101
"\tat kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:95)",
102102
"\tat kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:69)",
103103
"\tat kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)",
104-
"\tat kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:48)",
104+
"\tat kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:47)",
105105
"\tat kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)",
106-
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.InternalEvaluatorImpl.eval(InternalEvaluatorImpl.kt:137)",
107-
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.CellExecutorImpl$execute$1$result$1.invoke(CellExecutorImpl.kt:80)",
108-
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.CellExecutorImpl$execute$1$result$1.invoke(CellExecutorImpl.kt:78)",
109-
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl.withHost(ReplForJupyterImpl.kt:779)",
106+
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.InternalEvaluatorImpl.eval(InternalEvaluatorImpl.kt:138)",
107+
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.CellExecutorImpl.execute_L4Nmkdk$lambda$9$lambda$1(CellExecutorImpl.kt:80)",
108+
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl.withHost(ReplForJupyterImpl.kt:794)",
110109
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.CellExecutorImpl.execute-L4Nmkdk(CellExecutorImpl.kt:78)",
111-
"\tat org.jetbrains.kotlinx.jupyter.repl.execution.CellExecutor$DefaultImpls.execute-L4Nmkdk$default(CellExecutor.kt:13)",
112-
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl.evaluateUserCode-wNURfNM(ReplForJupyterImpl.kt:601)",
113-
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl.evalExImpl(ReplForJupyterImpl.kt:459)",
114-
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl.access$evalExImpl(ReplForJupyterImpl.kt:140)",
115-
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl$evalEx$1.invoke(ReplForJupyterImpl.kt:452)",
116-
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl$evalEx$1.invoke(ReplForJupyterImpl.kt:451)",
117-
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl.withEvalContext(ReplForJupyterImpl.kt:432)",
118-
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl.evalEx(ReplForJupyterImpl.kt:451)",
119-
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor$processExecuteRequest$1$response$1$1.invoke(IdeCompatibleMessageRequestProcessor.kt:160)",
120-
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor$processExecuteRequest$1$response$1$1.invoke(IdeCompatibleMessageRequestProcessor.kt:159)",
110+
"\tat org.jetbrains.kotlinx.jupyter.repl.execution.CellExecutor.execute-L4Nmkdk$default(CellExecutor.kt:14)",
111+
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl.evaluateUserCode-wNURfNM(ReplForJupyterImpl.kt:616)",
112+
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl.evalExImpl(ReplForJupyterImpl.kt:474)",
113+
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl.evalEx$lambda$20(ReplForJupyterImpl.kt:467)",
114+
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl.withEvalContext(ReplForJupyterImpl.kt:447)",
115+
"\tat org.jetbrains.kotlinx.jupyter.repl.impl.ReplForJupyterImpl.evalEx(ReplForJupyterImpl.kt:466)",
116+
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.processExecuteRequest$lambda$7$lambda$6$lambda$5(IdeCompatibleMessageRequestProcessor.kt:160)",
121117
"\tat org.jetbrains.kotlinx.jupyter.streams.BlockingSubstitutionEngine.withDataSubstitution(SubstitutionEngine.kt:70)",
122118
"\tat org.jetbrains.kotlinx.jupyter.streams.StreamSubstitutionManager.withSubstitutedStreams(StreamSubstitutionManager.kt:118)",
123-
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.withForkedIn(IdeCompatibleMessageRequestProcessor.kt:355)",
124-
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.access$withForkedIn(IdeCompatibleMessageRequestProcessor.kt:55)",
125-
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor$evalWithIO$1$1.invoke(IdeCompatibleMessageRequestProcessor.kt:369)",
119+
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.withForkedIn(IdeCompatibleMessageRequestProcessor.kt:354)",
120+
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.evalWithIO$lambda$16$lambda$15(IdeCompatibleMessageRequestProcessor.kt:368)",
126121
"\tat org.jetbrains.kotlinx.jupyter.streams.BlockingSubstitutionEngine.withDataSubstitution(SubstitutionEngine.kt:70)",
127122
"\tat org.jetbrains.kotlinx.jupyter.streams.StreamSubstitutionManager.withSubstitutedStreams(StreamSubstitutionManager.kt:118)",
128-
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.withForkedErr(IdeCompatibleMessageRequestProcessor.kt:344)",
129-
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.access$withForkedErr(IdeCompatibleMessageRequestProcessor.kt:55)",
130-
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor$evalWithIO$1.invoke(IdeCompatibleMessageRequestProcessor.kt:368)",
123+
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.withForkedErr(IdeCompatibleMessageRequestProcessor.kt:343)",
124+
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.evalWithIO$lambda$16(IdeCompatibleMessageRequestProcessor.kt:367)",
131125
"\tat org.jetbrains.kotlinx.jupyter.streams.BlockingSubstitutionEngine.withDataSubstitution(SubstitutionEngine.kt:70)",
132126
"\tat org.jetbrains.kotlinx.jupyter.streams.StreamSubstitutionManager.withSubstitutedStreams(StreamSubstitutionManager.kt:118)",
133-
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.withForkedOut(IdeCompatibleMessageRequestProcessor.kt:336)",
134-
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.evalWithIO(IdeCompatibleMessageRequestProcessor.kt:367)",
135-
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor$processExecuteRequest$1$response$1.invoke(IdeCompatibleMessageRequestProcessor.kt:159)",
136-
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor$processExecuteRequest$1$response$1.invoke(IdeCompatibleMessageRequestProcessor.kt:158)",
127+
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.withForkedOut(IdeCompatibleMessageRequestProcessor.kt:335)",
128+
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.evalWithIO(IdeCompatibleMessageRequestProcessor.kt:366)",
129+
"\tat org.jetbrains.kotlinx.jupyter.messaging.IdeCompatibleMessageRequestProcessor.processExecuteRequest$lambda$7$lambda$6(IdeCompatibleMessageRequestProcessor.kt:159)",
137130
"\tat org.jetbrains.kotlinx.jupyter.execution.JupyterExecutorImpl$Task.execute(JupyterExecutorImpl.kt:41)",
138-
"\tat org.jetbrains.kotlinx.jupyter.execution.JupyterExecutorImpl$executorThread$1.invoke(JupyterExecutorImpl.kt:83)",
139-
"\tat org.jetbrains.kotlinx.jupyter.execution.JupyterExecutorImpl$executorThread$1.invoke(JupyterExecutorImpl.kt:80)",
131+
"\tat org.jetbrains.kotlinx.jupyter.execution.JupyterExecutorImpl.executorThread$lambda$0(JupyterExecutorImpl.kt:83)",
140132
"\tat kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30)",
141133
"Caused by: org.hsqldb.HsqlException: java.net.ConnectException: Connection refused: connect",
142134
"\tat org.hsqldb.ClientConnection.openConnection(Unknown Source)",
143135
"\tat org.hsqldb.ClientConnection.initConnection(Unknown Source)",
144136
"\tat org.hsqldb.ClientConnection.<init>(Unknown Source)",
145-
"\t... 58 more",
137+
"\t... 50 more",
146138
"Caused by: java.net.ConnectException: Connection refused: connect",
147139
"\tat java.base/java.net.PlainSocketImpl.connect0(Native Method)",
148140
"\tat java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:101)",
@@ -155,15 +147,14 @@
155147
"\tat java.base/java.net.Socket.<init>(Socket.java:454)",
156148
"\tat java.base/java.net.Socket.<init>(Socket.java:231)",
157149
"\tat org.hsqldb.server.HsqlSocketFactory.createSocket(Unknown Source)",
158-
"\t... 61 more",
150+
"\t... 53 more",
159151
"",
160152
"java.sql.SQLTransientConnectionException: java.net.ConnectException: Connection refused: connect",
161-
"at Cell In[6], line 1",
162-
""
153+
"at Cell In[3], line 1"
163154
]
164155
}
165156
],
166-
"execution_count": 6
157+
"execution_count": 3
167158
},
168159
{
169160
"cell_type": "markdown",

0 commit comments

Comments
 (0)