Files
2026-02-08 11:20:43 -10:00

35875 lines
1.9 MiB
Vendored

{
"cells": [
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:16:33.602396Z",
"start_time": "2025-05-28T10:16:25.875493Z"
}
},
"source": [
"%useLatestDescriptors\n",
"%use dataframe, kandy"
],
"outputs": [],
"execution_count": 2
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:16:38.183961Z",
"start_time": "2025-05-28T10:16:33.616915Z"
}
},
"source": [
"val df = DataFrame.readCsv(\n",
" fileOrUrl = \"titanic.csv\",\n",
" delimiter = ';',\n",
" parserOptions = ParserOptions(locale = java.util.Locale.FRENCH),\n",
")\n",
"\n",
"df.head()"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_1()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_1\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870912&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 5, columnsCount = 14&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;pclass: Int&bsol;&quot;&gt;pclass&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;survived: Int&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;name: String&bsol;&quot;&gt;name&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;Allen, Miss. Elisabeth Walton&quot;,&quot;Allison, Master. Hudson Trevor&quot;,&quot;Allison, Miss. Helen Loraine&quot;,&quot;Allison, Mr. Hudson Joshua Creighton&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;Allison, Mrs. Hudson J C (Bessie Waldo Daniels)&bsol;&quot;&gt;Allison, Mrs. Hudson J C (Bessie Wald&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;...&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;sex: String?&bsol;&quot;&gt;sex&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;male&quot;,&quot;female&quot;,&quot;male&quot;,&quot;female&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;age: Double&bsol;&quot;&gt;age&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;29.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.9167&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;30.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;25.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;sibsp: Int?&bsol;&quot;&gt;sibsp&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;parch: Int?&bsol;&quot;&gt;parch&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;ticket: String&bsol;&quot;&gt;ticket&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;24160&quot;,&quot;113781&quot;,&quot;113781&quot;,&quot;113781&quot;,&quot;113781&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;fare: Double&bsol;&quot;&gt;fare&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;211.3375&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;151.5500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;151.5500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;151.5500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;151.5500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;cabin: String&bsol;&quot;&gt;cabin&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;B5&quot;,&quot;C22 C26&quot;,&quot;C22 C26&quot;,&quot;C22 C26&quot;,&quot;C22 C26&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;embarked: String?&bsol;&quot;&gt;embarked&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;AA&quot;,&quot;S&quot;,&quot;S&quot;,&quot;S&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;boat: String?&bsol;&quot;&gt;boat&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;2&quot;,&quot;11&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;body: Int?&bsol;&quot;&gt;body&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;135&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;homedest: String&bsol;&quot;&gt;homedest&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;St Louis, MO&quot;,&quot;Montreal, PQ &sol; Chesterville, ON&quot;,&quot;Montreal, PQ &sol; Chesterville, ON&quot;,&quot;Montreal, PQ &sol; Chesterville, ON&quot;,&quot;Montreal, PQ &sol; Chesterville, ON&quot;] }, \n",
"], id: -536870912, rootId: -536870912, totalRows: 5 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870912) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_1() {\n",
" let elem = document.getElementById(\"iframe_out_1\");\n",
" resize_iframe_out_1(elem);\n",
" setInterval(resize_iframe_out_1, 5000, elem);\n",
" }\n",
" function resize_iframe_out_1(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870911\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">pclass</th><th class=\"bottomBorder\" style=\"text-align:left\">survived</th><th class=\"bottomBorder\" style=\"text-align:left\">name</th><th class=\"bottomBorder\" style=\"text-align:left\">sex</th><th class=\"bottomBorder\" style=\"text-align:left\">age</th><th class=\"bottomBorder\" style=\"text-align:left\">sibsp</th><th class=\"bottomBorder\" style=\"text-align:left\">parch</th><th class=\"bottomBorder\" style=\"text-align:left\">ticket</th><th class=\"bottomBorder\" style=\"text-align:left\">fare</th><th class=\"bottomBorder\" style=\"text-align:left\">cabin</th><th class=\"bottomBorder\" style=\"text-align:left\">embarked</th><th class=\"bottomBorder\" style=\"text-align:left\">boat</th><th class=\"bottomBorder\" style=\"text-align:left\">body</th><th class=\"bottomBorder\" style=\"text-align:left\">homedest</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Allen, Miss. Elisabeth Walton</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">29.000000</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">24160</td><td style=\"vertical-align:top\">211.337500</td><td style=\"vertical-align:top\">B5</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">2</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">St Louis, MO</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Allison, Master. Hudson Trevor</td><td style=\"vertical-align:top\">male</td><td style=\"vertical-align:top\">0.916700</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">2</td><td style=\"vertical-align:top\">113781</td><td style=\"vertical-align:top\">151.550000</td><td style=\"vertical-align:top\">C22 C26</td><td style=\"vertical-align:top\">AA</td><td style=\"vertical-align:top\">11</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">Montreal, PQ / Chesterville, ON</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Allison, Miss. Helen Loraine</td><td style=\"vertical-align:top\">female</td><td style=\"vertical-align:top\">2.000000</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">2</td><td style=\"vertical-align:top\">113781</td><td style=\"vertical-align:top\">151.550000</td><td style=\"vertical-align:top\">C22 C26</td><td style=\"vertical-align:top\">S</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">Montreal, PQ / Chesterville, ON</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Allison, Mr. Hudson Joshua Creighton</td><td style=\"vertical-align:top\">male</td><td style=\"vertical-align:top\">30.000000</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">2</td><td style=\"vertical-align:top\">113781</td><td style=\"vertical-align:top\">151.550000</td><td style=\"vertical-align:top\">C22 C26</td><td style=\"vertical-align:top\">S</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">135</td><td style=\"vertical-align:top\">Montreal, PQ / Chesterville, ON</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Allison, Mrs. Hudson J C (Bessie Wald<span class=\"structural\">...</span></td><td style=\"vertical-align:top\">female</td><td style=\"vertical-align:top\">25.000000</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">2</td><td style=\"vertical-align:top\">113781</td><td style=\"vertical-align:top\">151.550000</td><td style=\"vertical-align:top\">C22 C26</td><td style=\"vertical-align:top\">S</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">Montreal, PQ / Chesterville, ON</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870911\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"pclass\",\"survived\",\"name\",\"sex\",\"age\",\"sibsp\",\"parch\",\"ticket\",\"fare\",\"cabin\",\"embarked\",\"boat\",\"body\",\"homedest\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String?\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int?\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int?\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String?\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String?\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int?\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"}],\"nrow\":5,\"ncol\":14},\"kotlin_dataframe\":[{\"pclass\":1,\"survived\":1,\"name\":\"Allen, Miss. Elisabeth Walton\",\"sex\":null,\"age\":29.0,\"sibsp\":null,\"parch\":null,\"ticket\":\"24160\",\"fare\":211.3375,\"cabin\":\"B5\",\"embarked\":null,\"boat\":\"2\",\"body\":null,\"homedest\":\"St Louis, MO\"},{\"pclass\":1,\"survived\":1,\"name\":\"Allison, Master. Hudson Trevor\",\"sex\":\"male\",\"age\":0.9167,\"sibsp\":1,\"parch\":2,\"ticket\":\"113781\",\"fare\":151.55,\"cabin\":\"C22 C26\",\"embarked\":\"AA\",\"boat\":\"11\",\"body\":null,\"homedest\":\"Montreal, PQ / Chesterville, ON\"},{\"pclass\":1,\"survived\":0,\"name\":\"Allison, Miss. Helen Loraine\",\"sex\":\"female\",\"age\":2.0,\"sibsp\":1,\"parch\":2,\"ticket\":\"113781\",\"fare\":151.55,\"cabin\":\"C22 C26\",\"embarked\":\"S\",\"boat\":null,\"body\":null,\"homedest\":\"Montreal, PQ / Chesterville, ON\"},{\"pclass\":1,\"survived\":0,\"name\":\"Allison, Mr. Hudson Joshua Creighton\",\"sex\":\"male\",\"age\":30.0,\"sibsp\":1,\"parch\":2,\"ticket\":\"113781\",\"fare\":151.55,\"cabin\":\"C22 C26\",\"embarked\":\"S\",\"boat\":null,\"body\":135,\"homedest\":\"Montreal, PQ / Chesterville, ON\"},{\"pclass\":1,\"survived\":0,\"name\":\"Allison, Mrs. Hudson J C (Bessie Waldo Daniels)\",\"sex\":\"female\",\"age\":25.0,\"sibsp\":1,\"parch\":2,\"ticket\":\"113781\",\"fare\":151.55,\"cabin\":\"C22 C26\",\"embarked\":\"S\",\"boat\":null,\"body\":null,\"homedest\":\"Montreal, PQ / Chesterville, ON\"}]}"
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 3
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"We have a dataset that uses an alternative pattern for decimal numbers. This is a reason why the French locale will be used in the example.\n",
"\n",
"But before data conversion, we should handle *null* values."
]
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:16:38.794245Z",
"start_time": "2025-05-28T10:16:38.197758Z"
}
},
"source": [
"df.describe()"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_2()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_2\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870910&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 14, columnsCount = 14&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;name: String&bsol;&quot;&gt;name&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;pclass&quot;,&quot;survived&quot;,&quot;name&quot;,&quot;sex&quot;,&quot;age&quot;,&quot;sibsp&quot;,&quot;parch&quot;,&quot;ticket&quot;,&quot;fare&quot;,&quot;cabin&quot;,&quot;embarked&quot;,&quot;boat&quot;,&quot;body&quot;,&quot;homedest&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;type: String&bsol;&quot;&gt;type&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;Int&quot;,&quot;Int&quot;,&quot;String&quot;,&quot;String?&quot;,&quot;Double?&quot;,&quot;Int?&quot;,&quot;Int?&quot;,&quot;String&quot;,&quot;Double?&quot;,&quot;String?&quot;,&quot;String?&quot;,&quot;String?&quot;,&quot;Int?&quot;,&quot;String?&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;count: Int&bsol;&quot;&gt;count&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1309&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1309&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1309&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1309&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1309&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1309&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1309&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1309&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1309&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1309&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1309&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1309&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1309&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1309&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;unique: Int&bsol;&quot;&gt;unique&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1307&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;99&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;8&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;9&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;929&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;282&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;187&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;5&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;28&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;122&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;370&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;nulls: Int&bsol;&quot;&gt;nulls&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;263&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1014&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;823&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1188&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;564&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;top: Comparable&lt;*&gt;&bsol;&quot;&gt;top&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;Connolly, Miss. Kate&quot;,&quot;male&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;24.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;CA. 2343&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;8.1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;C23 C25 C27&quot;,&quot;S&quot;,&quot;13&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;135&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;New York, NY&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;freq: Int&bsol;&quot;&gt;freq&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;709&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;809&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;843&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;47&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;890&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1001&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;11&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;60&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;6&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;912&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;39&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;64&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;mean: Double?&bsol;&quot;&gt;mean&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.294882&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.381971&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;29.881135&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.499235&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.385321&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;33.295479&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;160.809917&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;std: Double?&bsol;&quot;&gt;std&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.837836&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.486055&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;14.413500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.041965&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.865826&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;51.758668&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;97.696922&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;min: Comparable&lt;*&gt;&bsol;&quot;&gt;min&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;Abbing, Mr. Anthony&quot;,&quot;female&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.2&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;110152&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;A10&quot;,&quot;AA&quot;,&quot;1&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;?Havana, Cuba&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;p25: Comparable&lt;*&gt;&bsol;&quot;&gt;p25&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;Devaney, Miss. Margaret Delia&quot;,&quot;female&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;21.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;248738&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;7.9&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;B73&quot;,&quot;Q&quot;,&quot;14&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;71.3&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;England&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;median: Comparable&lt;*&gt;&bsol;&quot;&gt;median&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;Kink, Miss. Maria&quot;,&quot;male&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;28.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;347082&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;14.5&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;C62 C64&quot;,&quot;S&quot;,&quot;3&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;155.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;Lucca, Italy &sol; California&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;p75: Comparable&lt;*&gt;&bsol;&quot;&gt;p75&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;Quick, Mrs. Frederick Charles (Jane Richards)&bsol;&quot;&gt;Quick, Mrs. Frederick Charles (Jane R&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;...&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;male&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;39.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;A&sol;5 3536&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;31.3&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;D48&quot;,&quot;S&quot;,&quot;8&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;256.7&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;Provo, UT&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;max: Comparable&lt;*&gt;&bsol;&quot;&gt;max&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;van Melkebeke, Mr. Philemon&quot;,&quot;male&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;80.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;8&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;9&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;WE&sol;P 5735&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;512.3&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;T&quot;,&quot;S&quot;,&quot;D&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;328&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;Zurich, Switzerland&quot;] }, \n",
"], id: -536870910, rootId: -536870910, totalRows: 14 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870910) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_2() {\n",
" let elem = document.getElementById(\"iframe_out_2\");\n",
" resize_iframe_out_2(elem);\n",
" setInterval(resize_iframe_out_2, 5000, elem);\n",
" }\n",
" function resize_iframe_out_2(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870909\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">name</th><th class=\"bottomBorder\" style=\"text-align:left\">type</th><th class=\"bottomBorder\" style=\"text-align:left\">count</th><th class=\"bottomBorder\" style=\"text-align:left\">unique</th><th class=\"bottomBorder\" style=\"text-align:left\">nulls</th><th class=\"bottomBorder\" style=\"text-align:left\">top</th><th class=\"bottomBorder\" style=\"text-align:left\">freq</th><th class=\"bottomBorder\" style=\"text-align:left\">mean</th><th class=\"bottomBorder\" style=\"text-align:left\">std</th><th class=\"bottomBorder\" style=\"text-align:left\">min</th><th class=\"bottomBorder\" style=\"text-align:left\">p25</th><th class=\"bottomBorder\" style=\"text-align:left\">median</th><th class=\"bottomBorder\" style=\"text-align:left\">p75</th><th class=\"bottomBorder\" style=\"text-align:left\">max</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">pclass</td><td style=\"vertical-align:top\">Int</td><td style=\"vertical-align:top\">1309</td><td style=\"vertical-align:top\">3</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">3</td><td style=\"vertical-align:top\">709</td><td style=\"vertical-align:top\">2.294882</td><td style=\"vertical-align:top\">0.837836</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">2.000000</td><td style=\"vertical-align:top\">3.000000</td><td style=\"vertical-align:top\">3.000000</td><td style=\"vertical-align:top\">3</td></tr><tr><td style=\"vertical-align:top\">survived</td><td style=\"vertical-align:top\">Int</td><td style=\"vertical-align:top\">1309</td><td style=\"vertical-align:top\">2</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">809</td><td style=\"vertical-align:top\">0.381971</td><td style=\"vertical-align:top\">0.486055</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">0.000000</td><td style=\"vertical-align:top\">0.000000</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">1</td></tr><tr><td style=\"vertical-align:top\">name</td><td style=\"vertical-align:top\">String</td><td style=\"vertical-align:top\">1309</td><td style=\"vertical-align:top\">1307</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Connolly, Miss. Kate</td><td style=\"vertical-align:top\">2</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">Abbing, Mr. Anthony</td><td style=\"vertical-align:top\">Devaney, Miss. Margaret Delia</td><td style=\"vertical-align:top\">Kink, Miss. Maria</td><td style=\"vertical-align:top\">Quick, Mrs. Frederick Charles (Jane R<span class=\"structural\">...</span></td><td style=\"vertical-align:top\">van Melkebeke, Mr. Philemon</td></tr><tr><td style=\"vertical-align:top\">sex</td><td style=\"vertical-align:top\">String?</td><td style=\"vertical-align:top\">1309</td><td style=\"vertical-align:top\">3</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">male</td><td style=\"vertical-align:top\">843</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">female</td><td style=\"vertical-align:top\">female</td><td style=\"vertical-align:top\">male</td><td style=\"vertical-align:top\">male</td><td style=\"vertical-align:top\">male</td></tr><tr><td style=\"vertical-align:top\">age</td><td style=\"vertical-align:top\">Double?</td><td style=\"vertical-align:top\">1309</td><td style=\"vertical-align:top\">99</td><td style=\"vertical-align:top\">263</td><td style=\"vertical-align:top\">24.000000</td><td style=\"vertical-align:top\">47</td><td style=\"vertical-align:top\">29.881135</td><td style=\"vertical-align:top\">14.413500</td><td style=\"vertical-align:top\">0.166700</td><td style=\"vertical-align:top\">21.000000</td><td style=\"vertical-align:top\">28.000000</td><td style=\"vertical-align:top\">39.000000</td><td style=\"vertical-align:top\">80.000000</td></tr><tr><td style=\"vertical-align:top\">sibsp</td><td style=\"vertical-align:top\">Int?</td><td style=\"vertical-align:top\">1309</td><td style=\"vertical-align:top\">8</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">890</td><td style=\"vertical-align:top\">0.499235</td><td style=\"vertical-align:top\">1.041965</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">0.000000</td><td style=\"vertical-align:top\">0.000000</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">8</td></tr><tr><td style=\"vertical-align:top\">parch</td><td style=\"vertical-align:top\">Int?</td><td style=\"vertical-align:top\">1309</td><td style=\"vertical-align:top\">9</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">1001</td><td style=\"vertical-align:top\">0.385321</td><td style=\"vertical-align:top\">0.865826</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">0.000000</td><td style=\"vertical-align:top\">0.000000</td><td style=\"vertical-align:top\">0.000000</td><td style=\"vertical-align:top\">9</td></tr><tr><td style=\"vertical-align:top\">ticket</td><td style=\"vertical-align:top\">String</td><td style=\"vertical-align:top\">1309</td><td style=\"vertical-align:top\">929</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">CA. 2343</td><td style=\"vertical-align:top\">11</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">110152</td><td style=\"vertical-align:top\">248738</td><td style=\"vertical-align:top\">347082</td><td style=\"vertical-align:top\">A/5 3536</td><td style=\"vertical-align:top\">WE/P 5735</td></tr><tr><td style=\"vertical-align:top\">fare</td><td style=\"vertical-align:top\">Double?</td><td style=\"vertical-align:top\">1309</td><td style=\"vertical-align:top\">282</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">8.050000</td><td style=\"vertical-align:top\">60</td><td style=\"vertical-align:top\">33.295479</td><td style=\"vertical-align:top\">51.758668</td><td style=\"vertical-align:top\">0.000000</td><td style=\"vertical-align:top\">7.895800</td><td style=\"vertical-align:top\">14.454200</td><td style=\"vertical-align:top\">31.275000</td><td style=\"vertical-align:top\">512.329200</td></tr><tr><td style=\"vertical-align:top\">cabin</td><td style=\"vertical-align:top\">String?</td><td style=\"vertical-align:top\">1309</td><td style=\"vertical-align:top\">187</td><td style=\"vertical-align:top\">1014</td><td style=\"vertical-align:top\">C23 C25 C27</td><td style=\"vertical-align:top\">6</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">A10</td><td style=\"vertical-align:top\">B73</td><td style=\"vertical-align:top\">C62 C64</td><td style=\"vertical-align:top\">D48</td><td style=\"vertical-align:top\">T</td></tr><tr><td style=\"vertical-align:top\">embarked</td><td style=\"vertical-align:top\">String?</td><td style=\"vertical-align:top\">1309</td><td style=\"vertical-align:top\">5</td><td style=\"vertical-align:top\">3</td><td style=\"vertical-align:top\">S</td><td style=\"vertical-align:top\">912</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">AA</td><td style=\"vertical-align:top\">Q</td><td style=\"vertical-align:top\">S</td><td style=\"vertical-align:top\">S</td><td style=\"vertical-align:top\">S</td></tr><tr><td style=\"vertical-align:top\">boat</td><td style=\"vertical-align:top\">String?</td><td style=\"vertical-align:top\">1309</td><td style=\"vertical-align:top\">28</td><td style=\"vertical-align:top\">823</td><td style=\"vertical-align:top\">13</td><td style=\"vertical-align:top\">39</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">14</td><td style=\"vertical-align:top\">3</td><td style=\"vertical-align:top\">8</td><td style=\"vertical-align:top\">D</td></tr><tr><td style=\"vertical-align:top\">body</td><td style=\"vertical-align:top\">Int?</td><td style=\"vertical-align:top\">1309</td><td style=\"vertical-align:top\">122</td><td style=\"vertical-align:top\">1188</td><td style=\"vertical-align:top\">135</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">160.809917</td><td style=\"vertical-align:top\">97.696922</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">71.333333</td><td style=\"vertical-align:top\">155.000000</td><td style=\"vertical-align:top\">256.666667</td><td style=\"vertical-align:top\">328</td></tr><tr><td style=\"vertical-align:top\">homedest</td><td style=\"vertical-align:top\">String?</td><td style=\"vertical-align:top\">1309</td><td style=\"vertical-align:top\">370</td><td style=\"vertical-align:top\">564</td><td style=\"vertical-align:top\">New York, NY</td><td style=\"vertical-align:top\">64</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">?Havana, Cuba</td><td style=\"vertical-align:top\">England</td><td style=\"vertical-align:top\">Lucca, Italy / California</td><td style=\"vertical-align:top\">Provo, UT</td><td style=\"vertical-align:top\">Zurich, Switzerland</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870909\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"name\",\"type\",\"count\",\"unique\",\"nulls\",\"top\",\"freq\",\"mean\",\"std\",\"min\",\"p25\",\"median\",\"p75\",\"max\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Comparable<*>\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double?\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double?\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Comparable<*>\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Comparable<*>\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Comparable<*>\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Comparable<*>\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Comparable<*>\"}],\"nrow\":14,\"ncol\":14},\"kotlin_dataframe\":[{\"name\":\"pclass\",\"type\":\"Int\",\"count\":1309,\"unique\":3,\"nulls\":0,\"top\":\"3\",\"freq\":709,\"mean\":2.294881588999236,\"std\":0.837836018970131,\"min\":\"1\",\"p25\":\"2.0\",\"median\":\"3.0\",\"p75\":\"3.0\",\"max\":\"3\"},{\"name\":\"survived\",\"type\":\"Int\",\"count\":1309,\"unique\":2,\"nulls\":0,\"top\":\"0\",\"freq\":809,\"mean\":0.3819709702062643,\"std\":0.48605517086648004,\"min\":\"0\",\"p25\":\"0.0\",\"median\":\"0.0\",\"p75\":\"1.0\",\"max\":\"1\"},{\"name\":\"name\",\"type\":\"String\",\"count\":1309,\"unique\":1307,\"nulls\":0,\"top\":\"Connolly, Miss. Kate\",\"freq\":2,\"mean\":null,\"std\":null,\"min\":\"Abbing, Mr. Anthony\",\"p25\":\"Devaney, Miss. Margaret Delia\",\"median\":\"Kink, Miss. Maria\",\"p75\":\"Quick, Mrs. Frederick Charles (Jane Richards)\",\"max\":\"van Melkebeke, Mr. Philemon\"},{\"name\":\"sex\",\"type\":\"String?\",\"count\":1309,\"unique\":3,\"nulls\":1,\"top\":\"male\",\"freq\":843,\"mean\":null,\"std\":null,\"min\":\"female\",\"p25\":\"female\",\"median\":\"male\",\"p75\":\"male\",\"max\":\"male\"},{\"name\":\"age\",\"type\":\"Double?\",\"count\":1309,\"unique\":99,\"nulls\":263,\"top\":\"24.0\",\"freq\":47,\"mean\":29.8811345124283,\"std\":14.413499699923594,\"min\":\"0.1667\",\"p25\":\"21.0\",\"median\":\"28.0\",\"p75\":\"39.0\",\"max\":\"80.0\"},{\"name\":\"sibsp\",\"type\":\"Int?\",\"count\":1309,\"unique\":8,\"nulls\":1,\"top\":\"0\",\"freq\":890,\"mean\":0.49923547400611623,\"std\":1.041965373922986,\"min\":\"0\",\"p25\":\"0.0\",\"median\":\"0.0\",\"p75\":\"1.0\",\"max\":\"8\"},{\"name\":\"parch\",\"type\":\"Int?\",\"count\":1309,\"unique\":9,\"nulls\":1,\"top\":\"0\",\"freq\":1001,\"mean\":0.3853211009174312,\"std\":0.8658257885990794,\"min\":\"0\",\"p25\":\"0.0\",\"median\":\"0.0\",\"p75\":\"0.0\",\"max\":\"9\"},{\"name\":\"ticket\",\"type\":\"String\",\"count\":1309,\"unique\":929,\"nulls\":0,\"top\":\"CA. 2343\",\"freq\":11,\"mean\":null,\"std\":null,\"min\":\"110152\",\"p25\":\"248738\",\"median\":\"347082\",\"p75\":\"A/5 3536\",\"max\":\"WE/P 5735\"},{\"name\":\"fare\",\"type\":\"Double?\",\"count\":1309,\"unique\":282,\"nulls\":1,\"top\":\"8.05\",\"freq\":60,\"mean\":33.29547928134572,\"std\":51.758668239174135,\"min\":\"0.0\",\"p25\":\"7.8958\",\"median\":\"14.4542\",\"p75\":\"31.275\",\"max\":\"512.3292\"},{\"name\":\"cabin\",\"type\":\"String?\",\"count\":1309,\"unique\":187,\"nulls\":1014,\"top\":\"C23 C25 C27\",\"freq\":6,\"mean\":null,\"std\":null,\"min\":\"A10\",\"p25\":\"B73\",\"median\":\"C62 C64\",\"p75\":\"D48\",\"max\":\"T\"},{\"name\":\"embarked\",\"type\":\"String?\",\"count\":1309,\"unique\":5,\"nulls\":3,\"top\":\"S\",\"freq\":912,\"mean\":null,\"std\":null,\"min\":\"AA\",\"p25\":\"Q\",\"median\":\"S\",\"p75\":\"S\",\"max\":\"S\"},{\"name\":\"boat\",\"type\":\"String?\",\"count\":1309,\"unique\":28,\"nulls\":823,\"top\":\"13\",\"freq\":39,\"mean\":null,\"std\":null,\"min\":\"1\",\"p25\":\"14\",\"median\":\"3\",\"p75\":\"8\",\"max\":\"D\"},{\"name\":\"body\",\"type\":\"Int?\",\"count\":1309,\"unique\":122,\"nulls\":1188,\"top\":\"135\",\"freq\":1,\"mean\":160.8099173553719,\"std\":97.6969219960031,\"min\":\"1\",\"p25\":\"71.33333333333333\",\"median\":\"155.0\",\"p75\":\"256.66666666666663\",\"max\":\"328\"},{\"name\":\"homedest\",\"type\":\"String?\",\"count\":1309,\"unique\":370,\"nulls\":564,\"top\":\"New York, NY\",\"freq\":64,\"mean\":null,\"std\":null,\"min\":\"?Havana, Cuba\",\"p25\":\"England\",\"median\":\"Lucca, Italy / California\",\"p75\":\"Provo, UT\",\"max\":\"Zurich, Switzerland\"}]}"
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 4
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:16:38.988769Z",
"start_time": "2025-05-28T10:16:38.801330Z"
}
},
"source": [
"df"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_3()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_3\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870908&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;... showing only top 20 of 1309 rows&lt;&sol;p&gt;&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 1309, columnsCount = 14&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;pclass: Int&bsol;&quot;&gt;pclass&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;survived: Int&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;name: String&bsol;&quot;&gt;name&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;Allen, Miss. Elisabeth Walton&quot;,&quot;Allison, Master. Hudson Trevor&quot;,&quot;Allison, Miss. Helen Loraine&quot;,&quot;Allison, Mr. Hudson Joshua Creighton&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;Allison, Mrs. Hudson J C (Bessie Waldo Daniels)&bsol;&quot;&gt;Allison, Mrs. Hudson J C (Bessie Wald&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;...&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;Anderson, Mr. Harry&quot;,&quot;Andrews, Miss. Kornelia Theodosia&quot;,&quot;Andrews, Mr. Thomas Jr&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;Appleton, Mrs. Edward Dale (Charlotte Lamson)&bsol;&quot;&gt;Appleton, Mrs. Edward Dale (Charlotte&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;...&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;Artagaveytia, Mr. Ramon&quot;,&quot;Astor, Col. John Jacob&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;Astor, Mrs. John Jacob (Madeleine Talmadge Force)&bsol;&quot;&gt;Astor, Mrs. John Jacob (Madeleine Tal&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;...&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;Aubart, Mme. Leontine Pauline&quot;,&quot;Barber, Miss. Ellen &amp;#34;Nellie&amp;#34;&quot;,&quot;Barkworth, Mr. Algernon Henry Wilson&quot;,&quot;Baumann, Mr. John D&quot;,&quot;Baxter, Mr. Quigg Edmond&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;Baxter, Mrs. James (Helene DeLaudeniere Chaput)&bsol;&quot;&gt;Baxter, Mrs. James (Helene DeLaudenie&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;...&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;Bazzani, Miss. Albina&quot;,&quot;Beattie, Mr. Thomson&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;sex: String?&bsol;&quot;&gt;sex&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;male&quot;,&quot;female&quot;,&quot;male&quot;,&quot;female&quot;,&quot;male&quot;,&quot;female&quot;,&quot;male&quot;,&quot;female&quot;,&quot;male&quot;,&quot;male&quot;,&quot;female&quot;,&quot;female&quot;,&quot;female&quot;,&quot;male&quot;,&quot;male&quot;,&quot;male&quot;,&quot;female&quot;,&quot;female&quot;,&quot;male&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;age: Double?&bsol;&quot;&gt;age&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;29.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.9167&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;30.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;25.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;48.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;63.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;39.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;53.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;71.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;47.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;18.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;24.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;26.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;80.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;24.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;50.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;32.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;36.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;sibsp: Int?&bsol;&quot;&gt;sibsp&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;parch: Int?&bsol;&quot;&gt;parch&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;ticket: String&bsol;&quot;&gt;ticket&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;24160&quot;,&quot;113781&quot;,&quot;113781&quot;,&quot;113781&quot;,&quot;113781&quot;,&quot;19952&quot;,&quot;13502&quot;,&quot;112050&quot;,&quot;11769&quot;,&quot;PC 17609&quot;,&quot;PC 17757&quot;,&quot;PC 17757&quot;,&quot;PC 17477&quot;,&quot;19877&quot;,&quot;27042&quot;,&quot;PC 17318&quot;,&quot;PC 17558&quot;,&quot;PC 17558&quot;,&quot;11813&quot;,&quot;13050&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;fare: Double?&bsol;&quot;&gt;fare&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;211.3375&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;151.5500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;151.5500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;151.5500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;151.5500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;26.5500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;77.9583&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;51.4792&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;49.5042&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;227.5250&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;227.5250&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;69.3000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;78.8500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;30.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;25.9250&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;247.5208&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;247.5208&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;76.2917&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;75.2417&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;cabin: String?&bsol;&quot;&gt;cabin&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;B5&quot;,&quot;C22 C26&quot;,&quot;C22 C26&quot;,&quot;C22 C26&quot;,&quot;C22 C26&quot;,&quot;E12&quot;,&quot;D7&quot;,&quot;A36&quot;,&quot;C101&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;C62 C64&quot;,&quot;C62 C64&quot;,&quot;B35&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;A23&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;B58 B60&quot;,&quot;B58 B60&quot;,&quot;D15&quot;,&quot;C6&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;embarked: String?&bsol;&quot;&gt;embarked&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;AA&quot;,&quot;S&quot;,&quot;S&quot;,&quot;S&quot;,&quot;S&quot;,&quot;S&quot;,&quot;S&quot;,&quot;S&quot;,&quot;C&quot;,&quot;C&quot;,&quot;C&quot;,&quot;C&quot;,&quot;S&quot;,&quot;S&quot;,&quot;S&quot;,&quot;C&quot;,&quot;C&quot;,&quot;C&quot;,&quot;C&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;boat: String?&bsol;&quot;&gt;boat&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;2&quot;,&quot;11&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;3&quot;,&quot;10&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;D&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;4&quot;,&quot;9&quot;,&quot;6&quot;,&quot;B&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;6&quot;,&quot;8&quot;,&quot;A&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;body: Int?&bsol;&quot;&gt;body&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;135&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;22&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;124&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;homedest: String?&bsol;&quot;&gt;homedest&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;St Louis, MO&quot;,&quot;Montreal, PQ &sol; Chesterville, ON&quot;,&quot;Montreal, PQ &sol; Chesterville, ON&quot;,&quot;Montreal, PQ &sol; Chesterville, ON&quot;,&quot;Montreal, PQ &sol; Chesterville, ON&quot;,&quot;New York, NY&quot;,&quot;Hudson, NY&quot;,&quot;Belfast, NI&quot;,&quot;Bayside, Queens, NY&quot;,&quot;Montevideo, Uruguay&quot;,&quot;New York, NY&quot;,&quot;New York, NY&quot;,&quot;Paris, France&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;Hessle, Yorks&quot;,&quot;New York, NY&quot;,&quot;Montreal, PQ&quot;,&quot;Montreal, PQ&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;Winnipeg, MN&quot;] }, \n",
"], id: -536870908, rootId: -536870908, totalRows: 1309 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870908) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_3() {\n",
" let elem = document.getElementById(\"iframe_out_3\");\n",
" resize_iframe_out_3(elem);\n",
" setInterval(resize_iframe_out_3, 5000, elem);\n",
" }\n",
" function resize_iframe_out_3(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870907\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">pclass</th><th class=\"bottomBorder\" style=\"text-align:left\">survived</th><th class=\"bottomBorder\" style=\"text-align:left\">name</th><th class=\"bottomBorder\" style=\"text-align:left\">sex</th><th class=\"bottomBorder\" style=\"text-align:left\">age</th><th class=\"bottomBorder\" style=\"text-align:left\">sibsp</th><th class=\"bottomBorder\" style=\"text-align:left\">parch</th><th class=\"bottomBorder\" style=\"text-align:left\">ticket</th><th class=\"bottomBorder\" style=\"text-align:left\">fare</th><th class=\"bottomBorder\" style=\"text-align:left\">cabin</th><th class=\"bottomBorder\" style=\"text-align:left\">embarked</th><th class=\"bottomBorder\" style=\"text-align:left\">boat</th><th class=\"bottomBorder\" style=\"text-align:left\">body</th><th class=\"bottomBorder\" style=\"text-align:left\">homedest</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Allen, Miss. Elisabeth Walton</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">29.000000</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">24160</td><td style=\"vertical-align:top\">211.337500</td><td style=\"vertical-align:top\">B5</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">2</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">St Louis, MO</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Allison, Master. Hudson Trevor</td><td style=\"vertical-align:top\">male</td><td style=\"vertical-align:top\">0.916700</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">2</td><td style=\"vertical-align:top\">113781</td><td style=\"vertical-align:top\">151.550000</td><td style=\"vertical-align:top\">C22 C26</td><td style=\"vertical-align:top\">AA</td><td style=\"vertical-align:top\">11</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">Montreal, PQ / Chesterville, ON</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Allison, Miss. Helen Loraine</td><td style=\"vertical-align:top\">female</td><td style=\"vertical-align:top\">2.000000</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">2</td><td style=\"vertical-align:top\">113781</td><td style=\"vertical-align:top\">151.550000</td><td style=\"vertical-align:top\">C22 C26</td><td style=\"vertical-align:top\">S</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">Montreal, PQ / Chesterville, ON</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Allison, Mr. Hudson Joshua Creighton</td><td style=\"vertical-align:top\">male</td><td style=\"vertical-align:top\">30.000000</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">2</td><td style=\"vertical-align:top\">113781</td><td style=\"vertical-align:top\">151.550000</td><td style=\"vertical-align:top\">C22 C26</td><td style=\"vertical-align:top\">S</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">135</td><td style=\"vertical-align:top\">Montreal, PQ / Chesterville, ON</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Allison, Mrs. Hudson J C (Bessie Wald<span class=\"structural\">...</span></td><td style=\"vertical-align:top\">female</td><td style=\"vertical-align:top\">25.000000</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">2</td><td style=\"vertical-align:top\">113781</td><td style=\"vertical-align:top\">151.550000</td><td style=\"vertical-align:top\">C22 C26</td><td style=\"vertical-align:top\">S</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">Montreal, PQ / Chesterville, ON</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Anderson, Mr. Harry</td><td style=\"vertical-align:top\">male</td><td style=\"vertical-align:top\">48.000000</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">19952</td><td style=\"vertical-align:top\">26.550000</td><td style=\"vertical-align:top\">E12</td><td style=\"vertical-align:top\">S</td><td style=\"vertical-align:top\">3</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">New York, NY</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Andrews, Miss. Kornelia Theodosia</td><td style=\"vertical-align:top\">female</td><td style=\"vertical-align:top\">63.000000</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">13502</td><td style=\"vertical-align:top\">77.958300</td><td style=\"vertical-align:top\">D7</td><td style=\"vertical-align:top\">S</td><td style=\"vertical-align:top\">10</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">Hudson, NY</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Andrews, Mr. Thomas Jr</td><td style=\"vertical-align:top\">male</td><td style=\"vertical-align:top\">39.000000</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">112050</td><td style=\"vertical-align:top\">0.000000</td><td style=\"vertical-align:top\">A36</td><td style=\"vertical-align:top\">S</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">Belfast, NI</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Appleton, Mrs. Edward Dale (Charlotte<span class=\"structural\">...</span></td><td style=\"vertical-align:top\">female</td><td style=\"vertical-align:top\">53.000000</td><td style=\"vertical-align:top\">2</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">11769</td><td style=\"vertical-align:top\">51.479200</td><td style=\"vertical-align:top\">C101</td><td style=\"vertical-align:top\">S</td><td style=\"vertical-align:top\">D</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">Bayside, Queens, NY</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Artagaveytia, Mr. Ramon</td><td style=\"vertical-align:top\">male</td><td style=\"vertical-align:top\">71.000000</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">PC 17609</td><td style=\"vertical-align:top\">49.504200</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">C</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">22</td><td style=\"vertical-align:top\">Montevideo, Uruguay</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Astor, Col. John Jacob</td><td style=\"vertical-align:top\">male</td><td style=\"vertical-align:top\">47.000000</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">PC 17757</td><td style=\"vertical-align:top\">227.525000</td><td style=\"vertical-align:top\">C62 C64</td><td style=\"vertical-align:top\">C</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">124</td><td style=\"vertical-align:top\">New York, NY</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Astor, Mrs. John Jacob (Madeleine Tal<span class=\"structural\">...</span></td><td style=\"vertical-align:top\">female</td><td style=\"vertical-align:top\">18.000000</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">PC 17757</td><td style=\"vertical-align:top\">227.525000</td><td style=\"vertical-align:top\">C62 C64</td><td style=\"vertical-align:top\">C</td><td style=\"vertical-align:top\">4</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">New York, NY</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Aubart, Mme. Leontine Pauline</td><td style=\"vertical-align:top\">female</td><td style=\"vertical-align:top\">24.000000</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">PC 17477</td><td style=\"vertical-align:top\">69.300000</td><td style=\"vertical-align:top\">B35</td><td style=\"vertical-align:top\">C</td><td style=\"vertical-align:top\">9</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">Paris, France</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Barber, Miss. Ellen &#34;Nellie&#34;</td><td style=\"vertical-align:top\">female</td><td style=\"vertical-align:top\">26.000000</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">19877</td><td style=\"vertical-align:top\">78.850000</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">S</td><td style=\"vertical-align:top\">6</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">null</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Barkworth, Mr. Algernon Henry Wilson</td><td style=\"vertical-align:top\">male</td><td style=\"vertical-align:top\">80.000000</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">27042</td><td style=\"vertical-align:top\">30.000000</td><td style=\"vertical-align:top\">A23</td><td style=\"vertical-align:top\">S</td><td style=\"vertical-align:top\">B</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">Hessle, Yorks</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Baumann, Mr. John D</td><td style=\"vertical-align:top\">male</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">PC 17318</td><td style=\"vertical-align:top\">25.925000</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">S</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">New York, NY</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Baxter, Mr. Quigg Edmond</td><td style=\"vertical-align:top\">male</td><td style=\"vertical-align:top\">24.000000</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">PC 17558</td><td style=\"vertical-align:top\">247.520800</td><td style=\"vertical-align:top\">B58 B60</td><td style=\"vertical-align:top\">C</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">Montreal, PQ</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Baxter, Mrs. James (Helene DeLaudenie<span class=\"structural\">...</span></td><td style=\"vertical-align:top\">female</td><td style=\"vertical-align:top\">50.000000</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">PC 17558</td><td style=\"vertical-align:top\">247.520800</td><td style=\"vertical-align:top\">B58 B60</td><td style=\"vertical-align:top\">C</td><td style=\"vertical-align:top\">6</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">Montreal, PQ</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Bazzani, Miss. Albina</td><td style=\"vertical-align:top\">female</td><td style=\"vertical-align:top\">32.000000</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">11813</td><td style=\"vertical-align:top\">76.291700</td><td style=\"vertical-align:top\">D15</td><td style=\"vertical-align:top\">C</td><td style=\"vertical-align:top\">8</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">null</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Beattie, Mr. Thomson</td><td style=\"vertical-align:top\">male</td><td style=\"vertical-align:top\">36.000000</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">13050</td><td style=\"vertical-align:top\">75.241700</td><td style=\"vertical-align:top\">C6</td><td style=\"vertical-align:top\">C</td><td style=\"vertical-align:top\">A</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">Winnipeg, MN</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870907\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"pclass\",\"survived\",\"name\",\"sex\",\"age\",\"sibsp\",\"parch\",\"ticket\",\"fare\",\"cabin\",\"embarked\",\"boat\",\"body\",\"homedest\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String?\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double?\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int?\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int?\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double?\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String?\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String?\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String?\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int?\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String?\"}],\"nrow\":1309,\"ncol\":14},\"kotlin_dataframe\":[{\"pclass\":1,\"survived\":1,\"name\":\"Allen, Miss. Elisabeth Walton\",\"sex\":null,\"age\":29.0,\"sibsp\":null,\"parch\":null,\"ticket\":\"24160\",\"fare\":211.3375,\"cabin\":\"B5\",\"embarked\":null,\"boat\":\"2\",\"body\":null,\"homedest\":\"St Louis, MO\"},{\"pclass\":1,\"survived\":1,\"name\":\"Allison, Master. Hudson Trevor\",\"sex\":\"male\",\"age\":0.9167,\"sibsp\":1,\"parch\":2,\"ticket\":\"113781\",\"fare\":151.55,\"cabin\":\"C22 C26\",\"embarked\":\"AA\",\"boat\":\"11\",\"body\":null,\"homedest\":\"Montreal, PQ / Chesterville, ON\"},{\"pclass\":1,\"survived\":0,\"name\":\"Allison, Miss. Helen Loraine\",\"sex\":\"female\",\"age\":2.0,\"sibsp\":1,\"parch\":2,\"ticket\":\"113781\",\"fare\":151.55,\"cabin\":\"C22 C26\",\"embarked\":\"S\",\"boat\":null,\"body\":null,\"homedest\":\"Montreal, PQ / Chesterville, ON\"},{\"pclass\":1,\"survived\":0,\"name\":\"Allison, Mr. Hudson Joshua Creighton\",\"sex\":\"male\",\"age\":30.0,\"sibsp\":1,\"parch\":2,\"ticket\":\"113781\",\"fare\":151.55,\"cabin\":\"C22 C26\",\"embarked\":\"S\",\"boat\":null,\"body\":135,\"homedest\":\"Montreal, PQ / Chesterville, ON\"},{\"pclass\":1,\"survived\":0,\"name\":\"Allison, Mrs. Hudson J C (Bessie Waldo Daniels)\",\"sex\":\"female\",\"age\":25.0,\"sibsp\":1,\"parch\":2,\"ticket\":\"113781\",\"fare\":151.55,\"cabin\":\"C22 C26\",\"embarked\":\"S\",\"boat\":null,\"body\":null,\"homedest\":\"Montreal, PQ / Chesterville, ON\"},{\"pclass\":1,\"survived\":1,\"name\":\"Anderson, Mr. Harry\",\"sex\":\"male\",\"age\":48.0,\"sibsp\":0,\"parch\":0,\"ticket\":\"19952\",\"fare\":26.55,\"cabin\":\"E12\",\"embarked\":\"S\",\"boat\":\"3\",\"body\":null,\"homedest\":\"New York, NY\"},{\"pclass\":1,\"survived\":1,\"name\":\"Andrews, Miss. Kornelia Theodosia\",\"sex\":\"female\",\"age\":63.0,\"sibsp\":1,\"parch\":0,\"ticket\":\"13502\",\"fare\":77.9583,\"cabin\":\"D7\",\"embarked\":\"S\",\"boat\":\"10\",\"body\":null,\"homedest\":\"Hudson, NY\"},{\"pclass\":1,\"survived\":0,\"name\":\"Andrews, Mr. Thomas Jr\",\"sex\":\"male\",\"age\":39.0,\"sibsp\":0,\"parch\":0,\"ticket\":\"112050\",\"fare\":0.0,\"cabin\":\"A36\",\"embarked\":\"S\",\"boat\":null,\"body\":null,\"homedest\":\"Belfast, NI\"},{\"pclass\":1,\"survived\":1,\"name\":\"Appleton, Mrs. Edward Dale (Charlotte Lamson)\",\"sex\":\"female\",\"age\":53.0,\"sibsp\":2,\"parch\":0,\"ticket\":\"11769\",\"fare\":51.4792,\"cabin\":\"C101\",\"embarked\":\"S\",\"boat\":\"D\",\"body\":null,\"homedest\":\"Bayside, Queens, NY\"},{\"pclass\":1,\"survived\":0,\"name\":\"Artagaveytia, Mr. Ramon\",\"sex\":\"male\",\"age\":71.0,\"sibsp\":0,\"parch\":0,\"ticket\":\"PC 17609\",\"fare\":49.5042,\"cabin\":null,\"embarked\":\"C\",\"boat\":null,\"body\":22,\"homedest\":\"Montevideo, Uruguay\"},{\"pclass\":1,\"survived\":0,\"name\":\"Astor, Col. John Jacob\",\"sex\":\"male\",\"age\":47.0,\"sibsp\":1,\"parch\":0,\"ticket\":\"PC 17757\",\"fare\":227.525,\"cabin\":\"C62 C64\",\"embarked\":\"C\",\"boat\":null,\"body\":124,\"homedest\":\"New York, NY\"},{\"pclass\":1,\"survived\":1,\"name\":\"Astor, Mrs. John Jacob (Madeleine Talmadge Force)\",\"sex\":\"female\",\"age\":18.0,\"sibsp\":1,\"parch\":0,\"ticket\":\"PC 17757\",\"fare\":227.525,\"cabin\":\"C62 C64\",\"embarked\":\"C\",\"boat\":\"4\",\"body\":null,\"homedest\":\"New York, NY\"},{\"pclass\":1,\"survived\":1,\"name\":\"Aubart, Mme. Leontine Pauline\",\"sex\":\"female\",\"age\":24.0,\"sibsp\":0,\"parch\":0,\"ticket\":\"PC 17477\",\"fare\":69.3,\"cabin\":\"B35\",\"embarked\":\"C\",\"boat\":\"9\",\"body\":null,\"homedest\":\"Paris, France\"},{\"pclass\":1,\"survived\":1,\"name\":\"Barber, Miss. Ellen \\\"Nellie\\\"\",\"sex\":\"female\",\"age\":26.0,\"sibsp\":0,\"parch\":0,\"ticket\":\"19877\",\"fare\":78.85,\"cabin\":null,\"embarked\":\"S\",\"boat\":\"6\",\"body\":null,\"homedest\":null},{\"pclass\":1,\"survived\":1,\"name\":\"Barkworth, Mr. Algernon Henry Wilson\",\"sex\":\"male\",\"age\":80.0,\"sibsp\":0,\"parch\":0,\"ticket\":\"27042\",\"fare\":30.0,\"cabin\":\"A23\",\"embarked\":\"S\",\"boat\":\"B\",\"body\":null,\"homedest\":\"Hessle, Yorks\"},{\"pclass\":1,\"survived\":0,\"name\":\"Baumann, Mr. John D\",\"sex\":\"male\",\"age\":null,\"sibsp\":0,\"parch\":0,\"ticket\":\"PC 17318\",\"fare\":25.925,\"cabin\":null,\"embarked\":\"S\",\"boat\":null,\"body\":null,\"homedest\":\"New York, NY\"},{\"pclass\":1,\"survived\":0,\"name\":\"Baxter, Mr. Quigg Edmond\",\"sex\":\"male\",\"age\":24.0,\"sibsp\":0,\"parch\":1,\"ticket\":\"PC 17558\",\"fare\":247.5208,\"cabin\":\"B58 B60\",\"embarked\":\"C\",\"boat\":null,\"body\":null,\"homedest\":\"Montreal, PQ\"},{\"pclass\":1,\"survived\":1,\"name\":\"Baxter, Mrs. James (Helene DeLaudeniere Chaput)\",\"sex\":\"female\",\"age\":50.0,\"sibsp\":0,\"parch\":1,\"ticket\":\"PC 17558\",\"fare\":247.5208,\"cabin\":\"B58 B60\",\"embarked\":\"C\",\"boat\":\"6\",\"body\":null,\"homedest\":\"Montreal, PQ\"},{\"pclass\":1,\"survived\":1,\"name\":\"Bazzani, Miss. Albina\",\"sex\":\"female\",\"age\":32.0,\"sibsp\":0,\"parch\":0,\"ticket\":\"11813\",\"fare\":76.2917,\"cabin\":\"D15\",\"embarked\":\"C\",\"boat\":\"8\",\"body\":null,\"homedest\":null},{\"pclass\":1,\"survived\":0,\"name\":\"Beattie, Mr. Thomson\",\"sex\":\"male\",\"age\":36.0,\"sibsp\":0,\"parch\":0,\"ticket\":\"13050\",\"fare\":75.2417,\"cabin\":\"C6\",\"embarked\":\"C\",\"boat\":\"A\",\"body\":null,\"homedest\":\"Winnipeg, MN\"}]}"
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 5
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Imputing null values\n",
"Let's convert all columns of our dataset to non-nullable and impute null values based on mean values."
]
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:16:41.323938Z",
"start_time": "2025-05-28T10:16:38.994285Z"
}
},
"source": [
"val df1 = df\n",
" // imputing\n",
" .fillNulls { sibsp and parch and age and fare }.perCol { mean() }\n",
" .fillNulls { sex }.with { \"other\" }\n",
" .fillNulls { embarked }.with { \"S\" }\n",
" .convert { sibsp and parch and age and fare }.toDouble()\n",
"\n",
"df1.head()"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_4()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_4\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870906&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 5, columnsCount = 14&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;pclass: Int&bsol;&quot;&gt;pclass&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;survived: Int&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;name: String&bsol;&quot;&gt;name&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;Allen, Miss. Elisabeth Walton&quot;,&quot;Allison, Master. Hudson Trevor&quot;,&quot;Allison, Miss. Helen Loraine&quot;,&quot;Allison, Mr. Hudson Joshua Creighton&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;Allison, Mrs. Hudson J C (Bessie Waldo Daniels)&bsol;&quot;&gt;Allison, Mrs. Hudson J C (Bessie Wald&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;...&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;sex: String&bsol;&quot;&gt;sex&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;other&quot;,&quot;male&quot;,&quot;female&quot;,&quot;male&quot;,&quot;female&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;age: Double&bsol;&quot;&gt;age&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;29.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.9167&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;30.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;25.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;sibsp: Double&bsol;&quot;&gt;sibsp&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;parch: Double&bsol;&quot;&gt;parch&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;ticket: String&bsol;&quot;&gt;ticket&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;24160&quot;,&quot;113781&quot;,&quot;113781&quot;,&quot;113781&quot;,&quot;113781&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;fare: Double&bsol;&quot;&gt;fare&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;211.3375&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;151.5500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;151.5500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;151.5500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;151.5500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;cabin: String&bsol;&quot;&gt;cabin&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;B5&quot;,&quot;C22 C26&quot;,&quot;C22 C26&quot;,&quot;C22 C26&quot;,&quot;C22 C26&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;embarked: String&bsol;&quot;&gt;embarked&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;S&quot;,&quot;AA&quot;,&quot;S&quot;,&quot;S&quot;,&quot;S&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;boat: String?&bsol;&quot;&gt;boat&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;2&quot;,&quot;11&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;body: Int?&bsol;&quot;&gt;body&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;135&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;homedest: String&bsol;&quot;&gt;homedest&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;St Louis, MO&quot;,&quot;Montreal, PQ &sol; Chesterville, ON&quot;,&quot;Montreal, PQ &sol; Chesterville, ON&quot;,&quot;Montreal, PQ &sol; Chesterville, ON&quot;,&quot;Montreal, PQ &sol; Chesterville, ON&quot;] }, \n",
"], id: -536870906, rootId: -536870906, totalRows: 5 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870906) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_4() {\n",
" let elem = document.getElementById(\"iframe_out_4\");\n",
" resize_iframe_out_4(elem);\n",
" setInterval(resize_iframe_out_4, 5000, elem);\n",
" }\n",
" function resize_iframe_out_4(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870905\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">pclass</th><th class=\"bottomBorder\" style=\"text-align:left\">survived</th><th class=\"bottomBorder\" style=\"text-align:left\">name</th><th class=\"bottomBorder\" style=\"text-align:left\">sex</th><th class=\"bottomBorder\" style=\"text-align:left\">age</th><th class=\"bottomBorder\" style=\"text-align:left\">sibsp</th><th class=\"bottomBorder\" style=\"text-align:left\">parch</th><th class=\"bottomBorder\" style=\"text-align:left\">ticket</th><th class=\"bottomBorder\" style=\"text-align:left\">fare</th><th class=\"bottomBorder\" style=\"text-align:left\">cabin</th><th class=\"bottomBorder\" style=\"text-align:left\">embarked</th><th class=\"bottomBorder\" style=\"text-align:left\">boat</th><th class=\"bottomBorder\" style=\"text-align:left\">body</th><th class=\"bottomBorder\" style=\"text-align:left\">homedest</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Allen, Miss. Elisabeth Walton</td><td style=\"vertical-align:top\">other</td><td style=\"vertical-align:top\">29.000000</td><td style=\"vertical-align:top\">0.000000</td><td style=\"vertical-align:top\">0.000000</td><td style=\"vertical-align:top\">24160</td><td style=\"vertical-align:top\">211.337500</td><td style=\"vertical-align:top\">B5</td><td style=\"vertical-align:top\">S</td><td style=\"vertical-align:top\">2</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">St Louis, MO</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Allison, Master. Hudson Trevor</td><td style=\"vertical-align:top\">male</td><td style=\"vertical-align:top\">0.916700</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">2.000000</td><td style=\"vertical-align:top\">113781</td><td style=\"vertical-align:top\">151.550000</td><td style=\"vertical-align:top\">C22 C26</td><td style=\"vertical-align:top\">AA</td><td style=\"vertical-align:top\">11</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">Montreal, PQ / Chesterville, ON</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Allison, Miss. Helen Loraine</td><td style=\"vertical-align:top\">female</td><td style=\"vertical-align:top\">2.000000</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">2.000000</td><td style=\"vertical-align:top\">113781</td><td style=\"vertical-align:top\">151.550000</td><td style=\"vertical-align:top\">C22 C26</td><td style=\"vertical-align:top\">S</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">Montreal, PQ / Chesterville, ON</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Allison, Mr. Hudson Joshua Creighton</td><td style=\"vertical-align:top\">male</td><td style=\"vertical-align:top\">30.000000</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">2.000000</td><td style=\"vertical-align:top\">113781</td><td style=\"vertical-align:top\">151.550000</td><td style=\"vertical-align:top\">C22 C26</td><td style=\"vertical-align:top\">S</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">135</td><td style=\"vertical-align:top\">Montreal, PQ / Chesterville, ON</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Allison, Mrs. Hudson J C (Bessie Wald<span class=\"structural\">...</span></td><td style=\"vertical-align:top\">female</td><td style=\"vertical-align:top\">25.000000</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">2.000000</td><td style=\"vertical-align:top\">113781</td><td style=\"vertical-align:top\">151.550000</td><td style=\"vertical-align:top\">C22 C26</td><td style=\"vertical-align:top\">S</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">Montreal, PQ / Chesterville, ON</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870905\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"pclass\",\"survived\",\"name\",\"sex\",\"age\",\"sibsp\",\"parch\",\"ticket\",\"fare\",\"cabin\",\"embarked\",\"boat\",\"body\",\"homedest\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String?\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int?\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"}],\"nrow\":5,\"ncol\":14},\"kotlin_dataframe\":[{\"pclass\":1,\"survived\":1,\"name\":\"Allen, Miss. Elisabeth Walton\",\"sex\":\"other\",\"age\":29.0,\"sibsp\":0.0,\"parch\":0.0,\"ticket\":\"24160\",\"fare\":211.3375,\"cabin\":\"B5\",\"embarked\":\"S\",\"boat\":\"2\",\"body\":null,\"homedest\":\"St Louis, MO\"},{\"pclass\":1,\"survived\":1,\"name\":\"Allison, Master. Hudson Trevor\",\"sex\":\"male\",\"age\":0.9167,\"sibsp\":1.0,\"parch\":2.0,\"ticket\":\"113781\",\"fare\":151.55,\"cabin\":\"C22 C26\",\"embarked\":\"AA\",\"boat\":\"11\",\"body\":null,\"homedest\":\"Montreal, PQ / Chesterville, ON\"},{\"pclass\":1,\"survived\":0,\"name\":\"Allison, Miss. Helen Loraine\",\"sex\":\"female\",\"age\":2.0,\"sibsp\":1.0,\"parch\":2.0,\"ticket\":\"113781\",\"fare\":151.55,\"cabin\":\"C22 C26\",\"embarked\":\"S\",\"boat\":null,\"body\":null,\"homedest\":\"Montreal, PQ / Chesterville, ON\"},{\"pclass\":1,\"survived\":0,\"name\":\"Allison, Mr. Hudson Joshua Creighton\",\"sex\":\"male\",\"age\":30.0,\"sibsp\":1.0,\"parch\":2.0,\"ticket\":\"113781\",\"fare\":151.55,\"cabin\":\"C22 C26\",\"embarked\":\"S\",\"boat\":null,\"body\":135,\"homedest\":\"Montreal, PQ / Chesterville, ON\"},{\"pclass\":1,\"survived\":0,\"name\":\"Allison, Mrs. Hudson J C (Bessie Waldo Daniels)\",\"sex\":\"female\",\"age\":25.0,\"sibsp\":1.0,\"parch\":2.0,\"ticket\":\"113781\",\"fare\":151.55,\"cabin\":\"C22 C26\",\"embarked\":\"S\",\"boat\":null,\"body\":null,\"homedest\":\"Montreal, PQ / Chesterville, ON\"}]}"
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 6
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:16:41.441Z",
"start_time": "2025-05-28T10:16:41.332676Z"
}
},
"source": [
"df1.schema()"
],
"outputs": [
{
"data": {
"text/plain": [
"pclass: Int\n",
"survived: Int\n",
"name: String\n",
"sex: String\n",
"age: Double\n",
"sibsp: Double\n",
"parch: Double\n",
"ticket: String\n",
"fare: Double\n",
"cabin: String?\n",
"embarked: String\n",
"boat: String?\n",
"body: Int?\n",
"homedest: String?"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 7
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:16:41.598448Z",
"start_time": "2025-05-28T10:16:41.446624Z"
}
},
"source": [
"df1.corr()"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_5()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_5\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870904&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 6, columnsCount = 7&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;column: String&bsol;&quot;&gt;column&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;pclass&quot;,&quot;survived&quot;,&quot;age&quot;,&quot;sibsp&quot;,&quot;parch&quot;,&quot;fare&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;pclass: Double&bsol;&quot;&gt;pclass&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.312469&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.366370&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.060832&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.018322&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.558477&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;survived: Double&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.312469&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.050199&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.027825&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.082660&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.244208&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;age: Double&bsol;&quot;&gt;age&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.366370&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.050199&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.190747&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.130872&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.171521&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;sibsp: Double&bsol;&quot;&gt;sibsp&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.060832&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.027825&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.190747&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.373587&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.160224&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;parch: Double&bsol;&quot;&gt;parch&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.018322&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.082660&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.130872&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.373587&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.221522&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;fare: Double&bsol;&quot;&gt;fare&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.558477&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.244208&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.171521&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.160224&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.221522&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870904, rootId: -536870904, totalRows: 6 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870904) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_5() {\n",
" let elem = document.getElementById(\"iframe_out_5\");\n",
" resize_iframe_out_5(elem);\n",
" setInterval(resize_iframe_out_5, 5000, elem);\n",
" }\n",
" function resize_iframe_out_5(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870903\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">column</th><th class=\"bottomBorder\" style=\"text-align:left\">pclass</th><th class=\"bottomBorder\" style=\"text-align:left\">survived</th><th class=\"bottomBorder\" style=\"text-align:left\">age</th><th class=\"bottomBorder\" style=\"text-align:left\">sibsp</th><th class=\"bottomBorder\" style=\"text-align:left\">parch</th><th class=\"bottomBorder\" style=\"text-align:left\">fare</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">pclass</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">-0.312469</td><td style=\"vertical-align:top\">-0.366370</td><td style=\"vertical-align:top\">0.060832</td><td style=\"vertical-align:top\">0.018322</td><td style=\"vertical-align:top\">-0.558477</td></tr><tr><td style=\"vertical-align:top\">survived</td><td style=\"vertical-align:top\">-0.312469</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">-0.050199</td><td style=\"vertical-align:top\">-0.027825</td><td style=\"vertical-align:top\">0.082660</td><td style=\"vertical-align:top\">0.244208</td></tr><tr><td style=\"vertical-align:top\">age</td><td style=\"vertical-align:top\">-0.366370</td><td style=\"vertical-align:top\">-0.050199</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">-0.190747</td><td style=\"vertical-align:top\">-0.130872</td><td style=\"vertical-align:top\">0.171521</td></tr><tr><td style=\"vertical-align:top\">sibsp</td><td style=\"vertical-align:top\">0.060832</td><td style=\"vertical-align:top\">-0.027825</td><td style=\"vertical-align:top\">-0.190747</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">0.373587</td><td style=\"vertical-align:top\">0.160224</td></tr><tr><td style=\"vertical-align:top\">parch</td><td style=\"vertical-align:top\">0.018322</td><td style=\"vertical-align:top\">0.082660</td><td style=\"vertical-align:top\">-0.130872</td><td style=\"vertical-align:top\">0.373587</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">0.221522</td></tr><tr><td style=\"vertical-align:top\">fare</td><td style=\"vertical-align:top\">-0.558477</td><td style=\"vertical-align:top\">0.244208</td><td style=\"vertical-align:top\">0.171521</td><td style=\"vertical-align:top\">0.160224</td><td style=\"vertical-align:top\">0.221522</td><td style=\"vertical-align:top\">1.000000</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870903\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"column\",\"pclass\",\"survived\",\"age\",\"sibsp\",\"parch\",\"fare\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"}],\"nrow\":6,\"ncol\":7},\"kotlin_dataframe\":[{\"column\":\"pclass\",\"pclass\":1.0,\"survived\":-0.31246936264968,\"age\":-0.36637035869802936,\"sibsp\":0.06083200757490747,\"parch\":0.018322202009786036,\"fare\":-0.5584773475043957},{\"column\":\"survived\",\"pclass\":-0.31246936264968,\"survived\":1.0,\"age\":-0.050198983636982906,\"sibsp\":-0.02782511923058273,\"parch\":0.0826595703861011,\"fare\":0.24420775279437662},{\"column\":\"age\",\"pclass\":-0.36637035869802936,\"survived\":-0.050198983636982906,\"age\":1.0,\"sibsp\":-0.19074715633383899,\"parch\":-0.1308719630307398,\"fare\":0.17152056539956614},{\"column\":\"sibsp\",\"pclass\":0.06083200757490747,\"survived\":-0.02782511923058273,\"age\":-0.19074715633383899,\"sibsp\":1.0,\"parch\":0.3735871906264913,\"fare\":0.16022419622116035},{\"column\":\"parch\",\"pclass\":0.018322202009786036,\"survived\":0.0826595703861011,\"age\":-0.1308719630307398,\"sibsp\":0.3735871906264913,\"parch\":1.0,\"fare\":0.2215218879995723},{\"column\":\"fare\",\"pclass\":-0.5584773475043957,\"survived\":0.24420775279437662,\"age\":0.17152056539956614,\"sibsp\":0.16022419622116035,\"parch\":0.2215218879995723,\"fare\":1.0}]}"
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 8
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:16:42.151986Z",
"start_time": "2025-05-28T10:16:41.603918Z"
}
},
"source": [
"val correlations = df1\n",
" .corr { all() }.with { survived }\n",
" .sortBy { survived }\n",
"correlations"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_6()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_6\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870902&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 6, columnsCount = 2&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;column: String&bsol;&quot;&gt;column&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;pclass&quot;,&quot;age&quot;,&quot;sibsp&quot;,&quot;parch&quot;,&quot;fare&quot;,&quot;survived&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;survived: Double&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.312469&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.050199&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.027825&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.082660&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.244208&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870902, rootId: -536870902, totalRows: 6 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870902) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_6() {\n",
" let elem = document.getElementById(\"iframe_out_6\");\n",
" resize_iframe_out_6(elem);\n",
" setInterval(resize_iframe_out_6, 5000, elem);\n",
" }\n",
" function resize_iframe_out_6(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870901\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">column</th><th class=\"bottomBorder\" style=\"text-align:left\">survived</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">pclass</td><td style=\"vertical-align:top\">-0.312469</td></tr><tr><td style=\"vertical-align:top\">age</td><td style=\"vertical-align:top\">-0.050199</td></tr><tr><td style=\"vertical-align:top\">sibsp</td><td style=\"vertical-align:top\">-0.027825</td></tr><tr><td style=\"vertical-align:top\">parch</td><td style=\"vertical-align:top\">0.082660</td></tr><tr><td style=\"vertical-align:top\">fare</td><td style=\"vertical-align:top\">0.244208</td></tr><tr><td style=\"vertical-align:top\">survived</td><td style=\"vertical-align:top\">1.000000</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870901\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"column\",\"survived\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"}],\"nrow\":6,\"ncol\":2},\"kotlin_dataframe\":[{\"column\":\"pclass\",\"survived\":-0.31246936264968},{\"column\":\"age\",\"survived\":-0.050198983636982906},{\"column\":\"sibsp\",\"survived\":-0.02782511923058273},{\"column\":\"parch\",\"survived\":0.0826595703861011},{\"column\":\"fare\",\"survived\":0.24420775279437662},{\"column\":\"survived\",\"survived\":1.0}]}"
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 9
},
{
"cell_type": "markdown",
"metadata": {},
"source": "Great, at this moment we have five numerical features available for numerical analysis: **pclass, age, sibsp, parch, fare**."
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Analyze by pivoting features\n",
"To confirm some of our observations and assumptions, we can quickly analyze our feature correlations by pivoting features against each other. We can only do so at this stage for features which do not have any empty values. It also makes sense doing so only for features which are categorical (Sex), ordinal (Pclass) or discrete (SibSp, Parch) type.\n",
"\n",
"- **Pclass**: We observe a significant correlation (>0.5) between **Pclass**=1 and **Survived**.\n",
"\n",
"- **Sex**: We confirm the observation during problem definition that Sex=female had a very high survival rate at 74%.\n",
"\n",
"- **SibSp** and **Parch**: These features have zero correlation for the certain values. It may be best to derive a feature or a set of features from these individual features."
]
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:16:42.420112Z",
"start_time": "2025-05-28T10:16:42.157822Z"
}
},
"source": [
"df1.groupBy { pclass }.mean { survived }.sortBy { pclass }"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_7()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_7\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870900&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 3, columnsCount = 2&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;pclass: Int&bsol;&quot;&gt;pclass&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;survived: Double&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.619195&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.429603&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.255289&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870900, rootId: -536870900, totalRows: 3 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870900) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_7() {\n",
" let elem = document.getElementById(\"iframe_out_7\");\n",
" resize_iframe_out_7(elem);\n",
" setInterval(resize_iframe_out_7, 5000, elem);\n",
" }\n",
" function resize_iframe_out_7(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870899\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">pclass</th><th class=\"bottomBorder\" style=\"text-align:left\">survived</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0.619195</td></tr><tr><td style=\"vertical-align:top\">2</td><td style=\"vertical-align:top\">0.429603</td></tr><tr><td style=\"vertical-align:top\">3</td><td style=\"vertical-align:top\">0.255289</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870899\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"pclass\",\"survived\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"}],\"nrow\":3,\"ncol\":2},\"kotlin_dataframe\":[{\"pclass\":1,\"survived\":0.6191950464396285},{\"pclass\":2,\"survived\":0.4296028880866426},{\"pclass\":3,\"survived\":0.2552891396332863}]}"
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 10
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:16:42.626934Z",
"start_time": "2025-05-28T10:16:42.424738Z"
}
},
"source": [
"df1.groupBy { sex }.mean { survived }.sortBy { survived }"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_8()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_8\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870898&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 3, columnsCount = 2&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;sex: String&bsol;&quot;&gt;sex&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;male&quot;,&quot;female&quot;,&quot;other&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;survived: Double&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.190985&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.726882&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870898, rootId: -536870898, totalRows: 3 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870898) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_8() {\n",
" let elem = document.getElementById(\"iframe_out_8\");\n",
" resize_iframe_out_8(elem);\n",
" setInterval(resize_iframe_out_8, 5000, elem);\n",
" }\n",
" function resize_iframe_out_8(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870897\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">sex</th><th class=\"bottomBorder\" style=\"text-align:left\">survived</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">male</td><td style=\"vertical-align:top\">0.190985</td></tr><tr><td style=\"vertical-align:top\">female</td><td style=\"vertical-align:top\">0.726882</td></tr><tr><td style=\"vertical-align:top\">other</td><td style=\"vertical-align:top\">1.000000</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870897\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"sex\",\"survived\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"}],\"nrow\":3,\"ncol\":2},\"kotlin_dataframe\":[{\"sex\":\"male\",\"survived\":0.19098457888493475},{\"sex\":\"female\",\"survived\":0.7268817204301076},{\"sex\":\"other\",\"survived\":1.0}]}"
},
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 11
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:16:42.795186Z",
"start_time": "2025-05-28T10:16:42.630617Z"
}
},
"source": [
"df1.groupBy { sibsp }.mean { survived }.sortBy { sibsp }"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_9()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_9\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870896&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 7, columnsCount = 2&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;sibsp: Double&bsol;&quot;&gt;sibsp&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;4.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;5.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;8.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;survived: Double&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.346801&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.510972&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.452381&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.300000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.136364&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870896, rootId: -536870896, totalRows: 7 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870896) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_9() {\n",
" let elem = document.getElementById(\"iframe_out_9\");\n",
" resize_iframe_out_9(elem);\n",
" setInterval(resize_iframe_out_9, 5000, elem);\n",
" }\n",
" function resize_iframe_out_9(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870895\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">sibsp</th><th class=\"bottomBorder\" style=\"text-align:left\">survived</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">0.000000</td><td style=\"vertical-align:top\">0.346801</td></tr><tr><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">0.510972</td></tr><tr><td style=\"vertical-align:top\">2.000000</td><td style=\"vertical-align:top\">0.452381</td></tr><tr><td style=\"vertical-align:top\">3.000000</td><td style=\"vertical-align:top\">0.300000</td></tr><tr><td style=\"vertical-align:top\">4.000000</td><td style=\"vertical-align:top\">0.136364</td></tr><tr><td style=\"vertical-align:top\">5.000000</td><td style=\"vertical-align:top\">0.000000</td></tr><tr><td style=\"vertical-align:top\">8.000000</td><td style=\"vertical-align:top\">0.000000</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870895\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"sibsp\",\"survived\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"}],\"nrow\":7,\"ncol\":2},\"kotlin_dataframe\":[{\"sibsp\":0.0,\"survived\":0.3468013468013468},{\"sibsp\":1.0,\"survived\":0.5109717868338558},{\"sibsp\":2.0,\"survived\":0.4523809523809524},{\"sibsp\":3.0,\"survived\":0.3},{\"sibsp\":4.0,\"survived\":0.13636363636363635},{\"sibsp\":5.0,\"survived\":0.0},{\"sibsp\":8.0,\"survived\":0.0}]}"
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 12
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:16:42.953015Z",
"start_time": "2025-05-28T10:16:42.798529Z"
}
},
"source": [
"df1.groupBy { parch }.mean { survived }.sortBy { parch }"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_10()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_10\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870894&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 8, columnsCount = 2&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;parch: Double&bsol;&quot;&gt;parch&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;4.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;5.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;6.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;9.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;survived: Double&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.335329&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.588235&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.504425&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.625000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.166667&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.166667&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870894, rootId: -536870894, totalRows: 8 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870894) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_10() {\n",
" let elem = document.getElementById(\"iframe_out_10\");\n",
" resize_iframe_out_10(elem);\n",
" setInterval(resize_iframe_out_10, 5000, elem);\n",
" }\n",
" function resize_iframe_out_10(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870893\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">parch</th><th class=\"bottomBorder\" style=\"text-align:left\">survived</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">0.000000</td><td style=\"vertical-align:top\">0.335329</td></tr><tr><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">0.588235</td></tr><tr><td style=\"vertical-align:top\">2.000000</td><td style=\"vertical-align:top\">0.504425</td></tr><tr><td style=\"vertical-align:top\">3.000000</td><td style=\"vertical-align:top\">0.625000</td></tr><tr><td style=\"vertical-align:top\">4.000000</td><td style=\"vertical-align:top\">0.166667</td></tr><tr><td style=\"vertical-align:top\">5.000000</td><td style=\"vertical-align:top\">0.166667</td></tr><tr><td style=\"vertical-align:top\">6.000000</td><td style=\"vertical-align:top\">0.000000</td></tr><tr><td style=\"vertical-align:top\">9.000000</td><td style=\"vertical-align:top\">0.000000</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870893\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"parch\",\"survived\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"}],\"nrow\":8,\"ncol\":2},\"kotlin_dataframe\":[{\"parch\":0.0,\"survived\":0.33532934131736525},{\"parch\":1.0,\"survived\":0.5882352941176471},{\"parch\":2.0,\"survived\":0.504424778761062},{\"parch\":3.0,\"survived\":0.625},{\"parch\":4.0,\"survived\":0.16666666666666666},{\"parch\":5.0,\"survived\":0.16666666666666666},{\"parch\":6.0,\"survived\":0.0},{\"parch\":9.0,\"survived\":0.0}]}"
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 13
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Analyze the importance of the Age feature\n",
"\n",
"It's interesting to discover both **age** distributions: among the survived and perished passengers."
]
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:16:43.402600Z",
"start_time": "2025-05-28T10:16:42.955679Z"
}
},
"source": [
"val byAge = df1.valueCounts { age }.sortBy { age }\n",
"byAge"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_11()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_11\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870892&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;... showing only top 20 of 99 rows&lt;&sol;p&gt;&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 99, columnsCount = 2&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;age: Double&bsol;&quot;&gt;age&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.166700&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.333300&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.416700&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.666700&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.750000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.833300&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.916700&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;4.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;5.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;6.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;7.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;8.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;9.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;10.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;11.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;11.500000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;12.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;count: Int&bsol;&quot;&gt;count&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;10&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;12&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;7&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;10&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;5&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;6&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;4&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;6&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;10&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;4&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;4&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870892, rootId: -536870892, totalRows: 99 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870892) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_11() {\n",
" let elem = document.getElementById(\"iframe_out_11\");\n",
" resize_iframe_out_11(elem);\n",
" setInterval(resize_iframe_out_11, 5000, elem);\n",
" }\n",
" function resize_iframe_out_11(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870891\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">age</th><th class=\"bottomBorder\" style=\"text-align:left\">count</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">0.166700</td><td style=\"vertical-align:top\">1</td></tr><tr><td style=\"vertical-align:top\">0.333300</td><td style=\"vertical-align:top\">1</td></tr><tr><td style=\"vertical-align:top\">0.416700</td><td style=\"vertical-align:top\">1</td></tr><tr><td style=\"vertical-align:top\">0.666700</td><td style=\"vertical-align:top\">1</td></tr><tr><td style=\"vertical-align:top\">0.750000</td><td style=\"vertical-align:top\">3</td></tr><tr><td style=\"vertical-align:top\">0.833300</td><td style=\"vertical-align:top\">3</td></tr><tr><td style=\"vertical-align:top\">0.916700</td><td style=\"vertical-align:top\">2</td></tr><tr><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">10</td></tr><tr><td style=\"vertical-align:top\">2.000000</td><td style=\"vertical-align:top\">12</td></tr><tr><td style=\"vertical-align:top\">3.000000</td><td style=\"vertical-align:top\">7</td></tr><tr><td style=\"vertical-align:top\">4.000000</td><td style=\"vertical-align:top\">10</td></tr><tr><td style=\"vertical-align:top\">5.000000</td><td style=\"vertical-align:top\">5</td></tr><tr><td style=\"vertical-align:top\">6.000000</td><td style=\"vertical-align:top\">6</td></tr><tr><td style=\"vertical-align:top\">7.000000</td><td style=\"vertical-align:top\">4</td></tr><tr><td style=\"vertical-align:top\">8.000000</td><td style=\"vertical-align:top\">6</td></tr><tr><td style=\"vertical-align:top\">9.000000</td><td style=\"vertical-align:top\">10</td></tr><tr><td style=\"vertical-align:top\">10.000000</td><td style=\"vertical-align:top\">4</td></tr><tr><td style=\"vertical-align:top\">11.000000</td><td style=\"vertical-align:top\">4</td></tr><tr><td style=\"vertical-align:top\">11.500000</td><td style=\"vertical-align:top\">1</td></tr><tr><td style=\"vertical-align:top\">12.000000</td><td style=\"vertical-align:top\">3</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870891\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"age\",\"count\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}],\"nrow\":99,\"ncol\":2},\"kotlin_dataframe\":[{\"age\":0.1667,\"count\":1},{\"age\":0.3333,\"count\":1},{\"age\":0.4167,\"count\":1},{\"age\":0.6667,\"count\":1},{\"age\":0.75,\"count\":3},{\"age\":0.8333,\"count\":3},{\"age\":0.9167,\"count\":2},{\"age\":1.0,\"count\":10},{\"age\":2.0,\"count\":12},{\"age\":3.0,\"count\":7},{\"age\":4.0,\"count\":10},{\"age\":5.0,\"count\":5},{\"age\":6.0,\"count\":6},{\"age\":7.0,\"count\":4},{\"age\":8.0,\"count\":6},{\"age\":9.0,\"count\":10},{\"age\":10.0,\"count\":4},{\"age\":11.0,\"count\":4},{\"age\":11.5,\"count\":1},{\"age\":12.0,\"count\":3}]}"
},
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 14
},
{
"cell_type": "code",
"source": [
"// JetBrains color palette\n",
"object JetBrainsColors {\n",
" val lightOrange = Color.hex(\"#ffb59e\")\n",
" val orange = Color.hex(\"#ff6632\")\n",
" val lightGrey = Color.hex(\"#a6a6a6\")\n",
" val darkGrey = Color.hex(\"#4c4c4c\")\n",
"}"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2025-05-28T10:16:43.529164Z",
"start_time": "2025-05-28T10:16:43.406945Z"
}
},
"outputs": [],
"execution_count": 15
},
{
"cell_type": "code",
"source": [
"byAge.plot { \n",
" points {\n",
" x(age)\n",
" y(count)\n",
" size = 5.0\n",
" color = JetBrainsColors.lightGrey\n",
" }\n",
" layout { \n",
" size = 850 to 500\n",
" }\n",
"}"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2025-05-28T09:39:05.623936Z",
"start_time": "2025-05-28T09:39:02.983218Z"
}
},
"outputs": [
{
"data": {
"text/html": [
" <iframe src='about:blank' style='border:none !important;' width='850' height='500' srcdoc=\"&lt;html lang=&quot;en&quot;>\n",
" &lt;head>\n",
" &lt;meta charset=&quot;UTF-8&quot;>\n",
" &lt;style> html, body { margin: 0; overflow: hidden; } &lt;/style>\n",
" &lt;script type=&quot;text/javascript&quot; data-lets-plot-script=&quot;library&quot; src=&quot;https://cdn.jsdelivr.net/gh/JetBrains/lets-plot@v4.5.1/js-package/distr/lets-plot.min.js&quot;>&lt;/script>\n",
" &lt;/head>\n",
" &lt;body>\n",
" &lt;div id=&quot;JBCxdL&quot;>&lt;/div>\n",
" &lt;script type=&quot;text/javascript&quot; data-lets-plot-script=&quot;plot&quot;>\n",
" \n",
" (function() {\n",
" // ----------\n",
" \n",
" var plotSpec={\n",
"&quot;mapping&quot;:{\n",
"},\n",
"&quot;data&quot;:{\n",
"&quot;count&quot;:[1.0,1.0,1.0,1.0,3.0,3.0,2.0,10.0,12.0,7.0,10.0,5.0,6.0,4.0,6.0,10.0,4.0,4.0,1.0,3.0,5.0,8.0,2.0,6.0,19.0,20.0,39.0,3.0,29.0,23.0,1.0,41.0,43.0,1.0,26.0,1.0,47.0,1.0,34.0,30.0,1.0,30.0,32.0,3.0,30.0,263.0,40.0,2.0,23.0,24.0,4.0,21.0,16.0,2.0,23.0,31.0,2.0,9.0,14.0,1.0,20.0,18.0,3.0,11.0,18.0,9.0,10.0,21.0,2.0,6.0,14.0,14.0,9.0,15.0,8.0,6.0,4.0,10.0,8.0,1.0,4.0,5.0,6.0,3.0,7.0,1.0,5.0,5.0,4.0,5.0,3.0,1.0,1.0,2.0,1.0,2.0,1.0,1.0,1.0],\n",
"&quot;age&quot;:[0.1667,0.3333,0.4167,0.6667,0.75,0.8333,0.9167,1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0,11.0,11.5,12.0,13.0,14.0,14.5,15.0,16.0,17.0,18.0,18.5,19.0,20.0,20.5,21.0,22.0,22.5,23.0,23.5,24.0,24.5,25.0,26.0,26.5,27.0,28.0,28.5,29.0,29.8811345124283,30.0,30.5,31.0,32.0,32.5,33.0,34.0,34.5,35.0,36.0,36.5,37.0,38.0,38.5,39.0,40.0,40.5,41.0,42.0,43.0,44.0,45.0,45.5,46.0,47.0,48.0,49.0,50.0,51.0,52.0,53.0,54.0,55.0,55.5,56.0,57.0,58.0,59.0,60.0,60.5,61.0,62.0,63.0,64.0,65.0,66.0,67.0,70.0,70.5,71.0,74.0,76.0,80.0]\n",
"},\n",
"&quot;ggsize&quot;:{\n",
"&quot;width&quot;:850.0,\n",
"&quot;height&quot;:500.0\n",
"},\n",
"&quot;kind&quot;:&quot;plot&quot;,\n",
"&quot;scales&quot;:[{\n",
"&quot;aesthetic&quot;:&quot;x&quot;,\n",
"&quot;limits&quot;:[null,null]\n",
"},{\n",
"&quot;aesthetic&quot;:&quot;y&quot;,\n",
"&quot;limits&quot;:[null,null]\n",
"}],\n",
"&quot;layers&quot;:[{\n",
"&quot;mapping&quot;:{\n",
"&quot;x&quot;:&quot;age&quot;,\n",
"&quot;y&quot;:&quot;count&quot;\n",
"},\n",
"&quot;stat&quot;:&quot;identity&quot;,\n",
"&quot;size&quot;:5.0,\n",
"&quot;color&quot;:&quot;#a6a6a6&quot;,\n",
"&quot;sampling&quot;:&quot;none&quot;,\n",
"&quot;inherit_aes&quot;:false,\n",
"&quot;position&quot;:&quot;identity&quot;,\n",
"&quot;geom&quot;:&quot;point&quot;,\n",
"&quot;data&quot;:{\n",
"}\n",
"}],\n",
"&quot;data_meta&quot;:{\n",
"&quot;series_annotations&quot;:[{\n",
"&quot;type&quot;:&quot;float&quot;,\n",
"&quot;column&quot;:&quot;age&quot;\n",
"},{\n",
"&quot;type&quot;:&quot;int&quot;,\n",
"&quot;column&quot;:&quot;count&quot;\n",
"}]\n",
"},\n",
"&quot;spec_id&quot;:&quot;2&quot;\n",
"};\n",
" var containerDiv = document.getElementById(&quot;JBCxdL&quot;);\n",
" \n",
" var toolbar = null;\n",
" var plotContainer = containerDiv; \n",
" \n",
" var options = {\n",
" sizing: {\n",
" width_mode: &quot;fixed&quot;,\n",
" height_mode: &quot;fixed&quot;,\n",
" width: 850.0,\n",
" height: 500.0\n",
" }\n",
" };\n",
" var fig = LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer, options);\n",
" if (toolbar) {\n",
" toolbar.bind(fig);\n",
" }\n",
" \n",
" // ----------\n",
" })();\n",
" \n",
" &lt;/script>\n",
" &lt;/body>\n",
"&lt;/html>\"></iframe> <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" display=\"block\" class=\"plt-container\" id=0e085812-06a4-4306-8669-176ec686262c width=\"100%\" height=\"100%\" style=\"max-width: 850.0px; max-height: 500.0px;\" viewBox=\"0 0 850.0 500.0\" preserveAspectRatio=\"xMinYMin meet\">\n",
" <style type=\"text/css\">\n",
" .plt-container {\n",
" font-family: Lucida Grande, sans-serif;\n",
" user-select: none;\n",
" -webkit-user-select: none;\n",
" -moz-user-select: none;\n",
" -ms-user-select: none;\n",
"}\n",
"text {\n",
" text-rendering: optimizeLegibility;\n",
"}\n",
"#pDXrFMR .plot-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 16.0px;\n",
"\n",
"}\n",
"#pDXrFMR .plot-subtitle {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pDXrFMR .plot-caption {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pDXrFMR .hyperlink-element {\n",
"fill: #118ed8;\n",
"font-weight: normal;\n",
" font-style: normal;\n",
"}\n",
"#pDXrFMR .legend-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pDXrFMR .legend-item {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pDXrFMR .axis-title-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pDXrFMR .axis-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#d1hcPSU .axis-tooltip-text-x {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pDXrFMR .axis-title-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pDXrFMR .axis-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#d1hcPSU .axis-tooltip-text-y {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pDXrFMR .facet-strip-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pDXrFMR .facet-strip-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#d1hcPSU .tooltip-text {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#d1hcPSU .tooltip-title {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#d1hcPSU .tooltip-label {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"\n",
" </style>\n",
" <g id=\"pDXrFMR\">\n",
" <path fill-rule=\"evenodd\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" d=\"M0.0 0.0 L0.0 500.0 L850.0 500.0 L850.0 0.0 Z\">\n",
" </path>\n",
" <g transform=\"translate(29.5 6.5 ) \">\n",
" <g>\n",
" <g transform=\"translate(29.941816366404606 0.0 ) \">\n",
" <g>\n",
" <line x1=\"34.15065131014564\" y1=\"0.0\" x2=\"34.15065131014564\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"123.43421680720417\" y1=\"0.0\" x2=\"123.43421680720417\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"212.71778230426267\" y1=\"0.0\" x2=\"212.71778230426267\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"302.0013478013212\" y1=\"0.0\" x2=\"302.0013478013212\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"391.2849132983797\" y1=\"0.0\" x2=\"391.2849132983797\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"480.5684787954382\" y1=\"0.0\" x2=\"480.5684787954382\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"569.8520442924968\" y1=\"0.0\" x2=\"569.8520442924968\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"659.1356097895552\" y1=\"0.0\" x2=\"659.1356097895552\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"748.4191752866138\" y1=\"0.0\" x2=\"748.4191752866138\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(29.941816366404606 0.0 ) \">\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"422.4847328244275\" x2=\"784.0581836335954\" y2=\"422.4847328244275\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"345.9753643303262\" x2=\"784.0581836335954\" y2=\"345.9753643303262\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"269.4659958362249\" x2=\"784.0581836335954\" y2=\"269.4659958362249\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"192.9566273421236\" x2=\"784.0581836335954\" y2=\"192.9566273421236\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"116.44725884802227\" x2=\"784.0581836335954\" y2=\"116.44725884802227\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"39.93789035392098\" x2=\"784.0581836335954\" y2=\"39.93789035392098\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g clip-path=\"url(#cStqxqK)\" clip-bounds-jfx=\"[rect (29.941816366404606, 0.0), (784.0581836335954, 441.0)]\">\n",
" <g transform=\"translate(29.941816366404606 0.0 ) \">\n",
" <g>\n",
" <g>\n",
" <g>\n",
" <g >\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"35.639008346981605\" cy=\"420.9545454545455\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"37.1264725481626\" cy=\"420.9545454545455\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"37.87109748440807\" cy=\"420.9545454545455\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"40.10318662183453\" cy=\"420.9545454545455\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"40.84691872242503\" cy=\"417.8941707147814\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"41.59065082301553\" cy=\"417.8941707147814\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"42.335275759260995\" cy=\"419.4243580846635\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"43.079007859851494\" cy=\"407.18285912560725\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"52.00736440955734\" cy=\"404.1224843858432\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"60.93572095926319\" cy=\"411.77342123525335\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"69.86407750896905\" cy=\"407.18285912560725\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"78.7924340586749\" cy=\"414.8337959750174\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"87.72079060838075\" cy=\"413.30360860513537\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"96.6491471580866\" cy=\"416.3639833448994\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"105.57750370779246\" cy=\"413.30360860513537\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"114.50586025749831\" cy=\"407.18285912560725\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"123.43421680720417\" cy=\"416.3639833448994\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"132.36257335691002\" cy=\"416.3639833448994\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"136.82675163176293\" cy=\"420.9545454545455\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"141.29092990661584\" cy=\"417.8941707147814\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"150.2192864563217\" cy=\"414.8337959750174\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"159.14764300602755\" cy=\"410.2432338653713\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"163.6118212808805\" cy=\"419.4243580846635\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"168.0759995557334\" cy=\"413.30360860513537\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"177.00435610543926\" cy=\"393.411172796669\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"185.9327126551451\" cy=\"391.880985426787\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"194.86106920485096\" cy=\"362.8074253990285\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"199.32524747970388\" cy=\"417.8941707147814\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"203.78942575455682\" cy=\"378.10929909784875\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"212.71778230426267\" cy=\"387.2904233171409\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"217.18196057911558\" cy=\"420.9545454545455\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"221.64613885396852\" cy=\"359.74705065926446\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"230.57449540367438\" cy=\"356.6866759195004\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"235.0386736785273\" cy=\"420.9545454545455\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"239.50285195338023\" cy=\"382.69986120749485\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"243.96703022823314\" cy=\"420.9545454545455\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"248.43120850308605\" cy=\"350.56592643997226\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"252.895386777939\" cy=\"420.9545454545455\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"257.35956505279194\" cy=\"370.4583622484386\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"266.28792160249776\" cy=\"376.57911172796673\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"270.7520998773507\" cy=\"420.9545454545455\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"275.21627815220364\" cy=\"376.57911172796673\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"284.14463470190947\" cy=\"373.5187369882027\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"288.6088129767624\" cy=\"417.8941707147814\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"293.07299125161535\" cy=\"376.57911172796673\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"300.9400743468264\" cy=\"20.045454545454675\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"302.0013478013212\" cy=\"361.2772380291465\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"306.4655260761741\" cy=\"419.4243580846635\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"310.92970435102706\" cy=\"387.2904233171409\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"319.8580609007329\" cy=\"385.7602359472589\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"324.3222391755858\" cy=\"416.3639833448994\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"328.7864174504387\" cy=\"390.350798056905\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"337.7147740001446\" cy=\"398.0017349063151\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"342.1789522749975\" cy=\"419.4243580846635\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"346.6431305498504\" cy=\"387.2904233171409\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"355.5714870995563\" cy=\"375.0489243580847\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"360.03566537440923\" cy=\"419.4243580846635\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"364.4998436492621\" cy=\"408.71304649548927\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"373.428200198968\" cy=\"401.06210964607914\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"377.89237847382094\" cy=\"420.9545454545455\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"382.3565567486738\" cy=\"391.880985426787\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"391.2849132983797\" cy=\"394.941360166551\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"395.7490915732326\" cy=\"417.8941707147814\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"400.21326984808553\" cy=\"405.65267175572524\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"409.1416263977914\" cy=\"394.941360166551\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"418.06998294749724\" cy=\"408.71304649548927\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"426.9983394972031\" cy=\"407.18285912560725\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"435.92669604690894\" cy=\"390.350798056905\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"440.3908743217619\" cy=\"419.4243580846635\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"444.8550525966148\" cy=\"413.30360860513537\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"453.78340914632065\" cy=\"401.06210964607914\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"462.7117656960265\" cy=\"401.06210964607914\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"471.64012224573236\" cy=\"408.71304649548927\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"480.5684787954382\" cy=\"399.5319222761971\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"489.49683534514406\" cy=\"410.2432338653713\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"498.4251918948499\" cy=\"413.30360860513537\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"507.35354844455577\" cy=\"416.3639833448994\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"516.2819049942616\" cy=\"407.18285912560725\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"525.2102615439675\" cy=\"410.2432338653713\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"529.6744398188205\" cy=\"420.9545454545455\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"534.1386180936734\" cy=\"416.3639833448994\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"543.0669746433792\" cy=\"414.8337959750174\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"551.9953311930851\" cy=\"413.30360860513537\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"560.9236877427909\" cy=\"417.8941707147814\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"569.8520442924968\" cy=\"411.77342123525335\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"574.3162225673497\" cy=\"420.9545454545455\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"578.7804008422027\" cy=\"414.8337959750174\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"587.7087573919085\" cy=\"414.8337959750174\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"596.6371139416143\" cy=\"416.3639833448994\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"605.5654704913202\" cy=\"414.8337959750174\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"614.4938270410261\" cy=\"417.8941707147814\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"623.4221835907318\" cy=\"420.9545454545455\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"632.3505401404377\" cy=\"420.9545454545455\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"659.1356097895552\" cy=\"419.4243580846635\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"663.5997880644082\" cy=\"420.9545454545455\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"668.0639663392611\" cy=\"419.4243580846635\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"694.8490359883787\" cy=\"420.9545454545455\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"712.7057490877904\" cy=\"420.9545454545455\" r=\"5.5\" />\n",
" <circle fill=\"#a6a6a6\" stroke=\"#a6a6a6\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"748.4191752866138\" cy=\"420.9545454545455\" r=\"5.5\" />\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <defs>\n",
" <clipPath id=\"cStqxqK\">\n",
" <rect x=\"29.941816366404606\" y=\"0.0\" width=\"784.0581836335954\" height=\"441.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" </g>\n",
" <g>\n",
" <g transform=\"translate(29.941816366404606 441.0 ) \">\n",
" <g transform=\"translate(34.15065131014564 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(123.43421680720417 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>10</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(212.71778230426267 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>20</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(302.0013478013212 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>30</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(391.2849132983797 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>40</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(480.5684787954382 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>50</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(569.8520442924968 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>60</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(659.1356097895552 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>70</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(748.4191752866138 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>80</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <line x1=\"0.0\" y1=\"0.0\" x2=\"784.0581836335954\" y2=\"0.0\" stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" </g>\n",
" <g transform=\"translate(29.941816366404606 0.0 ) \">\n",
" <g transform=\"translate(0.0 422.4847328244275 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>0</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 345.9753643303262 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>50</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 269.4659958362249 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>100</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 192.9566273421236 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>150</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 116.44725884802227 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>200</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 39.93789035392098 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>250</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(16.0 227.0 ) rotate(-90.0 ) \">\n",
" <text class=\"axis-title-y\" y=\"0.0\" text-anchor=\"middle\">\n",
" <tspan>count</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(451.4709081832023 493.0 ) \">\n",
" <text class=\"axis-title-x\" y=\"0.0\" text-anchor=\"middle\">\n",
" <tspan>age</tspan>\n",
" </text>\n",
" </g>\n",
" <path fill=\"rgb(0,0,0)\" fill-opacity=\"0.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" d=\"M0.0 0.0 L0.0 500.0 L850.0 500.0 L850.0 0.0 Z\" pointer-events=\"none\">\n",
" </path>\n",
" </g>\n",
" <g id=\"d1hcPSU\">\n",
" </g>\n",
"</svg>\n",
" <script>document.getElementById(\"0e085812-06a4-4306-8669-176ec686262c\").style.display = \"none\";</script>"
],
"application/plot+json": {
"output_type": "lets_plot_spec",
"output": {
"mapping": {},
"data": {
"count": [
1.0,
1.0,
1.0,
1.0,
3.0,
3.0,
2.0,
10.0,
12.0,
7.0,
10.0,
5.0,
6.0,
4.0,
6.0,
10.0,
4.0,
4.0,
1.0,
3.0,
5.0,
8.0,
2.0,
6.0,
19.0,
20.0,
39.0,
3.0,
29.0,
23.0,
1.0,
41.0,
43.0,
1.0,
26.0,
1.0,
47.0,
1.0,
34.0,
30.0,
1.0,
30.0,
32.0,
3.0,
30.0,
263.0,
40.0,
2.0,
23.0,
24.0,
4.0,
21.0,
16.0,
2.0,
23.0,
31.0,
2.0,
9.0,
14.0,
1.0,
20.0,
18.0,
3.0,
11.0,
18.0,
9.0,
10.0,
21.0,
2.0,
6.0,
14.0,
14.0,
9.0,
15.0,
8.0,
6.0,
4.0,
10.0,
8.0,
1.0,
4.0,
5.0,
6.0,
3.0,
7.0,
1.0,
5.0,
5.0,
4.0,
5.0,
3.0,
1.0,
1.0,
2.0,
1.0,
2.0,
1.0,
1.0,
1.0
],
"age": [
0.1667,
0.3333,
0.4167,
0.6667,
0.75,
0.8333,
0.9167,
1.0,
2.0,
3.0,
4.0,
5.0,
6.0,
7.0,
8.0,
9.0,
10.0,
11.0,
11.5,
12.0,
13.0,
14.0,
14.5,
15.0,
16.0,
17.0,
18.0,
18.5,
19.0,
20.0,
20.5,
21.0,
22.0,
22.5,
23.0,
23.5,
24.0,
24.5,
25.0,
26.0,
26.5,
27.0,
28.0,
28.5,
29.0,
29.8811345124283,
30.0,
30.5,
31.0,
32.0,
32.5,
33.0,
34.0,
34.5,
35.0,
36.0,
36.5,
37.0,
38.0,
38.5,
39.0,
40.0,
40.5,
41.0,
42.0,
43.0,
44.0,
45.0,
45.5,
46.0,
47.0,
48.0,
49.0,
50.0,
51.0,
52.0,
53.0,
54.0,
55.0,
55.5,
56.0,
57.0,
58.0,
59.0,
60.0,
60.5,
61.0,
62.0,
63.0,
64.0,
65.0,
66.0,
67.0,
70.0,
70.5,
71.0,
74.0,
76.0,
80.0
]
},
"ggsize": {
"width": 850.0,
"height": 500.0
},
"kind": "plot",
"scales": [
{
"aesthetic": "x",
"limits": [
null,
null
]
},
{
"aesthetic": "y",
"limits": [
null,
null
]
}
],
"layers": [
{
"mapping": {
"x": "age",
"y": "count"
},
"stat": "identity",
"size": 5.0,
"color": "#a6a6a6",
"sampling": "none",
"inherit_aes": false,
"position": "identity",
"geom": "point"
}
],
"data_meta": {
"series_annotations": [
{
"type": "float",
"column": "age"
},
{
"type": "int",
"column": "count"
}
]
}
},
"apply_color_scheme": true,
"swing_enabled": true
}
},
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 17
},
{
"cell_type": "code",
"source": [
"val age = df.select { age }.dropNulls().sortBy { age }"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2025-05-28T10:17:25.886932Z",
"start_time": "2025-05-28T10:17:25.626228Z"
}
},
"outputs": [],
"execution_count": 16
},
{
"cell_type": "code",
"source": [
"age.plot {\n",
" histogram(x = age, binsOption = BinsOption.byWidth(5.0)) {\n",
" fillColor = JetBrainsColors.orange\n",
" }\n",
" layout { \n",
" size = 850 to 500\n",
" }\n",
"}"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2025-05-28T10:17:28.073921Z",
"start_time": "2025-05-28T10:17:26.675537Z"
}
},
"outputs": [
{
"data": {
"text/html": [
" <iframe src='about:blank' style='border:none !important;' width='850' height='500' srcdoc=\"&lt;html lang=&quot;en&quot;>\n",
" &lt;head>\n",
" &lt;meta charset=&quot;UTF-8&quot;>\n",
" &lt;style> html, body { margin: 0; overflow: hidden; } &lt;/style>\n",
" &lt;script type=&quot;text/javascript&quot; data-lets-plot-script=&quot;library&quot; src=&quot;https://cdn.jsdelivr.net/gh/JetBrains/lets-plot@v4.5.1/js-package/distr/lets-plot.min.js&quot;>&lt;/script>\n",
" &lt;/head>\n",
" &lt;body>\n",
" &lt;div id=&quot;tr9rVk&quot;>&lt;/div>\n",
" &lt;script type=&quot;text/javascript&quot; data-lets-plot-script=&quot;plot&quot;>\n",
" \n",
" (function() {\n",
" // ----------\n",
" \n",
" var plotSpec={\n",
"&quot;mapping&quot;:{\n",
"},\n",
"&quot;data&quot;:{\n",
"},\n",
"&quot;ggsize&quot;:{\n",
"&quot;width&quot;:850.0,\n",
"&quot;height&quot;:500.0\n",
"},\n",
"&quot;kind&quot;:&quot;plot&quot;,\n",
"&quot;scales&quot;:[{\n",
"&quot;aesthetic&quot;:&quot;x&quot;,\n",
"&quot;name&quot;:&quot;age&quot;,\n",
"&quot;limits&quot;:[null,null]\n",
"},{\n",
"&quot;aesthetic&quot;:&quot;x&quot;,\n",
"&quot;limits&quot;:[null,null]\n",
"},{\n",
"&quot;aesthetic&quot;:&quot;y&quot;,\n",
"&quot;limits&quot;:[null,null]\n",
"}],\n",
"&quot;layers&quot;:[{\n",
"&quot;mapping&quot;:{\n",
"&quot;x&quot;:&quot;x&quot;,\n",
"&quot;y&quot;:&quot;count&quot;\n",
"},\n",
"&quot;stat&quot;:&quot;identity&quot;,\n",
"&quot;data&quot;:{\n",
"&quot;x&quot;:[2.5,7.5,12.5,17.5,22.5,27.5,32.5,37.5,42.5,47.5,52.5,57.5,62.5,67.5,72.5,77.5],\n",
"&quot;count&quot;:[51.0,31.0,27.0,116.0,184.0,160.0,132.0,100.0,69.0,66.0,43.0,27.0,27.0,5.0,6.0,2.0]\n",
"},\n",
"&quot;sampling&quot;:&quot;none&quot;,\n",
"&quot;inherit_aes&quot;:false,\n",
"&quot;position&quot;:&quot;identity&quot;,\n",
"&quot;geom&quot;:&quot;bar&quot;,\n",
"&quot;fill&quot;:&quot;#ff6632&quot;,\n",
"&quot;data_meta&quot;:{\n",
"&quot;series_annotations&quot;:[{\n",
"&quot;type&quot;:&quot;float&quot;,\n",
"&quot;column&quot;:&quot;x&quot;\n",
"},{\n",
"&quot;type&quot;:&quot;int&quot;,\n",
"&quot;column&quot;:&quot;count&quot;\n",
"}]\n",
"}\n",
"}],\n",
"&quot;spec_id&quot;:&quot;2&quot;\n",
"};\n",
" var containerDiv = document.getElementById(&quot;tr9rVk&quot;);\n",
" \n",
" var toolbar = null;\n",
" var plotContainer = containerDiv; \n",
" \n",
" var options = {\n",
" sizing: {\n",
" width_mode: &quot;fixed&quot;,\n",
" height_mode: &quot;fixed&quot;,\n",
" width: 850.0,\n",
" height: 500.0\n",
" }\n",
" };\n",
" var fig = LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer, options);\n",
" if (toolbar) {\n",
" toolbar.bind(fig);\n",
" }\n",
" \n",
" // ----------\n",
" })();\n",
" \n",
" &lt;/script>\n",
" &lt;/body>\n",
"&lt;/html>\"></iframe> <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" display=\"block\" class=\"plt-container\" id=ebefb1c2-ef17-432a-b8c1-5efb60015267 width=\"100%\" height=\"100%\" style=\"max-width: 850.0px; max-height: 500.0px;\" viewBox=\"0 0 850.0 500.0\" preserveAspectRatio=\"xMinYMin meet\">\n",
" <style type=\"text/css\">\n",
" .plt-container {\n",
" font-family: Lucida Grande, sans-serif;\n",
" user-select: none;\n",
" -webkit-user-select: none;\n",
" -moz-user-select: none;\n",
" -ms-user-select: none;\n",
"}\n",
"text {\n",
" text-rendering: optimizeLegibility;\n",
"}\n",
"#pThLDyp .plot-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 16.0px;\n",
"\n",
"}\n",
"#pThLDyp .plot-subtitle {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pThLDyp .plot-caption {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pThLDyp .hyperlink-element {\n",
"fill: #118ed8;\n",
"font-weight: normal;\n",
" font-style: normal;\n",
"}\n",
"#pThLDyp .legend-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pThLDyp .legend-item {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pThLDyp .axis-title-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pThLDyp .axis-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#d96vkxK .axis-tooltip-text-x {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pThLDyp .axis-title-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pThLDyp .axis-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#d96vkxK .axis-tooltip-text-y {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pThLDyp .facet-strip-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pThLDyp .facet-strip-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#d96vkxK .tooltip-text {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#d96vkxK .tooltip-title {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#d96vkxK .tooltip-label {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"\n",
" </style>\n",
" <g id=\"pThLDyp\">\n",
" <path fill-rule=\"evenodd\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" d=\"M0.0 0.0 L0.0 500.0 L850.0 500.0 L850.0 0.0 Z\">\n",
" </path>\n",
" <g transform=\"translate(29.5 6.5 ) \">\n",
" <g>\n",
" <g transform=\"translate(29.941816366404606 0.0 ) \">\n",
" <g>\n",
" <line x1=\"33.39756128113371\" y1=\"0.0\" x2=\"33.39756128113371\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"123.05544391504972\" y1=\"0.0\" x2=\"123.05544391504972\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"212.7133265489657\" y1=\"0.0\" x2=\"212.7133265489657\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"302.3712091828817\" y1=\"0.0\" x2=\"302.3712091828817\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"392.02909181679775\" y1=\"0.0\" x2=\"392.02909181679775\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"481.6869744507137\" y1=\"0.0\" x2=\"481.6869744507137\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"571.3448570846297\" y1=\"0.0\" x2=\"571.3448570846297\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"661.0027397185456\" y1=\"0.0\" x2=\"661.0027397185456\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"750.6606223524617\" y1=\"0.0\" x2=\"750.6606223524617\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(29.941816366404606 0.0 ) \">\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"441.0\" x2=\"784.0581836335954\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"395.3478260869565\" x2=\"784.0581836335954\" y2=\"395.3478260869565\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"349.69565217391306\" x2=\"784.0581836335954\" y2=\"349.69565217391306\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"304.04347826086956\" x2=\"784.0581836335954\" y2=\"304.04347826086956\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"258.3913043478261\" x2=\"784.0581836335954\" y2=\"258.3913043478261\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"212.73913043478262\" x2=\"784.0581836335954\" y2=\"212.73913043478262\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"167.08695652173913\" x2=\"784.0581836335954\" y2=\"167.08695652173913\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"121.43478260869568\" x2=\"784.0581836335954\" y2=\"121.43478260869568\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"75.78260869565219\" x2=\"784.0581836335954\" y2=\"75.78260869565219\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"30.13043478260869\" x2=\"784.0581836335954\" y2=\"30.13043478260869\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g clip-path=\"url(#cmeAWOj)\" clip-bounds-jfx=\"[rect (29.941816366404606, 0.0), (784.0581836335954, 441.0)]\">\n",
" <g transform=\"translate(29.941816366404606 0.0 ) \">\n",
" <g>\n",
" <g>\n",
" <rect x=\"708.0731281013516\" y=\"436.4347826086956\" height=\"4.5652173913043725\" width=\"40.34604718526214\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"663.2441867843936\" y=\"427.30434782608694\" height=\"13.69565217391306\" width=\"40.34604718526214\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"618.4152454674356\" y=\"429.5869565217391\" height=\"11.413043478260875\" width=\"40.34604718526214\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"573.5863041504775\" y=\"379.3695652173913\" height=\"61.63043478260869\" width=\"40.34604718526225\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"528.7573628335196\" y=\"379.3695652173913\" height=\"61.63043478260869\" width=\"40.34604718526225\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"483.9284215165616\" y=\"342.8478260869565\" height=\"98.1521739130435\" width=\"40.346047185262194\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"439.09948019960365\" y=\"290.3478260869565\" height=\"150.6521739130435\" width=\"40.346047185262194\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"394.2705388826456\" y=\"283.5\" height=\"157.5\" width=\"40.346047185262194\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"349.44159756568763\" y=\"212.73913043478262\" height=\"228.26086956521738\" width=\"40.346047185262194\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"304.61265624872965\" y=\"139.69565217391306\" height=\"301.30434782608694\" width=\"40.346047185262194\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"259.7837149317716\" y=\"75.78260869565219\" height=\"365.2173913043478\" width=\"40.346047185262194\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"214.9547736148136\" y=\"21.0\" height=\"420.0\" width=\"40.346047185262194\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"170.1258322978556\" y=\"176.2173913043478\" height=\"264.7826086956522\" width=\"40.34604718526222\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"125.29689098089762\" y=\"379.3695652173913\" height=\"61.63043478260869\" width=\"40.346047185262194\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"80.4679496639396\" y=\"370.2391304347826\" height=\"70.76086956521738\" width=\"40.346047185262194\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"35.63900834698161\" y=\"324.5869565217391\" height=\"116.41304347826087\" width=\"40.34604718526221\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <defs>\n",
" <clipPath id=\"cmeAWOj\">\n",
" <rect x=\"29.941816366404606\" y=\"0.0\" width=\"784.0581836335954\" height=\"441.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" </g>\n",
" <g>\n",
" <g transform=\"translate(29.941816366404606 441.0 ) \">\n",
" <g transform=\"translate(33.39756128113371 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(123.05544391504972 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>10</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(212.7133265489657 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>20</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(302.3712091828817 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>30</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(392.02909181679775 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>40</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(481.6869744507137 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>50</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(571.3448570846297 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>60</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(661.0027397185456 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>70</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(750.6606223524617 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>80</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <line x1=\"0.0\" y1=\"0.0\" x2=\"784.0581836335954\" y2=\"0.0\" stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" </g>\n",
" <g transform=\"translate(29.941816366404606 0.0 ) \">\n",
" <g transform=\"translate(0.0 441.0 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>0</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 395.3478260869565 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>20</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 349.69565217391306 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>40</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 304.04347826086956 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>60</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 258.3913043478261 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>80</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 212.73913043478262 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>100</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 167.08695652173913 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>120</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 121.43478260869568 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>140</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 75.78260869565219 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>160</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 30.13043478260869 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>180</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(16.0 227.0 ) rotate(-90.0 ) \">\n",
" <text class=\"axis-title-y\" y=\"0.0\" text-anchor=\"middle\">\n",
" <tspan>count</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(451.4709081832023 493.0 ) \">\n",
" <text class=\"axis-title-x\" y=\"0.0\" text-anchor=\"middle\">\n",
" <tspan>age</tspan>\n",
" </text>\n",
" </g>\n",
" <path fill=\"rgb(0,0,0)\" fill-opacity=\"0.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" d=\"M0.0 0.0 L0.0 500.0 L850.0 500.0 L850.0 0.0 Z\" pointer-events=\"none\">\n",
" </path>\n",
" </g>\n",
" <g id=\"d96vkxK\">\n",
" </g>\n",
"</svg>\n",
" <script>document.getElementById(\"ebefb1c2-ef17-432a-b8c1-5efb60015267\").style.display = \"none\";</script>"
],
"application/plot+json": {
"output_type": "lets_plot_spec",
"output": {
"mapping": {},
"data": {},
"ggsize": {
"width": 850.0,
"height": 500.0
},
"kind": "plot",
"scales": [
{
"aesthetic": "x",
"name": "age",
"limits": [
null,
null
]
},
{
"aesthetic": "x",
"limits": [
null,
null
]
},
{
"aesthetic": "y",
"limits": [
null,
null
]
}
],
"layers": [
{
"mapping": {
"x": "x",
"y": "count"
},
"stat": "identity",
"data": {
"x": [
2.5,
7.5,
12.5,
17.5,
22.5,
27.5,
32.5,
37.5,
42.5,
47.5,
52.5,
57.5,
62.5,
67.5,
72.5,
77.5
],
"count": [
51.0,
31.0,
27.0,
116.0,
184.0,
160.0,
132.0,
100.0,
69.0,
66.0,
43.0,
27.0,
27.0,
5.0,
6.0,
2.0
]
},
"sampling": "none",
"inherit_aes": false,
"position": "identity",
"geom": "bar",
"fill": "#ff6632",
"data_meta": {
"series_annotations": [
{
"type": "float",
"column": "x"
},
{
"type": "int",
"column": "count"
}
]
}
}
]
},
"apply_color_scheme": true,
"swing_enabled": true
}
},
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 17
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:18:16.355854Z",
"start_time": "2025-05-28T10:18:16.137889Z"
}
},
"source": [
"df1.groupBy { age }.pivotCounts { survived }.sortBy { age }"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_23()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_23\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870868&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;... showing only top 20 of 99 rows&lt;&sol;p&gt;&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 99, columnsCount = 2&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;age: Double&bsol;&quot;&gt;age&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.166700&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.333300&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.416700&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.666700&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.750000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.833300&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.916700&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;4.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;5.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;6.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;7.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;8.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;9.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;10.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;11.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;11.500000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;12.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;1: Int&bsol;&quot;&gt;1&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;7&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;4&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;5&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;7&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;4&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;4&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;4&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;0: Int&bsol;&quot;&gt;0&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;8&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;6&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;4&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;survived: DataRow&lt;*&gt;&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [1, 2], rightAlign: false, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: 1&bsol;n0: 0&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;0: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: 0&bsol;n0: 1&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;0: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: 1&bsol;n0: 0&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;0: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: 1&bsol;n0: 0&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;0: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: 2&bsol;n0: 1&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;0: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: 3&bsol;n0: 0&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;0: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: 2&bsol;n0: 0&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;0: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: 7&bsol;n0: 3&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;7&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;0: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: 4&bsol;n0: 8&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;4&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;0: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;8&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: 5&bsol;n0: 2&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;5&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;0: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: 7&bsol;n0: 3&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;7&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;0: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: 4&bsol;n0: 1&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;4&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;0: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: 3&bsol;n0: 3&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;0: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: 2&bsol;n0: 2&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;0: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: 4&bsol;n0: 2&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;4&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;0: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: 4&bsol;n0: 6&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;4&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;0: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;6&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: 0&bsol;n0: 4&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;0: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;4&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: 1&bsol;n0: 3&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;0: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: 0&bsol;n0: 1&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;0: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: 3&bsol;n0: 0&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;0: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870868, rootId: -536870868, totalRows: 99 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870868) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_23() {\n",
" let elem = document.getElementById(\"iframe_out_23\");\n",
" resize_iframe_out_23(elem);\n",
" setInterval(resize_iframe_out_23, 5000, elem);\n",
" }\n",
" function resize_iframe_out_23(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870867\"><thead><tr><th class=\"rightBorder\" style=\"text-align:left\">age</th><th class=\"rightBorder leftBorder\" style=\"text-align:left\">survived</th><th style=\"text-align:left\"></th></tr><tr><th class=\"bottomBorder rightBorder\" style=\"text-align:left\"></th><th class=\"bottomBorder rightBorder leftBorder\" style=\"text-align:left\">1</th><th class=\"bottomBorder\" style=\"text-align:left\">0</th></tr></thead><tbody><tr><td class=\"rightBorder\" style=\"vertical-align:top\">0.166700</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0</td></tr><tr><td class=\"rightBorder\" style=\"vertical-align:top\">0.333300</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">1</td></tr><tr><td class=\"rightBorder\" style=\"vertical-align:top\">0.416700</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0</td></tr><tr><td class=\"rightBorder\" style=\"vertical-align:top\">0.666700</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0</td></tr><tr><td class=\"rightBorder\" style=\"vertical-align:top\">0.750000</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">2</td><td style=\"vertical-align:top\">1</td></tr><tr><td class=\"rightBorder\" style=\"vertical-align:top\">0.833300</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">3</td><td style=\"vertical-align:top\">0</td></tr><tr><td class=\"rightBorder\" style=\"vertical-align:top\">0.916700</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">2</td><td style=\"vertical-align:top\">0</td></tr><tr><td class=\"rightBorder\" style=\"vertical-align:top\">1.000000</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">7</td><td style=\"vertical-align:top\">3</td></tr><tr><td class=\"rightBorder\" style=\"vertical-align:top\">2.000000</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">4</td><td style=\"vertical-align:top\">8</td></tr><tr><td class=\"rightBorder\" style=\"vertical-align:top\">3.000000</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">5</td><td style=\"vertical-align:top\">2</td></tr><tr><td class=\"rightBorder\" style=\"vertical-align:top\">4.000000</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">7</td><td style=\"vertical-align:top\">3</td></tr><tr><td class=\"rightBorder\" style=\"vertical-align:top\">5.000000</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">4</td><td style=\"vertical-align:top\">1</td></tr><tr><td class=\"rightBorder\" style=\"vertical-align:top\">6.000000</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">3</td><td style=\"vertical-align:top\">3</td></tr><tr><td class=\"rightBorder\" style=\"vertical-align:top\">7.000000</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">2</td><td style=\"vertical-align:top\">2</td></tr><tr><td class=\"rightBorder\" style=\"vertical-align:top\">8.000000</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">4</td><td style=\"vertical-align:top\">2</td></tr><tr><td class=\"rightBorder\" style=\"vertical-align:top\">9.000000</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">4</td><td style=\"vertical-align:top\">6</td></tr><tr><td class=\"rightBorder\" style=\"vertical-align:top\">10.000000</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">4</td></tr><tr><td class=\"rightBorder\" style=\"vertical-align:top\">11.000000</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">3</td></tr><tr><td class=\"rightBorder\" style=\"vertical-align:top\">11.500000</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">1</td></tr><tr><td class=\"rightBorder\" style=\"vertical-align:top\">12.000000</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">3</td><td style=\"vertical-align:top\">0</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870867\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"age\",\"survived\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ColumnGroup\"}],\"nrow\":99,\"ncol\":2},\"kotlin_dataframe\":[{\"age\":0.1667,\"survived\":{\"data\":{\"1\":1,\"0\":0},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"0\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}]}}},{\"age\":0.3333,\"survived\":{\"data\":{\"1\":0,\"0\":1},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"0\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}]}}},{\"age\":0.4167,\"survived\":{\"data\":{\"1\":1,\"0\":0},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"0\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}]}}},{\"age\":0.6667,\"survived\":{\"data\":{\"1\":1,\"0\":0},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"0\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}]}}},{\"age\":0.75,\"survived\":{\"data\":{\"1\":2,\"0\":1},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"0\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}]}}},{\"age\":0.8333,\"survived\":{\"data\":{\"1\":3,\"0\":0},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"0\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}]}}},{\"age\":0.9167,\"survived\":{\"data\":{\"1\":2,\"0\":0},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"0\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}]}}},{\"age\":1.0,\"survived\":{\"data\":{\"1\":7,\"0\":3},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"0\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}]}}},{\"age\":2.0,\"survived\":{\"data\":{\"1\":4,\"0\":8},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"0\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}]}}},{\"age\":3.0,\"survived\":{\"data\":{\"1\":5,\"0\":2},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"0\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}]}}},{\"age\":4.0,\"survived\":{\"data\":{\"1\":7,\"0\":3},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"0\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}]}}},{\"age\":5.0,\"survived\":{\"data\":{\"1\":4,\"0\":1},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"0\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}]}}},{\"age\":6.0,\"survived\":{\"data\":{\"1\":3,\"0\":3},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"0\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}]}}},{\"age\":7.0,\"survived\":{\"data\":{\"1\":2,\"0\":2},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"0\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}]}}},{\"age\":8.0,\"survived\":{\"data\":{\"1\":4,\"0\":2},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"0\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}]}}},{\"age\":9.0,\"survived\":{\"data\":{\"1\":4,\"0\":6},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"0\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}]}}},{\"age\":10.0,\"survived\":{\"data\":{\"1\":0,\"0\":4},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"0\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}]}}},{\"age\":11.0,\"survived\":{\"data\":{\"1\":1,\"0\":3},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"0\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}]}}},{\"age\":11.5,\"survived\":{\"data\":{\"1\":0,\"0\":1},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"0\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}]}}},{\"age\":12.0,\"survived\":{\"data\":{\"1\":3,\"0\":0},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"0\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}]}}}]}"
},
"execution_count": 18,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 18
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:19:32.161797Z",
"start_time": "2025-05-28T10:19:31.804724Z"
}
},
"source": [
"val survivedByAge = df1\n",
" .select { survived and age }\n",
" .sortBy { age }\n",
" .convert { survived }.with { if (it == 1) \"Survived\" else \"Died\" }\n",
"\n",
"survivedByAge"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_29()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_29\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870848&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;... showing only top 20 of 1309 rows&lt;&sol;p&gt;&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 1309, columnsCount = 2&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;survived: String&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;Survived&quot;,&quot;Died&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Died&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Died&quot;,&quot;Survived&quot;,&quot;Died&quot;,&quot;Survived&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;age: Double&bsol;&quot;&gt;age&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.166700&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.333300&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.416700&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.666700&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.750000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.750000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.750000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.833300&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.833300&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.833300&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.916700&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.916700&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870848, rootId: -536870848, totalRows: 1309 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870848) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_29() {\n",
" let elem = document.getElementById(\"iframe_out_29\");\n",
" resize_iframe_out_29(elem);\n",
" setInterval(resize_iframe_out_29, 5000, elem);\n",
" }\n",
" function resize_iframe_out_29(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870847\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">survived</th><th class=\"bottomBorder\" style=\"text-align:left\">age</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\">0.166700</td></tr><tr><td style=\"vertical-align:top\">Died</td><td style=\"vertical-align:top\">0.333300</td></tr><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\">0.416700</td></tr><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\">0.666700</td></tr><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\">0.750000</td></tr><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\">0.750000</td></tr><tr><td style=\"vertical-align:top\">Died</td><td style=\"vertical-align:top\">0.750000</td></tr><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\">0.833300</td></tr><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\">0.833300</td></tr><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\">0.833300</td></tr><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\">0.916700</td></tr><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\">0.916700</td></tr><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\">1.000000</td></tr><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\">1.000000</td></tr><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\">1.000000</td></tr><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\">1.000000</td></tr><tr><td style=\"vertical-align:top\">Died</td><td style=\"vertical-align:top\">1.000000</td></tr><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\">1.000000</td></tr><tr><td style=\"vertical-align:top\">Died</td><td style=\"vertical-align:top\">1.000000</td></tr><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\">1.000000</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870847\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"survived\",\"age\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"}],\"nrow\":1309,\"ncol\":2},\"kotlin_dataframe\":[{\"survived\":\"Survived\",\"age\":0.1667},{\"survived\":\"Died\",\"age\":0.3333},{\"survived\":\"Survived\",\"age\":0.4167},{\"survived\":\"Survived\",\"age\":0.6667},{\"survived\":\"Survived\",\"age\":0.75},{\"survived\":\"Survived\",\"age\":0.75},{\"survived\":\"Died\",\"age\":0.75},{\"survived\":\"Survived\",\"age\":0.8333},{\"survived\":\"Survived\",\"age\":0.8333},{\"survived\":\"Survived\",\"age\":0.8333},{\"survived\":\"Survived\",\"age\":0.9167},{\"survived\":\"Survived\",\"age\":0.9167},{\"survived\":\"Survived\",\"age\":1.0},{\"survived\":\"Survived\",\"age\":1.0},{\"survived\":\"Survived\",\"age\":1.0},{\"survived\":\"Survived\",\"age\":1.0},{\"survived\":\"Died\",\"age\":1.0},{\"survived\":\"Survived\",\"age\":1.0},{\"survived\":\"Died\",\"age\":1.0},{\"survived\":\"Survived\",\"age\":1.0}]}"
},
"execution_count": 23,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 23
},
{
"cell_type": "code",
"source": [
"survivedByAge.groupBy { survived }"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2025-05-28T10:19:37.007186Z",
"start_time": "2025-05-28T10:19:36.902859Z"
}
},
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_31()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_31\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870844&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;GroupBy&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;survived: String&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;Survived&quot;,&quot;Died&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;group: DataFrame&lt;*&gt;&bsol;&quot;&gt;group&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [{ frameId: -536870843, value: &quot;&lt;b&gt;DataFrame 500 x 2&lt;&sol;b&gt;&quot; },{ frameId: -536870842, value: &quot;&lt;b&gt;DataFrame 809 x 2&lt;&sol;b&gt;&quot; }] }, \n",
"], id: -536870844, rootId: -536870844, totalRows: 2 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;survived: String&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;age: Double&bsol;&quot;&gt;age&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.166700&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.416700&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.666700&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.750000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.750000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870843, rootId: -536870844, totalRows: 500 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;survived: String&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;age: Double&bsol;&quot;&gt;age&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.333300&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.750000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870842, rootId: -536870844, totalRows: 809 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870844) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_31() {\n",
" let elem = document.getElementById(\"iframe_out_31\");\n",
" resize_iframe_out_31(elem);\n",
" setInterval(resize_iframe_out_31, 5000, elem);\n",
" }\n",
" function resize_iframe_out_31(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870841\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">survived</th><th class=\"bottomBorder\" style=\"text-align:left\">group</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\"><details><summary>DataFrame [500 x 2]</summary><table class=\"dataframe\" id=\"static_df_-536870840\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">survived</th><th class=\"bottomBorder\" style=\"text-align:left\">age</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\">0.166700</td></tr><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\">0.416700</td></tr><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\">0.666700</td></tr><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\">0.750000</td></tr><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\">0.750000</td></tr></tbody></table><p>... showing only top 5 of 500 rows</p></details></td></tr><tr><td style=\"vertical-align:top\">Died</td><td style=\"vertical-align:top\"><details><summary>DataFrame [809 x 2]</summary><table class=\"dataframe\" id=\"static_df_-536870839\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">survived</th><th class=\"bottomBorder\" style=\"text-align:left\">age</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">Died</td><td style=\"vertical-align:top\">0.333300</td></tr><tr><td style=\"vertical-align:top\">Died</td><td style=\"vertical-align:top\">0.750000</td></tr><tr><td style=\"vertical-align:top\">Died</td><td style=\"vertical-align:top\">1.000000</td></tr><tr><td style=\"vertical-align:top\">Died</td><td style=\"vertical-align:top\">1.000000</td></tr><tr><td style=\"vertical-align:top\">Died</td><td style=\"vertical-align:top\">1.000000</td></tr></tbody></table><p>... showing only top 5 of 809 rows</p></details></td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870841\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"survived\",\"group\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"FrameColumn\"}],\"nrow\":2,\"ncol\":2},\"kotlin_dataframe\":[{\"survived\":\"Survived\",\"group\":{\"data\":[{\"survived\":\"Survived\",\"age\":0.1667},{\"survived\":\"Survived\",\"age\":0.4167},{\"survived\":\"Survived\",\"age\":0.6667},{\"survived\":\"Survived\",\"age\":0.75},{\"survived\":\"Survived\",\"age\":0.75},{\"survived\":\"Survived\",\"age\":0.8333},{\"survived\":\"Survived\",\"age\":0.8333},{\"survived\":\"Survived\",\"age\":0.8333},{\"survived\":\"Survived\",\"age\":0.9167},{\"survived\":\"Survived\",\"age\":0.9167},{\"survived\":\"Survived\",\"age\":1.0},{\"survived\":\"Survived\",\"age\":1.0},{\"survived\":\"Survived\",\"age\":1.0},{\"survived\":\"Survived\",\"age\":1.0},{\"survived\":\"Survived\",\"age\":1.0},{\"survived\":\"Survived\",\"age\":1.0},{\"survived\":\"Survived\",\"age\":1.0},{\"survived\":\"Survived\",\"age\":2.0},{\"survived\":\"Survived\",\"age\":2.0},{\"survived\":\"Survived\",\"age\":2.0}],\"metadata\":{\"kind\":\"FrameColumn\",\"columns\":[\"survived\",\"age\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"}],\"ncol\":2,\"nrow\":500}}},{\"survived\":\"Died\",\"group\":{\"data\":[{\"survived\":\"Died\",\"age\":0.3333},{\"survived\":\"Died\",\"age\":0.75},{\"survived\":\"Died\",\"age\":1.0},{\"survived\":\"Died\",\"age\":1.0},{\"survived\":\"Died\",\"age\":1.0},{\"survived\":\"Died\",\"age\":2.0},{\"survived\":\"Died\",\"age\":2.0},{\"survived\":\"Died\",\"age\":2.0},{\"survived\":\"Died\",\"age\":2.0},{\"survived\":\"Died\",\"age\":2.0},{\"survived\":\"Died\",\"age\":2.0},{\"survived\":\"Died\",\"age\":2.0},{\"survived\":\"Died\",\"age\":2.0},{\"survived\":\"Died\",\"age\":3.0},{\"survived\":\"Died\",\"age\":3.0},{\"survived\":\"Died\",\"age\":4.0},{\"survived\":\"Died\",\"age\":4.0},{\"survived\":\"Died\",\"age\":4.0},{\"survived\":\"Died\",\"age\":5.0},{\"survived\":\"Died\",\"age\":6.0}],\"metadata\":{\"kind\":\"FrameColumn\",\"columns\":[\"survived\",\"age\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"}],\"ncol\":2,\"nrow\":809}}}]}"
},
"execution_count": 24,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 24
},
{
"cell_type": "code",
"source": [
"survivedByAge.groupBy { survived }.plot {\n",
" histogram(x = age, binsOption = BinsOption.byWidth(5.0)) {\n",
" fillColor(key.survived) {\n",
" scale = categorical(\n",
" \"Survived\" to JetBrainsColors.orange,\n",
" \"Died\" to JetBrainsColors.darkGrey,\n",
" )\n",
" }\n",
" alpha = 0.7\n",
" position = Position.dodge()\n",
" }\n",
" layout {\n",
" size = 850 to 500\n",
" }\n",
"}"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2025-05-28T10:19:42.226196Z",
"start_time": "2025-05-28T10:19:41.738286Z"
}
},
"outputs": [
{
"data": {
"text/html": [
" <iframe src='about:blank' style='border:none !important;' width='850' height='500' srcdoc=\"&lt;html lang=&quot;en&quot;>\n",
" &lt;head>\n",
" &lt;meta charset=&quot;UTF-8&quot;>\n",
" &lt;style> html, body { margin: 0; overflow: hidden; } &lt;/style>\n",
" &lt;script type=&quot;text/javascript&quot; data-lets-plot-script=&quot;library&quot; src=&quot;https://cdn.jsdelivr.net/gh/JetBrains/lets-plot@v4.5.1/js-package/distr/lets-plot.min.js&quot;>&lt;/script>\n",
" &lt;/head>\n",
" &lt;body>\n",
" &lt;div id=&quot;PwOAUr&quot;>&lt;/div>\n",
" &lt;script type=&quot;text/javascript&quot; data-lets-plot-script=&quot;plot&quot;>\n",
" \n",
" (function() {\n",
" // ----------\n",
" \n",
" var plotSpec={\n",
"&quot;mapping&quot;:{\n",
"},\n",
"&quot;data&quot;:{\n",
"},\n",
"&quot;ggsize&quot;:{\n",
"&quot;width&quot;:850.0,\n",
"&quot;height&quot;:500.0\n",
"},\n",
"&quot;kind&quot;:&quot;plot&quot;,\n",
"&quot;scales&quot;:[{\n",
"&quot;aesthetic&quot;:&quot;x&quot;,\n",
"&quot;name&quot;:&quot;age&quot;,\n",
"&quot;limits&quot;:[null,null]\n",
"},{\n",
"&quot;aesthetic&quot;:&quot;x&quot;,\n",
"&quot;limits&quot;:[null,null]\n",
"},{\n",
"&quot;aesthetic&quot;:&quot;y&quot;,\n",
"&quot;limits&quot;:[null,null]\n",
"},{\n",
"&quot;aesthetic&quot;:&quot;fill&quot;,\n",
"&quot;values&quot;:[&quot;#ff6632&quot;,&quot;#4c4c4c&quot;],\n",
"&quot;limits&quot;:[&quot;Survived&quot;,&quot;Died&quot;]\n",
"}],\n",
"&quot;layers&quot;:[{\n",
"&quot;mapping&quot;:{\n",
"&quot;x&quot;:&quot;x&quot;,\n",
"&quot;y&quot;:&quot;count&quot;,\n",
"&quot;fill&quot;:&quot;survived&quot;,\n",
"&quot;group&quot;:&quot;&amp;merged_groups&quot;\n",
"},\n",
"&quot;stat&quot;:&quot;identity&quot;,\n",
"&quot;data&quot;:{\n",
"&quot;&amp;merged_groups&quot;:[&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;],\n",
"&quot;count&quot;:[33.0,17.0,11.0,45.0,71.0,129.0,54.0,44.0,20.0,32.0,21.0,11.0,10.0,0.0,0.0,2.0,18.0,14.0,16.0,71.0,113.0,294.0,78.0,56.0,49.0,34.0,22.0,16.0,17.0,5.0,6.0,0.0],\n",
"&quot;x&quot;:[2.5,7.5,12.5,17.5,22.5,27.5,32.5,37.5,42.5,47.5,52.5,57.5,62.5,67.5,72.5,77.5,2.5,7.5,12.5,17.5,22.5,27.5,32.5,37.5,42.5,47.5,52.5,57.5,62.5,67.5,72.5,77.5],\n",
"&quot;survived&quot;:[&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;]\n",
"},\n",
"&quot;sampling&quot;:&quot;none&quot;,\n",
"&quot;alpha&quot;:0.7,\n",
"&quot;inherit_aes&quot;:false,\n",
"&quot;position&quot;:&quot;dodge&quot;,\n",
"&quot;geom&quot;:&quot;bar&quot;,\n",
"&quot;data_meta&quot;:{\n",
"&quot;series_annotations&quot;:[{\n",
"&quot;type&quot;:&quot;str&quot;,\n",
"&quot;column&quot;:&quot;survived&quot;\n",
"},{\n",
"&quot;type&quot;:&quot;float&quot;,\n",
"&quot;column&quot;:&quot;x&quot;\n",
"},{\n",
"&quot;type&quot;:&quot;int&quot;,\n",
"&quot;column&quot;:&quot;count&quot;\n",
"},{\n",
"&quot;type&quot;:&quot;str&quot;,\n",
"&quot;column&quot;:&quot;&amp;merged_groups&quot;\n",
"}]\n",
"}\n",
"}],\n",
"&quot;data_meta&quot;:{\n",
"&quot;series_annotations&quot;:[{\n",
"&quot;type&quot;:&quot;str&quot;,\n",
"&quot;column&quot;:&quot;survived&quot;\n",
"},{\n",
"&quot;type&quot;:&quot;str&quot;,\n",
"&quot;column&quot;:&quot;&amp;merged_groups&quot;\n",
"}]\n",
"},\n",
"&quot;spec_id&quot;:&quot;11&quot;\n",
"};\n",
" var containerDiv = document.getElementById(&quot;PwOAUr&quot;);\n",
" \n",
" var toolbar = null;\n",
" var plotContainer = containerDiv; \n",
" \n",
" var options = {\n",
" sizing: {\n",
" width_mode: &quot;fixed&quot;,\n",
" height_mode: &quot;fixed&quot;,\n",
" width: 850.0,\n",
" height: 500.0\n",
" }\n",
" };\n",
" var fig = LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer, options);\n",
" if (toolbar) {\n",
" toolbar.bind(fig);\n",
" }\n",
" \n",
" // ----------\n",
" })();\n",
" \n",
" &lt;/script>\n",
" &lt;/body>\n",
"&lt;/html>\"></iframe> <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" display=\"block\" class=\"plt-container\" id=fda64bb4-58ed-4a13-9b63-dff73c2c87f4 width=\"100%\" height=\"100%\" style=\"max-width: 850.0px; max-height: 500.0px;\" viewBox=\"0 0 850.0 500.0\" preserveAspectRatio=\"xMinYMin meet\">\n",
" <style type=\"text/css\">\n",
" .plt-container {\n",
" font-family: Lucida Grande, sans-serif;\n",
" user-select: none;\n",
" -webkit-user-select: none;\n",
" -moz-user-select: none;\n",
" -ms-user-select: none;\n",
"}\n",
"text {\n",
" text-rendering: optimizeLegibility;\n",
"}\n",
"#piX4i6f .plot-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 16.0px;\n",
"\n",
"}\n",
"#piX4i6f .plot-subtitle {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#piX4i6f .plot-caption {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#piX4i6f .hyperlink-element {\n",
"fill: #118ed8;\n",
"font-weight: normal;\n",
" font-style: normal;\n",
"}\n",
"#piX4i6f .legend-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#piX4i6f .legend-item {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#piX4i6f .axis-title-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#piX4i6f .axis-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dm2YtlK .axis-tooltip-text-x {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#piX4i6f .axis-title-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#piX4i6f .axis-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dm2YtlK .axis-tooltip-text-y {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#piX4i6f .facet-strip-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#piX4i6f .facet-strip-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dm2YtlK .tooltip-text {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dm2YtlK .tooltip-title {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dm2YtlK .tooltip-label {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"\n",
" </style>\n",
" <g id=\"piX4i6f\">\n",
" <path fill-rule=\"evenodd\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" d=\"M0.0 0.0 L0.0 500.0 L850.0 500.0 L850.0 0.0 Z\">\n",
" </path>\n",
" <g transform=\"translate(29.5 6.5 ) \">\n",
" <g>\n",
" <g transform=\"translate(29.941816366404606 0.0 ) \">\n",
" <g>\n",
" <line x1=\"28.717628973981515\" y1=\"0.0\" x2=\"28.717628973981515\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"105.8119349444017\" y1=\"0.0\" x2=\"105.8119349444017\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"182.90624091482186\" y1=\"0.0\" x2=\"182.90624091482186\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"260.00054688524204\" y1=\"0.0\" x2=\"260.00054688524204\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"337.0948528556622\" y1=\"0.0\" x2=\"337.0948528556622\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"414.1891588260824\" y1=\"0.0\" x2=\"414.1891588260824\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"491.2834647965026\" y1=\"0.0\" x2=\"491.2834647965026\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"568.3777707669227\" y1=\"0.0\" x2=\"568.3777707669227\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"645.472076737343\" y1=\"0.0\" x2=\"645.472076737343\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(29.941816366404606 0.0 ) \">\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"441.0\" x2=\"674.1897057113243\" y2=\"441.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"369.57142857142856\" x2=\"674.1897057113243\" y2=\"369.57142857142856\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"298.1428571428571\" x2=\"674.1897057113243\" y2=\"298.1428571428571\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"226.71428571428572\" x2=\"674.1897057113243\" y2=\"226.71428571428572\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"155.28571428571428\" x2=\"674.1897057113243\" y2=\"155.28571428571428\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"83.85714285714283\" x2=\"674.1897057113243\" y2=\"83.85714285714283\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"12.428571428571445\" x2=\"674.1897057113243\" y2=\"12.428571428571445\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g clip-path=\"url(#cnWqHca)\" clip-bounds-jfx=\"[rect (29.941816366404606, 0.0), (674.1897057113243, 441.0)]\">\n",
" <g transform=\"translate(29.941816366404606 0.0 ) \">\n",
" <g>\n",
" <g>\n",
" <rect x=\"626.1985002447379\" y=\"441.0\" height=\"0.1\" width=\"17.346218843344445\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(76,76,76)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"587.6513472595278\" y=\"432.42857142857144\" height=\"8.571428571428555\" width=\"17.34621884334456\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(76,76,76)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"549.1041942743177\" y=\"433.85714285714283\" height=\"7.142857142857167\" width=\"17.34621884334456\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(76,76,76)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"510.55704128910764\" y=\"416.7142857142857\" height=\"24.285714285714278\" width=\"17.346218843344502\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(76,76,76)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"472.0098883038975\" y=\"418.14285714285717\" height=\"22.857142857142833\" width=\"17.34621884334456\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(76,76,76)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"433.46273531868746\" y=\"409.57142857142856\" height=\"31.428571428571445\" width=\"17.346218843344502\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(76,76,76)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"394.91558233347735\" y=\"392.42857142857144\" height=\"48.571428571428555\" width=\"17.34621884334456\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(76,76,76)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"356.3684293482673\" y=\"371.0\" height=\"70.0\" width=\"17.346218843344502\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(76,76,76)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"317.82127636305717\" y=\"361.0\" height=\"80.0\" width=\"17.34621884334456\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(76,76,76)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"279.2741233778471\" y=\"329.57142857142856\" height=\"111.42857142857144\" width=\"17.346218843344502\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(76,76,76)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"240.72697039263699\" y=\"21.0\" height=\"420.0\" width=\"17.34621884334456\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(76,76,76)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"202.1798174074269\" y=\"279.57142857142856\" height=\"161.42857142857144\" width=\"17.34621884334456\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(76,76,76)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"163.6326644222168\" y=\"339.57142857142856\" height=\"101.42857142857144\" width=\"17.34621884334456\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(76,76,76)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"125.08551143700674\" y=\"418.14285714285717\" height=\"22.857142857142833\" width=\"17.34621884334453\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(76,76,76)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"86.53835845179665\" y=\"421.0\" height=\"20.0\" width=\"17.346218843344545\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(76,76,76)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"47.991205466586564\" y=\"415.2857142857143\" height=\"25.714285714285722\" width=\"17.34621884334453\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(76,76,76)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"608.8522814013934\" y=\"438.14285714285717\" height=\"2.857142857142833\" width=\"17.34621884334456\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"570.3051284161833\" y=\"441.0\" height=\"0.1\" width=\"17.34621884334456\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"531.7579754309731\" y=\"441.0\" height=\"0.1\" width=\"17.34621884334456\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"493.2108224457631\" y=\"426.7142857142857\" height=\"14.285714285714278\" width=\"17.34621884334456\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"454.66366946055297\" y=\"425.2857142857143\" height=\"15.714285714285722\" width=\"17.34621884334456\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"416.1165164753429\" y=\"411.0\" height=\"30.0\" width=\"17.34621884334456\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"377.5693634901328\" y=\"395.2857142857143\" height=\"45.71428571428572\" width=\"17.34621884334456\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"339.0222105049227\" y=\"412.42857142857144\" height=\"28.571428571428555\" width=\"17.34621884334456\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"300.4750575197126\" y=\"378.1428571428571\" height=\"62.85714285714289\" width=\"17.34621884334456\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"261.92790453450255\" y=\"363.8571428571429\" height=\"77.14285714285711\" width=\"17.34621884334456\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"223.38075154929246\" y=\"256.7142857142857\" height=\"184.28571428571428\" width=\"17.34621884334453\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"184.83359856408237\" y=\"339.57142857142856\" height=\"101.42857142857144\" width=\"17.34621884334453\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"146.28644557887228\" y=\"376.7142857142857\" height=\"64.28571428571428\" width=\"17.34621884334453\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"107.7392925936622\" y=\"425.2857142857143\" height=\"15.714285714285722\" width=\"17.346218843344545\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"69.19213960845211\" y=\"416.7142857142857\" height=\"24.285714285714278\" width=\"17.346218843344545\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"30.64498662324202\" y=\"393.85714285714283\" height=\"47.14285714285717\" width=\"17.346218843344545\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"0.7\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <defs>\n",
" <clipPath id=\"cnWqHca\">\n",
" <rect x=\"29.941816366404606\" y=\"0.0\" width=\"674.1897057113243\" height=\"441.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" </g>\n",
" <g>\n",
" <g transform=\"translate(29.941816366404606 441.0 ) \">\n",
" <g transform=\"translate(28.717628973981515 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(105.8119349444017 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>10</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(182.90624091482186 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>20</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(260.00054688524204 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>30</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(337.0948528556622 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>40</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(414.1891588260824 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>50</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(491.2834647965026 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>60</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(568.3777707669227 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>70</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(645.472076737343 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>80</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <line x1=\"0.0\" y1=\"0.0\" x2=\"674.1897057113243\" y2=\"0.0\" stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" </g>\n",
" <g transform=\"translate(29.941816366404606 0.0 ) \">\n",
" <g transform=\"translate(0.0 441.0 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>0</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 369.57142857142856 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>50</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 298.1428571428571 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>100</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 226.71428571428572 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>150</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 155.28571428571428 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>200</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 83.85714285714283 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>250</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 12.428571428571445 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>300</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(16.0 227.0 ) rotate(-90.0 ) \">\n",
" <text class=\"axis-title-y\" y=\"0.0\" text-anchor=\"middle\">\n",
" <tspan>count</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(396.5366692220668 493.0 ) \">\n",
" <text class=\"axis-title-x\" y=\"0.0\" text-anchor=\"middle\">\n",
" <tspan>age</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(745.131522077729 187.75 ) \">\n",
" <rect x=\"0.0\" y=\"0.0\" height=\"78.5\" width=\"104.8684779222711\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <g transform=\"translate(5.0 5.0 ) \">\n",
" <g transform=\"translate(0.0 12.0 ) \">\n",
" <text class=\"legend-title\" y=\"0.0\">\n",
" <tspan>survived</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(0.0 22.5 ) \">\n",
" <g transform=\"\">\n",
" <g>\n",
" <g transform=\"translate(1.0 1.0 ) \">\n",
" <g>\n",
" <rect x=\"0.0\" y=\"0.0\" height=\"21.0\" width=\"21.0\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"1.0\" stroke-width=\"1.5\">\n",
" </rect>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(26.9903027277341 16.05 ) \">\n",
" <text class=\"legend-item\" y=\"0.0\">\n",
" <tspan>Survived</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 23.0 ) \">\n",
" <g>\n",
" <g transform=\"translate(1.0 1.0 ) \">\n",
" <g>\n",
" <rect x=\"0.0\" y=\"0.0\" height=\"21.0\" width=\"21.0\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\" fill=\"rgb(76,76,76)\" fill-opacity=\"1.0\" stroke-width=\"1.5\">\n",
" </rect>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(26.9903027277341 16.05 ) \">\n",
" <text class=\"legend-item\" y=\"0.0\">\n",
" <tspan>Died</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <path fill=\"rgb(0,0,0)\" fill-opacity=\"0.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" d=\"M0.0 0.0 L0.0 500.0 L850.0 500.0 L850.0 0.0 Z\" pointer-events=\"none\">\n",
" </path>\n",
" </g>\n",
" <g id=\"dm2YtlK\">\n",
" </g>\n",
"</svg>\n",
" <script>document.getElementById(\"fda64bb4-58ed-4a13-9b63-dff73c2c87f4\").style.display = \"none\";</script>"
],
"application/plot+json": {
"output_type": "lets_plot_spec",
"output": {
"mapping": {},
"data": {
"&merged_groups": [
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died"
],
"survived": [
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died"
]
},
"ggsize": {
"width": 850.0,
"height": 500.0
},
"kind": "plot",
"scales": [
{
"aesthetic": "x",
"name": "age",
"limits": [
null,
null
]
},
{
"aesthetic": "x",
"limits": [
null,
null
]
},
{
"aesthetic": "y",
"limits": [
null,
null
]
},
{
"aesthetic": "fill",
"values": [
"#ff6632",
"#4c4c4c"
],
"limits": [
"Survived",
"Died"
]
}
],
"layers": [
{
"mapping": {
"x": "x",
"y": "count",
"fill": "survived",
"group": "&merged_groups"
},
"stat": "identity",
"data": {
"&merged_groups": [
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died"
],
"x": [
2.5,
7.5,
12.5,
17.5,
22.5,
27.5,
32.5,
37.5,
42.5,
47.5,
52.5,
57.5,
62.5,
67.5,
72.5,
77.5,
2.5,
7.5,
12.5,
17.5,
22.5,
27.5,
32.5,
37.5,
42.5,
47.5,
52.5,
57.5,
62.5,
67.5,
72.5,
77.5
],
"count": [
33.0,
17.0,
11.0,
45.0,
71.0,
129.0,
54.0,
44.0,
20.0,
32.0,
21.0,
11.0,
10.0,
0.0,
0.0,
2.0,
18.0,
14.0,
16.0,
71.0,
113.0,
294.0,
78.0,
56.0,
49.0,
34.0,
22.0,
16.0,
17.0,
5.0,
6.0,
0.0
],
"survived": [
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died"
]
},
"sampling": "none",
"alpha": 0.7,
"inherit_aes": false,
"position": "dodge",
"geom": "bar",
"data_meta": {
"series_annotations": [
{
"type": "str",
"column": "survived"
},
{
"type": "float",
"column": "x"
},
{
"type": "int",
"column": "count"
},
{
"type": "str",
"column": "&merged_groups"
}
]
}
}
],
"data_meta": {
"series_annotations": [
{
"type": "str",
"column": "survived"
},
{
"type": "str",
"column": "&merged_groups"
}
]
}
},
"apply_color_scheme": true,
"swing_enabled": true
}
},
"execution_count": 25,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 25
},
{
"cell_type": "code",
"source": [
"// Density plot\n",
"survivedByAge.groupBy { survived }.plot {\n",
" densityPlot(x = age) {\n",
" fillColor = Color.GREY\n",
" alpha = 0.3\n",
" borderLine {\n",
" color(key.survived) {\n",
" scale = categorical(\n",
" \"Survived\" to JetBrainsColors.orange,\n",
" \"Died\" to JetBrainsColors.darkGrey,\n",
" )\n",
" }\n",
" }\n",
" }\n",
" layout {\n",
" size = 850 to 250\n",
" }\n",
"}"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2025-05-28T10:19:45.886242Z",
"start_time": "2025-05-28T10:19:45.132559Z"
}
},
"outputs": [
{
"data": {
"text/html": [
" <iframe src='about:blank' style='border:none !important;' width='850' height='250' srcdoc=\"&lt;html lang=&quot;en&quot;>\n",
" &lt;head>\n",
" &lt;meta charset=&quot;UTF-8&quot;>\n",
" &lt;style> html, body { margin: 0; overflow: hidden; } &lt;/style>\n",
" &lt;script type=&quot;text/javascript&quot; data-lets-plot-script=&quot;library&quot; src=&quot;https://cdn.jsdelivr.net/gh/JetBrains/lets-plot@v4.5.1/js-package/distr/lets-plot.min.js&quot;>&lt;/script>\n",
" &lt;/head>\n",
" &lt;body>\n",
" &lt;div id=&quot;VjaNYh&quot;>&lt;/div>\n",
" &lt;script type=&quot;text/javascript&quot; data-lets-plot-script=&quot;plot&quot;>\n",
" \n",
" (function() {\n",
" // ----------\n",
" \n",
" var plotSpec={\n",
"&quot;mapping&quot;:{\n",
"},\n",
"&quot;data&quot;:{\n",
"},\n",
"&quot;ggsize&quot;:{\n",
"&quot;width&quot;:850.0,\n",
"&quot;height&quot;:250.0\n",
"},\n",
"&quot;kind&quot;:&quot;plot&quot;,\n",
"&quot;scales&quot;:[{\n",
"&quot;aesthetic&quot;:&quot;x&quot;,\n",
"&quot;name&quot;:&quot;age&quot;,\n",
"&quot;limits&quot;:[null,null]\n",
"},{\n",
"&quot;aesthetic&quot;:&quot;x&quot;,\n",
"&quot;limits&quot;:[null,null]\n",
"},{\n",
"&quot;aesthetic&quot;:&quot;y&quot;,\n",
"&quot;limits&quot;:[null,null]\n",
"},{\n",
"&quot;aesthetic&quot;:&quot;fill&quot;,\n",
"&quot;discrete&quot;:true\n",
"},{\n",
"&quot;aesthetic&quot;:&quot;color&quot;,\n",
"&quot;values&quot;:[&quot;#ff6632&quot;,&quot;#4c4c4c&quot;],\n",
"&quot;limits&quot;:[&quot;Survived&quot;,&quot;Died&quot;]\n",
"}],\n",
"&quot;layers&quot;:[{\n",
"&quot;mapping&quot;:{\n",
"&quot;x&quot;:&quot;x&quot;,\n",
"&quot;y&quot;:&quot;density&quot;,\n",
"&quot;fill&quot;:&quot;survived&quot;,\n",
"&quot;color&quot;:&quot;survived&quot;,\n",
"&quot;group&quot;:&quot;&amp;merged_groups&quot;\n",
"},\n",
"&quot;stat&quot;:&quot;identity&quot;,\n",
"&quot;data&quot;:{\n",
"&quot;&amp;merged_groups&quot;:[&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;],\n",
"&quot;density&quot;:[0.007603449598253003,0.007839311760184098,0.008065122210652623,0.008279887668496458,0.008482691057487888,0.008672700036986326,0.008849174394524628,0.009011472200546811,0.009159054650167217,0.009291489542623441,0.009408453375387026,0.009509732056020143,0.00959522026019833,0.009664919488273522,0.009718934894802203,0.00975747098516982,0.009780826290433088,0.009789387145510154,0.009783620706694524,0.009764067352064188,0.009731332612713885,0.009686078783931913,0.009629016363644119,0.009560895460867686,0.009482497309835443,0.009394626016171106,0.009298100650353837,0.009193747791050746,0.009082394607066828,0.008964862552007881,0.008841961730592957,0.008714485980202288,0.008583208695977824,0.008448879412869075,0.008312221143653807,0.008173928458372887,0.00803466627795961,0.007895069343282015,0.007755742310462583,0.007617260414313915,0.007480170634106047,0.007344993289742324,0.007212223991808518,0.007082335865910689,0.006955781970247384,0.0068329978254636475,0.006714403977472512,0.0066004085170665045,0.006491409484677464,0.006387797094495143,0.006289955719169018,0.0061982655843525174,0.006113104131210684,0.006034847014498778,0.005963868713708321,0.0059005427448385675,0.005845241470333389,0.005798335514401441,0.005760192800072672,0.005731177232720742,0.005711647062219298,0.005701952962227557,0.005702435870200304,0.005713424635511115,0.00573523352551142,0.005768159640441861,0.005812480287911493,0.0058684503662465365,0.00593629980353222,0.006016231095767982,0.0061084169834313955,0.006212998301086015,0.006330082029696965,0.006459739576228963,0.006602005300095898,0.006756875301294032,0.00692430648071211,0.0071042158793068015,0.007296480299626792,0.007500936210605247,0.007717379934606831,0.007945568114377174,0.008185218456703655,0.008436010749146404,0.008697588146001644,0.008969558719537753,0.00925149727235514,0.009542947406270224,0.009843423842275432,0.010152414984733618,0.010469385720924278,0.010793780444299423,0.011125026286304981,0.011462536537402765,0.011805714233053818,0.012153955875030927,0.012506655252684153,0.01286320732289012,0.013223012101661042,0.013585478515005509,0.013950028151964772,0.01431609885906845,0.0146831481130585,0.015050656107926793,0.015418128493283027,0.01578509870406988,0.01615112982674939,0.01651581595441163,0.01687878299274578,0.0172396888904117,0.017598223280847588,0.017954106537705097,0.018307088262559827,0.018656945240902837,0.019003478920187274,0.01934651248136131,0.01968588759230367,0.020021460947294907,0.02035310071054009,0.020680682993231843,0.02100408850216467,0.02132319950303581,0.021637897242863288,0.021948059973113387,0.022253561707947556,0.022554271840347993,0.0228500557227964,0.023140776298774604,0.023426296846904747,0.023706484871415336,0.023981217141313127,0.024250385846759603,0.02451390580539729,0.024771722614539464,0.025023821608058664,0.025270237440442905,0.02551106408573334,0.025746465006899276,0.025976683222609567,0.026202050974263095,0.02642299867742139,0.02664006282931548,0.026853892538582343,0.02706525434550085,0.02727503501127002,0.02748424197362665,0.027694001193641897,0.027905552154801214,0.028120239820388533,0.028339503408332713,0.02856486190347115,0.028797896294814575,0.02904022859883757,0.029293497807736282,0.029559332982583977,0.029839323793614644,0.030134988891621684,0.030447742573676925,0.030778860280906848,0.03112944353370254,0.031500384968356505,0.031892334186473394,0.03230566516269781,0.03274044597536654,0.03319641162719926,0.033672940707726536,0.03416903661504288,0.034683314001234075,0.035213991033585544,0.03575888797304403,0.036315432463600465,0.03688067180304666,0.03745129232919425,0.0380236459090281,0.03859378336457084,0.03915749451222387,0.039710354335874755,0.04024777466233878,0.0407650605648623,0.04125747059063954,0.041720279795479306,0.04214884447653051,0.042538667425439304,0.04288546248207291,0.04318521715482137,0.04343425208866562,0.043629276206899915,0.04376743642611207,0.043846360945307715,0.04386419523667216,0.04381963001436841,0.043711920625264175,0.043540897487239695,0.04330696739203422,0.0430111056853426,0.0426548395319112,0.042240222662490536,0.041769802177696214,0.04124657814644704,0.04067395687952865,0.0400556988784116,0.03939586255291493,0.03869874486663006,0.0379688201050199,0.03721067796752177,0.03642896216235467,0.03562831063249602,0.03481329846560542,0.033988384442383765,0.033157862060374244,0.032325815737391454,0.03149608275474146,0.030672221349501847,0.029857485211670313,0.0290548044901884,0.028266773265664596,0.027495643310650165,0.02674332383372249,0.02601138679402167,0.025301077280279513,0.024613328374218216,0.02394877986324923,0.02330780013184463,0.022690510544395734,0.02209681163385595,0.02152641042859923,0.020978848282913982,0.02045352862228668,0.01994974407080603,0.019466702492186832,0.019003551545592953,0.018559401430201183,0.018133345565977156,0.017724479030302158,0.017331914639016326,0.01695479662452245,0.01659231192153555,0.016243699121904487,0.015908255203029152,0.015585340169442198,0.015274379774089505,0.014974866504983041,0.014686359034696133,0.014408480335294195,0.014140914660565844,0.013883403591752018,0.013635741333339287,0.01339776943286046,0.013169371083982216,0.012950465156333364,0.012741000079327132,0.012540947691324996,0.012350297150414238,0.012169048989229188,0.01199720938388984,0.01183478469639206,0.011681776340657635,0.011538176014834095,0.01140396133613835,0.011279091909298636,0.0111635058551781,0.01105711682213836,0.010959811498823935,0.01087144764302936,0.0107918526369214,0.010720822573950588,0.01065812187719441,0.010603483442599234,0.010556609293677346,0.010517171726791097,0.010484814918404278,0.010459156957849096,0.01043979226152643,0.010426294317342379,0.010418218701900156,0.010415106307823087,0.010416486714859449,0.010421881636346705,0.010430808372366455,0.01044278320260424,0.010457324655562955,0.010473956596306913,0.010492211082188847,0.010511630944811261,0.010531772066500692,0.010552205330468198,0.010572518235192828,0.010592316174958859,0.010611223399465656,0.01062888367557249,0.010644960683138211,0.010659138184211119,0.01067112001022222,0.010680629915124668,0.010687411343473853,0.010691227161229982,0.01069185939365083,0.010689109009193785,0.01068279578111335,0.010672758249755148,0.010658853798807945,0.010640958848424836,0.01061896915763887,0.010592800218358645,0.010562387713904893,0.010527688006978227,0.010488678615512009,0.010445358630380142,0.010397749026627066,0.010345892819905812,0.01028985502218702,0.010229722355475122,0.01016560268907531,0.01009762417464178,0.010025934063468595,0.00995069720185547,0.009872094212436925,0.009790319381618633,0.009705578285220532,0.009618085195591897,0.009528060323378008,0.009435726955365905,0.009341308556067053,0.009245025904633853,0.009147094340168443,0.009047721187376003,0.008947103430847689,0.008845425700135577,0.008742858619400683,0.008639557565059552,0.008535661862878897,0.008431294442790033,0.008326561955772865,0.008221555342980379,0.008116350833331124,0.008011011332574775,0.007905588154786931,0.0078001230367882365,0.00769465036745904,0.007589199557617602,0.007483797472247546,0.00737847084551377,0.007273248600220427,0.007168163997077009,0.007063256545198314,0.006958573613444085,0.006854171692205845,0.006750117266716301,0.006646487275489749,0.006543369140672008,0.006440860370439944,0.006339067746704194,0.006238106123809524,0.006138096875304356,0.006039166035818151,0.0059414421933535345,0.005845054193644518,0.005750128722501491,0.005656787834180453,0.005565146493777615,0.005475310199534209,0.00538737274688268,0.005301414190278889,0.005217499051602557,0.005135674815469902,0.00505597074251577,0.0049783970219136366,0.004902944274458668,0.004829583407780188,0.004758265815992401,0.004688923907619817,0.004621471938188196,0.004555807117644434,0.004491810957897619,0.0044293508223363955,0.004368281637196868,0.004308447724094003,0.004249684713800282,0.004191821503323186,0.004134682221324598,0.004078088170736741,0.004021859721836981,0.003965818133814373,0.003909787287760783,0.0038535953188255432,0.0037970761397819867,0.0037400708522892017,0.003682429045551002,0.0036240099847711983,0.003564683693716089,0.003504331936800863,0.0034428491064351476,0.0033801430209530097,0.003316135637406488,0.0032507636819395372,0.003183979198523972,0.003115750014686943,0.0030460601206533594,0.0029749099562279896,0.0029023165979025394,0.0028283138372285107,0.002752952140560903,0.0026762984799373166,0.00259843602516778,0.0025194636881962435,0.0024394955124459067,0.0023586599021354652,0.002277098689381093,0.002194966040182245,0.002112427204009193,0.0020296571155322424,0.0019468388609122323,0.0018641620248604504,0.0017818209382287659,0.0017000128490692757,0.0016189360427850126,0.001538787939074198,0.0014597631947682415,0.0013820518423219184,0.001305837493602159,0.0012312956377379606,0.0011585920601617668,0.0010878814076418007,0.0010193059211470199,9.529943548932429E-4,8.890610959963795E-4,8.276054949250565E-4,7.687114125239009E-4,7.124469848969296E-4,6.588646030215655E-4,6.080010997258506E-4,5.598781327114834E-4,5.145027487388296E-4,4.718681109861509E-4,4.3195436901677196E-4,3.947296487793495E-4,3.601511386546962E-4,3.281662467560602E-4,2.98713804480758E-4,2.7172529167567564E-4,2.4712605968034104E-4,2.2483652989993962E-4,2.0477334737877855E-4,1.868504710265469E-4,1.7098018462542093E-4,1.5707401544258194E-4,1.4504355011674117E-4,1.3480114040654147E-4,1.2626049431393289E-4,1.193371509613402E-4,1.139488403476733E-4,1.100157316806959E-4,1.0746057633440958E-4,1.0620875356923659E-4,1.0618822894645773E-4,1.0732943684036045E-4,1.09565099583052E-4,1.1282999655624765E-4,1.1706069696711815E-4,1.2219527011404495E-4,1.2817298667230274E-4,1.3493402392541934E-4,1.4241918695775472E-4,1.5056965663642237E-4,1.5932677378050188E-4,1.686318672822708E-4,1.7842613215341354E-4,1.886505615671334E-4,1.9924593500623798E-4,2.10152862660925E-4,2.2131188430231467E-4,2.3266361904220715E-4,2.4414896072768964E-4,2.5570931225889275E-4,2.672868509023079E-4,2.7882481573686353E-4,2.902678077437635E-4,3.015620927529918E-4,3.126558974985427E-4,3.234996894089588E-4,3.34046431456877E-4,3.442518043870456E-4,3.540743899022862E-4,3.634758098669618E-4,3.7242081823537387E-4,3.80877344168965E-4,3.8881648660762914E-4,3.9621246234072805E-4,4.030425113165905E-4,4.092867644718484E-4,4.1492808069561876E-4,4.1995186061716093E-4,4.2434584567773614E-4,4.280999113876095E-4,4.312058637597098E-4,4.3365724764799266E-4,4.3544917511041296E-4,4.365781809863268E-4,4.370421116615511E-4,4.368400515379037E-4,4.3597229008399455E-4,4.3444033058378975E-4,4.3224693988714414E-4,4.2939623667226097E-4,4.258938140231844E-4,4.21746890571692E-4,4.16964483111818E-4,4.1155759251767815E-4,4.0553939402167917E-4,3.9892542246898737E-4,3.917337430706528E-4,3.8398509843388983E-4,0.0029062365005629266,0.0030391527847771164,0.0031668919744145974,0.0032884746340393466,0.003402980967753703,0.003509567479581156,0.00360748243833365,0.003696079747824025,0.0037748308626115857,0.0038433344411442833,0.0039013234904063266,0.003948669826752153,0.003985385753899541,0.004011622938203209,0.004027668540355853,0.004033938738596153,0.004030969848528143,0.004019407306233326,0.003999992832341977,0.0039735501334697615,0.003940969522815904,0.0039031918532668017,0.0038611921541590066,0.003815963347635062,0.003768500393518182,0.003719785174556258,0.003670772388835858,0.00362237666550141,0.0035754610661376043,0.003530827079806489,0.003489206167194613,0.003451252860820749,0.0034175393856662327,0.0033885517294028815,0.003364687064632342,0.003346252407750602,0.003333464390241091,0.0033264500179238906,0.0033252483010466067,0.003329812651811846,0.0033400139644114554,0.003355644314090144,0.003376421234296929,0.0034019925527144085,0.003431941786108286,0.003465794108943032,0.0035030229202918303,0.0035430570368231726,0.0035852885360702267,0.003629081263731115,0.0036737800017816492,0.0037187202715137768,0.0037632387184088237,0.00380668399549765,0.003848428030255067,0.003887877528957713,0.003924485543674605,0.003957762902447083,0.003987289284378467,0.0040127237096472135,0.0040338142109118055,0.004050406457808574,0.004062451120453526,0.004070009780782478,0.004073259231501483,0.004072494040256928,0.004068127299899247,0.004060689532634898,0.004050825764472147,0.00403929083457428,0.004026943049848374,0.004014736336312682,0.004003711073687707,0.003994983826716562,0.003989736204771144,0.003989203089598251,0.003994660469330579,0.004007413105350239,0.004028782237954813,0.0040600935082127886,0.004102665238506404,0.004157797174986187,0.004226759753718865,0.004310783911062777,0.004411051420165443,0.004528685701781123,0.004664743030977528,0.004820204043549964,0.004995965438467559,0.005192831776294158,0.005411507288519866,0.00565258763875261,0.005916551612718983,0.006203752758389017,0.006514411048050365,0.006848604688098331,0.007206262256627006,0.007587155400266581,0.007990892366750078,0.008416912685121253,0.00886448332830355,0.009332696700422163,0.009820470781844294,0.010326551737262553,0.010849519245952647,0.01138779474928999,0.01193965273030292,0.012503235046099475,0.013076568229831621,0.01365758356875676,0.014244139653687739,0.014834046987869278,0.01542509414547479,0.01601507488656132,0.016601815571302286,0.017183202175648282,0.01775720619637121,0.018321908747682733,0.01887552219488873,0.01941640874202859,0.019943095487857092,0.02045428558421989,0.020948865267816936,0.021425906684650022,0.021884666579267683,0.022324581071164543,0.022745256881124505,0.023146459494212644,0.02352809884737029,0.023890213203472684,0.0242329519166566,0.024556557804152255,0.024861349817748252,0.025147706655297357,0.025416051873049874,0.025666840958180566,0.025900550704172617,0.02611767110688764,0.02631869987396119,0.02650413952205874,0.026674496932546945,0.026830285152212755,0.026972027166285557,0.027100261338970914,0.02721554821282428,0.027318478381368062,0.027409681196257807,0.027489834136090192,0.02755967274210361,0.02762000110907836,0.027671702999402,0.027715753716164235,0.027753232919315956,0.0277853385901964,0.027813402338346633,0.027838906196490112,0.027863500962780206,0.0278890260243421,0.027917530435297665,0.027951294831008923,0.027992853545472134,0.028045016070015572,0.02811088675985013,0.02819388147309822,0.02829773962813331,0.02842653000332768,0.02858464849239547,0.028776805981603863,0.029008004544075965,0.029283500261163803,0.02960875118900266,0.029989349294234014,0.030430935587306276,0.03093909818139534,0.03151925359195559,0.0321765122535053,0.032915529949018904,0.03374034760067803,0.03465422263212276,0.03565945585085423,0.03675721848157173,0.03794738457151384,0.03922837445156463,0.04059701523758897,0.04204842446401618,0.04357592282998585,0.045170981688398844,0.04682321030973512,0.0485203871056733,0.05024853791376216,0.05199206314735993,0.05373391414020464,0.05545581740933492,0.05713854388050145,0.05876221843154273,0.06030666348151673,0.061751768858780184,0.06307787889034476,0.06426618663313802,0.06529912447177849,0.06616073998155102,0.0668370460285618,0.06731633456360868,0.06758944445534797,0.06764997497645935,0.06749443815990151,0.06712234512098002,0.06653622352094385,0.06574156554536742,0.0647467079955462,0.06356264825227341,0.06220280188011825,0.06068270941612554,0.05901970136025679,0.05723253150165488,0.05534098943780767,0.053365503454625124,0.05132674483520954,0.04924524417301452,0.047141029417340455,0.0450332942262403,0.04294010380547989,0.040878143841487836,0.03886251646402164,0.036906585473316864,0.035021871405844784,0.03321799545465106,0.031502669857500505,0.02988173116042306,0.02835921178522237,0.026937444594015772,0.025617194656669288,0.02439781218170313,0.023277400551771788,0.022252993587311774,0.02132073651675122,0.02047606562553765,0.019713882154311007,0.019028716684292662,0.01841488095269475,0.017866604753174357,0.01737815627058022,0.016943944854589072,0.016558605837212477,0.016217067533189234,0.015914601022911933,0.015646853701615192,0.015409867886096587,0.015200086003869108,0.01501434405383031,0.014849855128047408,0.014704184827589359,0.014575220398297284,0.01446113536176098,0.014360351329119976,0.014271498566842055,0.014193376740158187,0.014124917096776001,0.01406514717593291,0.014013158940583083,0.013968081038099907,0.013929055701679247,0.013895220614824443,0.013865695878840026,0.013839576051862257,0.013815927070986382,0.013793787729480016,0.013772175261361078,0.013750094487667834,0.013726549903791716,0.013700560035859025,0.013671173366189443,0.013637485122528043,0.013598654241597528,0.013553919852566291,0.013502616677837125,0.013444188814360606,0.013378201435500482,0.013304350038262087,0.01322246695043703,0.013132524904041234,0.01303463757269962,0.012929057059019136,0.012816168401494533,0.01269648124746736,0.012570618907825478,0.012439305069537792,0.012303348493128306,0.012163626063420302,0.012021064593167641,0.011876621800550548,0.011731266893091653,0.011585961192601402,0.011441639228617354,0.011299190711852173,0.011159443774867071,0.011023149835054742,0.010890970395635765,0.010763466054413534,0.010641087938268803,0.010524171724681564,0.010412934350951787,0.010307473448383632,0.010207769473758135,0.010113690445328038,0.010024999126804818,0.00994136244193819,0.009862362845912784,0.009787511329525787,0.009716261689527456,0.009648025665084893,0.009582188517390339,0.009518124618090202,0.009455212613300562,0.009392849744007337,0.00933046493075034,0.009267530270360765,0.00920357064440085,0.009138171201610198,0.00907098254839167,0.009001723560018106,0.008930181808260402,0.0088562116856501,0.008779730389483572,0.008700712006728522,0.008619180010992537,0.008535198541615862,0.008448862880018001,0.00836028956738376,0.00826960661893485,0.008176944282419914,0.008082426761884467,0.007986165282911255,0.007888252813861853,0.0077887606815312364,0.007687737232115873,0.007585208593178032,0.007481181493508234,0.007375647999854614,0.007268591936874755,0.007159996673681329,0.007049853890929799,0.006938172889888415,0.0068249899719331104,0.0067103774051261444,0.00659445150468061,0.006477379385864049,0.006359383999910559,0.006240747133490142,0.006121810137075118,0.006002972243302279,0.0058846864388126495,0.00576745295742428,0.005651810564168807,0.005538325894177869,0.005427581193505134,0.005320160877161831,0.005216637370111527,0.005117556727765045,0.0050234245426232635,0.004934692633083581,0.0048517469799441906,0.004774897327569532,0.004704368802542384,0.004640295826057482,0.004582718510890494,0.004531581643338946,0.004486736258979805,0.004447943732194564,0.004414882216652507,0.004387155200340734,0.0043643018767402925,0.0043458089851699895,0.004331123739253178,0.0043196674432995465,0.0043108493918514275,0.004304080656830844,0.004298787388233567,0.0042944232863452135,0.004290480943927685,0.004286501803530635,0.004282084525804231,0.00427689161731635,0.004270654219008668,0.004263175007440956,0.004254329209080716,0.004244063772151502,0.004232394780352682,0.004219403227807103,0.0042052293048345105,0.004190065369729482,0.004174147802898086,0.004157747956772827,0.00414116242815159,0.0041247028891824924,0.004108685719216841,0.004093421682116506,0.004079205892140956,0.00406630830595972,0.004054964968284217,0.004045370223729302,0.004037670087502205,0.004031956942204228,0.004028265697440948,0.004026571513336278,0.004026789148984114,0.004028773953198141,0.004032324468781024,0.004037186574340405,0.004043059041058546,0.004049600337545702,0.004056436475800626,0.004063169657148543,0.004069387450463806,0.004074672217402092,0.004078610491817323,0.004080802023660963,0.004080868211627134,0.004078459673290559,0.004073262735661694,0.004065004671658156,0.0040534575572500125,0.0040384406779249635,0.004019821469343683,0.003997515033192719,0.00397148232286349,0.003941727142375376,0.003908292143835089,0.0038712540419326576,0.0038307182871837988,0.0037868134519879913,0.0037396855847437946,0.0036894927774355716,0.0036364001719690732,0.0035805756012360686,0.0035221860239690963,0.003461394869748128,0.0033983603640883025,0.003333234855516408,0.0032661651190706415,0.003197293565761136,0.003126760247035466,0.0030547055087571297,0.0029812731218458186,0.002906613697398229,0.002830888183274136,0.0027542712368832712,0.0026769542749757354,0.0025991480150388897,0.0025210843435880107,0.00244301737315062,0.002365223580887971,0.0022880009562921896,0.002211667121940966,0.002136556428610232,0.002063016062931652,0.001991401241132745,0.0019220695952266284,0.0018553748874746612,0.0017916602143080698,0.0017312508815759083,0.0016744471485203832,0.0016215170479134688,0.0015726894940765632,0.0015281478889021167,0.0014880244284612648,0.0014523952993761695,0.0014212769350372162,0.001394623477255661,0.0013723255595024164,0.0013542104940861572,0.0013400439082196115,0.0013295328338263758,0.001322330214221005,0.0013180407486626453,0.001316227954558602,0.0013164222881732203,0.0013181301294966647,0.001320843406828311,0.001324049612910829,0.0013272419482260349,0.0013299293192119092,0.0013316459202701852,0.0013319601387549512,0.0013304825415418329,0.0013268727297643856,0.0013208448839767003,0.0013121718641098256,0.0013006877755752607,0.001286288962927455,0.0012689334436606226,0.001248638844942996,0.0012254789533693408,0.001199579030250958,0.0011711100808900967,0.0011402822943328208,0.0011073378892591237,0.0010725436113643504,0.0010361831276660125,9.985495539285613E-4,9.599383335493172E-4,9.206406608771076E-4,8.809376104373448E-4,8.410950975393149E-4,8.01359757009893E-4,7.619557871475812E-4,7.230827671886728E-4,6.849144202590918E-4,6.475982613757575E-4,6.112560427156963E-4,5.759848869307265E-4,5.418589842531225E-4],\n",
"&quot;x&quot;:[0.1667,0.3229295499021526,0.47915909980430527,0.6353886497064578,0.7916181996086105,0.9478477495107631,1.1040772994129158,1.2603068493150684,1.416536399217221,1.5727659491193737,1.7289954990215264,1.885225048923679,2.0414545988258315,2.1976841487279843,2.3539136986301368,2.5101432485322897,2.666372798434442,2.8226023483365945,2.9788318982387474,3.1350614481409,3.2912909980430527,3.447520547945205,3.603750097847358,3.7599796477495104,3.916209197651663,4.072438747553815,4.228668297455968,4.38489784735812,4.541127397260273,4.697356947162426,4.853586497064579,5.009816046966731,5.166045596868884,5.3222751467710365,5.4785046966731885,5.634734246575341,5.790963796477494,5.947193346379647,6.103422896281799,6.259652446183952,6.415881996086105,6.572111545988257,6.72834109589041,6.884570645792563,7.0408001956947155,7.1970297455968675,7.35325929549902,7.509488845401173,7.665718395303325,7.821947945205478,7.978177495107631,8.134407045009784,8.290636594911938,8.44686614481409,8.603095694716242,8.759325244618395,8.915554794520547,9.0717843444227,9.228013894324853,9.384243444227005,9.540472994129159,9.69670254403131,9.852932093933463,10.009161643835617,10.165391193737769,10.32162074363992,10.477850293542074,10.634079843444226,10.790309393346378,10.946538943248532,11.102768493150684,11.258998043052838,11.41522759295499,11.571457142857142,11.727686692759296,11.883916242661448,12.0401457925636,12.196375342465753,12.352604892367905,12.508834442270057,12.665063992172211,12.821293542074363,12.977523091976515,13.133752641878669,13.28998219178082,13.446211741682975,13.602441291585126,13.758670841487278,13.914900391389432,14.071129941291584,14.227359491193736,14.38358904109589,14.539818590998042,14.696048140900194,14.852277690802348,15.0085072407045,15.164736790606652,15.320966340508805,15.477195890410957,15.633425440313111,15.789654990215263,15.945884540117415,16.10211409001957,16.25834363992172,16.414573189823873,16.570802739726023,16.727032289628177,16.88326183953033,17.03949138943248,17.195720939334635,17.35195048923679,17.50818003913894,17.664409589041092,17.820639138943246,17.976868688845396,18.13309823874755,18.289327788649704,18.445557338551858,18.601786888454008,18.75801643835616,18.914245988258315,19.070475538160466,19.22670508806262,19.382934637964773,19.539164187866923,19.695393737769077,19.85162328767123,20.00785283757338,20.164082387475535,20.32031193737769,20.47654148727984,20.632771037181993,20.789000587084146,20.945230136986297,21.10145968688845,21.257689236790604,21.413918786692754,21.570148336594908,21.726377886497062,21.882607436399212,22.038836986301366,22.19506653620352,22.351296086105673,22.507525636007824,22.663755185909977,22.81998473581213,22.97621428571428,23.132443835616435,23.28867338551859,23.44490293542074,23.601132485322893,23.757362035225047,23.913591585127197,24.06982113502935,24.226050684931504,24.382280234833654,24.53850978473581,24.694739334637962,24.850968884540112,25.007198434442266,25.16342798434442,25.31965753424657,25.475887084148724,25.632116634050877,25.788346183953028,25.94457573385518,26.100805283757335,26.25703483365949,26.41326438356164,26.569493933463793,26.725723483365947,26.881953033268097,27.03818258317025,27.194412133072404,27.350641682974555,27.50687123287671,27.663100782778862,27.819330332681012,27.975559882583166,28.13178943248532,28.28801898238747,28.444248532289624,28.600478082191778,28.756707632093928,28.91293718199608,29.069166731898235,29.225396281800386,29.38162583170254,29.537855381604693,29.694084931506843,29.850314481408997,30.00654403131115,30.1627735812133,30.319003131115455,30.47523268101761,30.631462230919762,30.787691780821913,30.943921330724066,31.10015088062622,31.25638043052837,31.412609980430524,31.568839530332678,31.725069080234828,31.881298630136982,32.03752818003914,32.19375772994129,32.34998727984344,32.50621682974559,32.66244637964775,32.8186759295499,32.97490547945205,33.131135029354205,33.287364579256355,33.443594129158505,33.59982367906066,33.75605322896281,33.91228277886496,34.06851232876712,34.22474187866927,34.38097142857142,34.53720097847358,34.69343052837573,34.84966007827788,35.005889628180036,35.162119178082186,35.318348727984336,35.47457827788649,35.630807827788644,35.787037377690794,35.94326692759295,36.0994964774951,36.25572602739726,36.41195557729941,36.56818512720156,36.72441467710372,36.88064422700587,37.03687377690802,37.193103326810174,37.349332876712324,37.505562426614475,37.66179197651663,37.81802152641878,37.97425107632093,38.13048062622309,38.28671017612524,38.44293972602739,38.59916927592955,38.7553988258317,38.91162837573385,39.067857925636005,39.224087475538155,39.380317025440306,39.53654657534246,39.69277612524461,39.84900567514676,40.00523522504892,40.16146477495107,40.31769432485322,40.47392387475538,40.63015342465753,40.78638297455968,40.942612524461836,41.098842074363986,41.25507162426614,41.411301174168294,41.567530724070444,41.723760273972594,41.87998982387475,42.0362193737769,42.19244892367905,42.34867847358121,42.50490802348336,42.66113757338551,42.81736712328767,42.97359667318982,43.12982622309197,43.286055772994125,43.442285322896275,43.598514872798425,43.75474442270058,43.91097397260273,44.06720352250488,44.22343307240704,44.37966262230919,44.53589217221135,44.6921217221135,44.84835127201565,45.004580821917806,45.160810371819956,45.317039921722106,45.47326947162426,45.629499021526414,45.785728571428564,45.94195812133072,46.09818767123287,46.25441722113502,46.41064677103718,46.56687632093933,46.72310587084148,46.87933542074364,47.03556497064579,47.19179452054794,47.348024070450094,47.504253620352245,47.660483170254395,47.81671272015655,47.9729422700587,48.12917181996085,48.28540136986301,48.44163091976516,48.59786046966731,48.75409001956947,48.91031956947162,49.06654911937377,49.222778669275925,49.379008219178075,49.535237769080226,49.69146731898238,49.84769686888453,50.00392641878668,50.16015596868884,50.31638551859099,50.47261506849314,50.6288446183953,50.78507416829745,50.9413037181996,51.097533268101756,51.253762818003906,51.40999236790606,51.566221917808214,51.722451467710364,51.878681017612514,52.03491056751467,52.19114011741682,52.34736966731898,52.50359921722113,52.65982876712328,52.81605831702544,52.97228786692759,53.12851741682974,53.284746966731895,53.440976516634045,53.597206066536195,53.75343561643835,53.9096651663405,54.06589471624265,54.22212426614481,54.37835381604696,54.53458336594911,54.69081291585127,54.84704246575342,55.00327201565557,55.159501565557726,55.315731115459876,55.471960665362026,55.62819021526418,55.784419765166334,55.940649315068484,56.09687886497064,56.25310841487279,56.40933796477494,56.5655675146771,56.72179706457925,56.8780266144814,57.03425616438356,57.19048571428571,57.34671526418786,57.502944814090014,57.659174363992165,57.815403913894315,57.97163346379647,58.12786301369862,58.28409256360077,58.44032211350293,58.59655166340508,58.75278121330723,58.90901076320939,59.06524031311154,59.22146986301369,59.377699412915845,59.533928962817996,59.690158512720146,59.8463880626223,60.00261761252445,60.1588471624266,60.31507671232876,60.47130626223091,60.62753581213307,60.78376536203522,60.93999491193737,61.096224461839526,61.252454011741676,61.40868356164383,61.564913111545984,61.721142661448134,61.877372211350284,62.03360176125244,62.18983131115459,62.34606086105674,62.5022904109589,62.65851996086105,62.8147495107632,62.97097906066536,63.12720861056751,63.28343816046966,63.439667710371815,63.595897260273965,63.752126810176115,63.90835636007827,64.06458590998042,64.22081545988259,64.37704500978474,64.53327455968689,64.68950410958904,64.84573365949119,65.00196320939335,65.1581927592955,65.31442230919765,65.4706518590998,65.62688140900195,65.7831109589041,65.93934050880627,66.09557005870842,66.25179960861057,66.40802915851272,66.56425870841487,66.72048825831702,66.87671780821918,67.03294735812133,67.18917690802348,67.34540645792563,67.50163600782778,67.65786555772993,67.8140951076321,67.97032465753425,68.1265542074364,68.28278375733855,68.4390133072407,68.59524285714285,68.75147240704501,68.90770195694716,69.06393150684931,69.22016105675146,69.37639060665362,69.53262015655577,69.68884970645793,69.84507925636008,70.00130880626223,70.15753835616438,70.31376790606653,70.46999745596868,70.62622700587085,70.782456555773,70.93868610567515,71.0949156555773,71.25114520547945,71.4073747553816,71.56360430528376,71.71983385518591,71.87606340508806,72.03229295499021,72.18852250489236,72.34475205479453,72.50098160469668,72.65721115459883,72.81344070450098,72.96967025440313,73.12589980430528,73.28212935420744,73.43835890410959,73.59458845401174,73.75081800391389,73.90704755381604,74.06327710371819,74.21950665362036,74.37573620352251,74.53196575342466,74.68819530332681,74.84442485322896,75.00065440313111,75.15688395303327,75.31311350293542,75.46934305283757,75.62557260273972,75.78180215264187,75.93803170254402,76.09426125244619,76.25049080234834,76.40672035225049,76.56294990215264,76.71917945205479,76.87540900195694,77.0316385518591,77.18786810176125,77.3440976516634,77.50032720156555,77.6565567514677,77.81278630136985,77.96901585127202,78.12524540117417,78.28147495107632,78.43770450097847,78.59393405088062,78.75016360078277,78.90639315068493,79.06262270058708,79.21885225048923,79.37508180039138,79.53131135029354,79.68754090019569,79.84377045009785,80.0,0.3333,0.47746183953033267,0.6216236790606653,0.7657855185909981,0.9099473581213307,1.0541091976516634,1.198271037181996,1.3424328767123286,1.4865947162426614,1.6307565557729942,1.7749183953033267,1.9190802348336593,2.063242074363992,2.207403913894325,2.3515657534246572,2.49572759295499,2.639889432485323,2.7840512720156556,2.9282131115459884,3.0723749510763207,3.2165367906066535,3.3606986301369863,3.5048604696673187,3.6490223091976515,3.7931841487279843,3.937345988258317,4.08150782778865,4.225669667318982,4.369831506849315,4.513993346379648,4.658155185909981,4.802317025440313,4.946478864970646,5.090640704500979,5.234802544031312,5.3789643835616445,5.523126223091977,5.667288062622309,5.811449902152642,5.955611741682975,6.099773581213308,6.24393542074364,6.388097260273973,6.532259099804306,6.676420939334638,6.820582778864971,6.9647446183953035,7.108906457925636,7.253068297455969,7.397230136986302,7.541391976516635,7.685553816046967,7.8297156555773,7.973877495107632,8.118039334637965,8.262201174168297,8.406363013698629,8.550524853228962,8.694686692759294,8.838848532289628,8.98301037181996,9.127172211350294,9.271334050880625,9.41549589041096,9.559657729941291,9.703819569471623,9.847981409001957,9.992143248532289,10.136305088062622,10.280466927592954,10.424628767123288,10.56879060665362,10.712952446183953,10.857114285714285,11.001276125244617,11.14543796477495,11.289599804305283,11.433761643835616,11.577923483365948,11.722085322896282,11.866247162426614,12.010409001956946,12.15457084148728,12.298732681017611,12.442894520547945,12.587056360078277,12.73121819960861,12.875380039138943,13.019541878669274,13.163703718199608,13.30786555772994,13.452027397260274,13.596189236790606,13.74035107632094,13.884512915851271,14.028674755381605,14.172836594911937,14.316998434442269,14.461160273972602,14.605322113502934,14.749483953033268,14.8936457925636,15.037807632093934,15.181969471624265,15.3261313111546,15.470293150684931,15.614454990215263,15.758616829745597,15.902778669275929,16.046940508806262,16.191102348336596,16.33526418786693,16.47942602739726,16.623587866927593,16.767749706457927,16.91191154598826,17.05607338551859,17.200235225048925,17.34439706457926,17.488558904109592,17.632720743639922,17.776882583170256,17.92104442270059,18.06520626223092,18.209368101761253,18.353529941291587,18.49769178082192,18.64185362035225,18.786015459882584,18.930177299412918,19.074339138943248,19.218500978473582,19.362662818003916,19.50682465753425,19.65098649706458,19.795148336594913,19.939310176125247,20.083472015655577,20.22763385518591,20.371795694716244,20.515957534246578,20.660119373776908,20.80428121330724,20.948443052837575,21.09260489236791,21.23676673189824,21.380928571428573,21.525090410958907,21.669252250489237,21.81341409001957,21.957575929549904,22.101737769080238,22.245899608610568,22.3900614481409,22.534223287671235,22.678385127201565,22.8225469667319,22.966708806262233,23.110870645792566,23.255032485322896,23.39919432485323,23.543356164383564,23.687518003913894,23.831679843444228,23.97584168297456,24.120003522504895,24.264165362035225,24.40832720156556,24.552489041095892,24.696650880626223,24.840812720156556,24.98497455968689,25.129136399217224,25.273298238747554,25.417460078277887,25.56162191780822,25.70578375733855,25.849945596868885,25.99410743639922,26.138269275929552,26.282431115459882,26.426592954990216,26.57075479452055,26.714916634050883,26.859078473581214,27.003240313111547,27.14740215264188,27.29156399217221,27.435725831702545,27.57988767123288,27.724049510763212,27.868211350293542,28.012373189823876,28.15653502935421,28.30069686888454,28.444858708414873,28.589020547945207,28.73318238747554,28.87734422700587,29.021506066536205,29.16566790606654,29.30982974559687,29.453991585127202,29.598153424657536,29.74231526418787,29.8864771037182,30.030638943248533,30.174800782778867,30.3189626223092,30.46312446183953,30.607286301369864,30.751448140900198,30.895609980430528,31.039771819960862,31.183933659491196,31.32809549902153,31.47225733855186,31.616419178082193,31.760581017612527,31.904742857142857,32.04890469667319,32.193066536203524,32.33722837573386,32.48139021526419,32.62555205479452,32.76971389432485,32.913875733855186,33.05803757338552,33.20219941291585,33.34636125244619,33.49052309197652,33.634684931506854,33.77884677103718,33.923008610567514,34.06717045009785,34.21133228962818,34.355494129158515,34.49965596868885,34.64381780821918,34.78797964774951,34.93214148727984,35.07630332681018,35.22046516634051,35.364627005870844,35.50878884540118,35.65295068493151,35.79711252446184,35.94127436399217,36.085436203522505,36.22959804305284,36.37375988258317,36.517921722113506,36.66208356164384,36.806245401174166,36.9504072407045,37.094569080234834,37.23873091976517,37.3828927592955,37.527054598825835,37.67121643835617,37.815378277886495,37.95954011741683,38.10370195694716,38.247863796477496,38.39202563600783,38.53618747553816,38.6803493150685,38.824511154598824,38.96867299412916,39.11283483365949,39.256996673189825,39.40115851272016,39.54532035225049,39.689482191780826,39.83364403131115,39.977805870841486,40.12196771037182,40.26612954990215,40.41029138943249,40.55445322896282,40.698615068493154,40.84277690802348,40.986938747553815,41.13110058708415,41.27526242661448,41.419424266144816,41.56358610567515,41.70774794520548,41.85190978473582,41.99607162426614,42.14023346379648,42.28439530332681,42.428557142857144,42.57271898238748,42.71688082191781,42.861042661448145,43.00520450097847,43.149366340508806,43.29352818003914,43.43769001956947,43.58185185909981,43.72601369863014,43.870175538160474,44.0143373776908,44.158499217221134,44.30266105675147,44.4468228962818,44.590984735812135,44.73514657534247,44.8793084148728,45.02347025440313,45.16763209393346,45.3117939334638,45.45595577299413,45.600117612524464,45.7442794520548,45.88844129158513,46.03260313111546,46.17676497064579,46.320926810176125,46.46508864970646,46.60925048923679,46.753412328767126,46.89757416829746,47.04173600782779,47.18589784735812,47.330059686888454,47.47422152641879,47.61838336594912,47.762545205479455,47.90670704500979,48.050868884540115,48.19503072407045,48.33919256360078,48.483354403131116,48.62751624266145,48.771678082191784,48.91583992172212,49.060001761252444,49.20416360078278,49.34832544031311,49.492487279843445,49.63664911937378,49.78081095890411,49.924972798434446,50.06913463796477,50.213296477495106,50.35745831702544,50.501620156555774,50.64578199608611,50.78994383561644,50.934105675146775,51.0782675146771,51.222429354207435,51.36659119373777,51.5107530332681,51.654914872798436,51.79907671232877,51.9432385518591,52.08740039138944,52.231562230919764,52.3757240704501,52.51988590998043,52.664047749510765,52.8082095890411,52.95237142857143,53.096533268101766,53.24069510763209,53.384856947162426,53.52901878669276,53.67318062622309,53.81734246575343,53.96150430528376,54.105666144814094,54.24982798434442,54.393989823874755,54.53815166340509,54.68231350293542,54.826475342465756,54.97063718199609,55.11479902152642,55.25896086105675,55.40312270058708,55.54728454011742,55.69144637964775,55.835608219178084,55.97977005870842,56.12393189823875,56.26809373776908,56.41225557729941,56.556417416829746,56.70057925636008,56.84474109589041,56.98890293542075,57.13306477495108,57.27722661448141,57.42138845401174,57.565550293542074,57.70971213307241,57.85387397260274,57.998035812133075,58.14219765166341,58.286359491193735,58.43052133072407,58.5746831702544,58.71884500978474,58.86300684931507,59.007168688845404,59.15133052837574,59.295492367906064,59.4396542074364,59.58381604696673,59.727977886497065,59.8721397260274,60.01630156555773,60.160463405088066,60.3046252446184,60.44878708414873,60.59294892367906,60.737110763209394,60.88127260273973,61.02543444227006,61.169596281800395,61.31375812133073,61.457919960861055,61.60208180039139,61.74624363992172,61.890405479452056,62.03456731898239,62.17872915851272,62.32289099804306,62.467052837573384,62.61121467710372,62.75537651663405,62.899538356164385,63.04370019569472,63.18786203522505,63.332023874755386,63.47618571428571,63.620347553816046,63.76450939334638,63.90867123287671,64.05283307240704,64.19699491193738,64.34115675146771,64.48531859099803,64.62948043052837,64.7736422700587,64.91780410958903,65.06196594911937,65.2061277886497,65.35028962818004,65.49445146771036,65.6386133072407,65.78277514677103,65.92693698630137,66.0710988258317,66.21526066536202,66.35942250489236,66.50358434442269,66.64774618395303,66.79190802348336,66.9360698630137,67.08023170254403,67.22439354207435,67.3685553816047,67.51271722113502,67.65687906066536,67.80104090019569,67.94520273972603,68.08936457925635,68.23352641878668,68.37768825831702,68.52185009784735,68.66601193737769,68.81017377690802,68.95433561643836,69.09849745596868,69.24265929549901,69.38682113502935,69.53098297455968,69.67514481409002,69.81930665362034,69.96346849315069,70.10763033268101,70.25179217221134,70.39595401174168,70.540115851272,70.68427769080235,70.82843953033267,70.97260136986301,71.11676320939334,71.26092504892367,71.40508688845401,71.54924872798433,71.69341056751468,71.837572407045,71.98173424657534,72.12589608610567,72.270057925636,72.41421976516634,72.55838160469666,72.702543444227,72.84670528375733,72.99086712328767,73.135028962818,73.27919080234832,73.42335264187867,73.56751448140899,73.71167632093933,73.85583816046966,74.0],\n",
"&quot;survived&quot;:[&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;]\n",
"},\n",
"&quot;sampling&quot;:&quot;none&quot;,\n",
"&quot;alpha&quot;:0.3,\n",
"&quot;inherit_aes&quot;:false,\n",
"&quot;position&quot;:&quot;identity&quot;,\n",
"&quot;geom&quot;:&quot;area&quot;,\n",
"&quot;fill&quot;:&quot;#a39999&quot;,\n",
"&quot;data_meta&quot;:{\n",
"&quot;series_annotations&quot;:[{\n",
"&quot;type&quot;:&quot;str&quot;,\n",
"&quot;column&quot;:&quot;survived&quot;\n",
"},{\n",
"&quot;type&quot;:&quot;float&quot;,\n",
"&quot;column&quot;:&quot;x&quot;\n",
"},{\n",
"&quot;type&quot;:&quot;float&quot;,\n",
"&quot;column&quot;:&quot;density&quot;\n",
"},{\n",
"&quot;type&quot;:&quot;str&quot;,\n",
"&quot;column&quot;:&quot;&amp;merged_groups&quot;\n",
"}]\n",
"}\n",
"}],\n",
"&quot;data_meta&quot;:{\n",
"&quot;series_annotations&quot;:[{\n",
"&quot;type&quot;:&quot;str&quot;,\n",
"&quot;column&quot;:&quot;survived&quot;\n",
"},{\n",
"&quot;type&quot;:&quot;str&quot;,\n",
"&quot;column&quot;:&quot;&amp;merged_groups&quot;\n",
"}]\n",
"},\n",
"&quot;spec_id&quot;:&quot;14&quot;\n",
"};\n",
" var containerDiv = document.getElementById(&quot;VjaNYh&quot;);\n",
" \n",
" var toolbar = null;\n",
" var plotContainer = containerDiv; \n",
" \n",
" var options = {\n",
" sizing: {\n",
" width_mode: &quot;fixed&quot;,\n",
" height_mode: &quot;fixed&quot;,\n",
" width: 850.0,\n",
" height: 250.0\n",
" }\n",
" };\n",
" var fig = LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer, options);\n",
" if (toolbar) {\n",
" toolbar.bind(fig);\n",
" }\n",
" \n",
" // ----------\n",
" })();\n",
" \n",
" &lt;/script>\n",
" &lt;/body>\n",
"&lt;/html>\"></iframe> <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" display=\"block\" class=\"plt-container\" id=d8511402-d1b5-4fe6-a563-ef251bedaab2 width=\"100%\" height=\"100%\" style=\"max-width: 850.0px; max-height: 250.0px;\" viewBox=\"0 0 850.0 250.0\" preserveAspectRatio=\"xMinYMin meet\">\n",
" <style type=\"text/css\">\n",
" .plt-container {\n",
" font-family: Lucida Grande, sans-serif;\n",
" user-select: none;\n",
" -webkit-user-select: none;\n",
" -moz-user-select: none;\n",
" -ms-user-select: none;\n",
"}\n",
"text {\n",
" text-rendering: optimizeLegibility;\n",
"}\n",
"#p6sBdey .plot-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 16.0px;\n",
"\n",
"}\n",
"#p6sBdey .plot-subtitle {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#p6sBdey .plot-caption {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#p6sBdey .hyperlink-element {\n",
"fill: #118ed8;\n",
"font-weight: normal;\n",
" font-style: normal;\n",
"}\n",
"#p6sBdey .legend-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#p6sBdey .legend-item {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#p6sBdey .axis-title-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#p6sBdey .axis-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dTJqRGD .axis-tooltip-text-x {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#p6sBdey .axis-title-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#p6sBdey .axis-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dTJqRGD .axis-tooltip-text-y {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#p6sBdey .facet-strip-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#p6sBdey .facet-strip-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dTJqRGD .tooltip-text {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dTJqRGD .tooltip-title {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dTJqRGD .tooltip-label {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"\n",
" </style>\n",
" <g id=\"p6sBdey\">\n",
" <path fill-rule=\"evenodd\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" d=\"M0.0 0.0 L0.0 250.0 L850.0 250.0 L850.0 0.0 Z\">\n",
" </path>\n",
" <g transform=\"translate(29.5 6.5 ) \">\n",
" <g>\n",
" <g transform=\"translate(35.01530667574961 0.0 ) \">\n",
" <g>\n",
" <line x1=\"29.14420770695746\" y1=\"0.0\" x2=\"29.14420770695746\" y2=\"191.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"105.33891199041486\" y1=\"0.0\" x2=\"105.33891199041486\" y2=\"191.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"181.53361627387227\" y1=\"0.0\" x2=\"181.53361627387227\" y2=\"191.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"257.72832055732965\" y1=\"0.0\" x2=\"257.72832055732965\" y2=\"191.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"333.92302484078704\" y1=\"0.0\" x2=\"333.92302484078704\" y2=\"191.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"410.1177291242444\" y1=\"0.0\" x2=\"410.1177291242444\" y2=\"191.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"486.31243340770186\" y1=\"0.0\" x2=\"486.31243340770186\" y2=\"191.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"562.5071376911592\" y1=\"0.0\" x2=\"562.5071376911592\" y2=\"191.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"638.7018419746166\" y1=\"0.0\" x2=\"638.7018419746166\" y2=\"191.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(35.01530667574961 0.0 ) \">\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"191.0\" x2=\"669.1162154019794\" y2=\"191.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"137.2217799879274\" x2=\"669.1162154019794\" y2=\"137.2217799879274\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"83.44355997585477\" x2=\"669.1162154019794\" y2=\"83.44355997585477\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"29.665339963782145\" x2=\"669.1162154019794\" y2=\"29.665339963782145\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g clip-path=\"url(#c12maIx)\" clip-bounds-jfx=\"[rect (35.01530667574961, 0.0), (669.1162154019794, 191.0)]\">\n",
" <g transform=\"translate(35.01530667574961 0.0 ) \">\n",
" <g>\n",
" <g>\n",
" <g>\n",
" <path d=\"M31.683777200725096 183.18538870328055 L31.683777200725096 183.18538870328055 L32.78221407392239 182.82798864449765 L33.88065094711968 182.48450933227323 L34.97908782031698 182.1575843813256 L36.07752469351427 181.84968704096227 L37.175961566711564 181.56308539679347 L38.27439843990886 181.29980078708024 L39.37283531310615 181.06157050696768 L40.471272186303445 180.8498157681056 L41.56970905950074 180.66561574220833 L42.66814593269803 180.50968834973307 L43.766582805895325 180.3823782650945 L44.86501967909262 180.28365240469054 L45.96345655228991 180.21310295119153 L47.061893425487206 180.16995775505197 L48.1603302986845 180.15309775002768 L49.25876717188179 180.16108083119113 L50.35720404507909 180.1921714783626 L51.45564091827639 180.24437527077998 L52.554077791473674 180.31547733466314 L53.652514664670974 180.40308369705667 L54.75095153786826 180.50466448828442 L55.849388411065554 180.61759794123742 L56.94782528426285 180.73921417664383 L58.04626215746015 180.86683783608984 L59.144699030657435 180.9978287242534 L60.243135903854736 181.1296197429472 L61.34157277705202 181.25975153580336 L62.44000965024932 181.3859034070326 L63.538446523446616 181.50592022387914 L64.63688339664391 181.6178351536564 L65.7353202698412 181.71988821667435 L66.8337571430385 181.81054075088588 L67.9321940162358 181.88848597869412 L69.03063088943308 181.95265593832136 L70.12906776263038 182.002225090003 L71.22750463582767 182.03661093096025 L72.32594150902497 182.0554719538463 L73.42437838222226 182.05870326357726 L74.52281525541954 182.046430130594 L75.62125212861685 182.0189997089243 L76.71968900181415 181.97697108973 L77.81812587501145 181.9211038004273 L78.91656274820873 181.8523448010346 L80.01499962140602 181.77181397790216 L81.11343649460332 181.68078809463583 L82.2118733678006 181.58068313426065 L83.31031024099791 181.47303495792008 L84.4087471141952 181.35947821502268 L85.5071839873925 181.2417234678689 L86.6056208605898 181.1215325394117 L87.70405773378708 181.00069215375888 L88.80249460698437 180.880986012173 L89.90093148018167 180.7641655286846 L90.99936835337897 180.65191953441578 L92.09780522657624 180.54584334338594 L93.19624209977354 180.44740764990343 L94.29467897297084 180.35792779382908 L95.39311584616813 180.27853398064576 L96.49155271936543 180.2101430747466 L97.58998959256272 180.153432593888 L98.68842646576002 180.10881751868254 L99.7868633389573 180.07643049279795 L100.8853002121546 180.05610592788963 L101.98373708535189 180.04736844410536 L103.08217395854918 180.04942597526042 L104.18061083174648 180.06116775144497 L105.27904770494376 180.08116724566202 L106.37748457814106 180.10769004038224 L107.47592145133837 180.1387064402758 L108.57435832453567 180.17190853445837 L109.67279519773295 180.2047313007657 L110.77123207093025 180.23437725072256 L111.86966894412754 180.25784404110826 L112.96810581732483 180.27195442948428 L114.06654269052213 180.27338792873726 L115.16497956371941 180.25871352034054 L116.26341643691671 180.2244228170606 L117.361853310114 180.1669631213268 L118.4602901833113 180.08276990228725 L119.55872705650859 179.968298308386 L120.65716392970587 179.82005343790095 L121.75560080290319 179.63461920131664 L122.85403767610048 179.40868572031815 L123.95247454929778 179.13907531208886 L125.05091142249506 178.82276719820436 L126.14934829569236 178.45692114901541 L127.24778516888965 178.0389003221444 L128.34622204208694 177.56629357386905 L129.44465891528424 177.03693751243856 L130.54309578848154 176.4489385220522 L131.6415326616788 175.800694916282 L132.7399695348761 175.09091928292077 L133.8384064080734 174.31866096294266 L134.93684328127068 173.48332847044355 L136.035280154468 172.5847115153868 L137.13371702766528 171.6230021449209 L138.23215390086258 170.59881438093396 L139.33059077405989 169.51320161040613 L140.42902764725716 168.3676708898572 L141.5274645204545 167.1641932638571 L142.62590139365176 165.90520917693763 L143.72433826684906 164.59362808359234 L144.82277514004636 163.2328214353722 L145.92121201324363 161.82660834829713 L147.01964888644093 160.3792334260179 L148.11808575963823 158.8953364301013 L149.2165226328355 157.3799137414103 L150.31495950603284 155.83827183666182 L151.4133963792301 154.27597330030656 L152.51183325242744 152.69877619106464 L153.6102701256247 151.11256787084716 L154.70870699882198 149.52329466688616 L155.8071438720193 147.93688896203432 L156.90558074521658 146.35919548033263 L158.0040176184139 144.7958986443031 L159.10245449161118 143.2524529185905 L160.20089136480846 141.7340180163 L161.29932823800578 140.24540072802571 L162.39776511120306 138.7910049413428 L163.49620198440033 137.37479115661245 L164.59463885759766 136.00024648310287 L165.69307573079493 134.67036573120373 L166.7915126039922 133.38764381773768 L167.88994947718953 132.1540792904645 L168.9883863503868 130.97118837387808 L170.08682322358413 129.84002856078888 L171.1852600967814 128.7612304409853 L172.28369696997873 127.73503618601643 L173.382133843176 126.76134291041619 L174.48057071637328 125.83974901420322 L175.5790075895706 124.96960158345607 L176.67744446276788 124.15004298520165 L177.7758813359652 123.3800549346178 L178.87431820916248 122.65849852664368 L179.97275508235975 121.98414899680444 L181.07119195555708 121.35572428985813 L182.16962882875436 120.77190685054222 L183.26806570195163 120.23135838732037 L184.36650257514896 119.7327276776028 L185.46493944834623 119.27465176250672 L186.5633763215435 118.85575110488286 L187.66181319474083 118.47461944399478 L188.7602500679381 118.12980916640782 L189.85868694113543 117.81981302307831 L190.9571238143327 117.54304296058694 L192.05556068752998 117.2978067083439 L193.1539975607273 117.08228258669787 L194.25243443392458 116.89449279072157 L195.35087130712185 116.73227518111472 L196.44930818031918 116.59325339947148 L197.54774505351645 116.47480494258502 L198.64618192671372 116.37402670093651 L199.74461879991105 116.28769740932432 L200.84305567310838 116.212236488205 L201.94149254630565 116.14365888348516 L203.03992941950293 116.07752574585045 L204.13836629270025 116.00889112702559 L205.23680316589753 115.93224530284144 L206.3352400390948 115.8414558477847 L207.43367691229213 115.72970816329364 L208.5321137854894 115.58944777722952 L209.63055065868667 115.41232735471603 L210.728987531884 115.1891619572713 L211.82742440508127 114.90989662169504 L212.9258612782786 114.56359076506304 L214.02429815147588 114.13842422040983 L215.12273502467315 113.62172983382901 L216.22117189787048 113.00005747587403 L217.31960877106775 112.25927401157736 L218.41804564426502 111.38470321375492 L219.51648251746235 110.36130878178943 L220.61491939065962 109.17392254063165 L221.7133562638569 107.80751855129027 L222.81179313705422 106.24753228577511 L223.9102300102515 104.48022224049208 L225.00866688344877 102.4930694293848 L226.1071037566461 100.27520817234652 L227.20554062984343 97.8178795471178 L228.3039775030407 95.11489688709857 L229.40241437623797 92.1631108733107 L230.5008512494353 88.96286018151994 L231.59928812263257 85.51839240138945 L232.6977249958299 81.8382391359738 L233.79616186902717 77.93552890065607 L234.89459874222445 73.82822174099616 L235.99303561542177 69.53925042999919 L237.09147248861905 65.0965547145759 L238.18990936181632 60.53299735800849 L239.28834623501365 55.886153639436316 L240.38678310821092 51.197969458985256 L241.4852199814082 46.51428716291275 L242.58365685460552 41.884242520573 L243.6820937278028 37.359540801246396 L244.78053060100007 32.993624439551326 L245.8789674741974 28.840749154848396 L246.97740434739467 24.954989408893255 L248.075841220592 21.38919755700843 L249.17427809378927 18.193943795309167 L250.27271496698654 15.416465878049053 L251.37115184018387 13.099658455531 L252.46958871338114 11.281131685948964 L253.56802558657841 9.992367471598214 L254.66646245977574 9.257999279326782 L255.76489933297307 9.09523809523813 L256.86333620617035 9.513462752279338 L257.9617730793676 10.51398781788339 L259.06020995256495 12.090016635912036 L260.1586468257622 14.226781208156922 L261.2570836989595 16.90186461790475 L262.3555205721568 20.085695886962895 L263.4539574453541 23.742201756181828 L264.55239431855136 27.829595104546513 L265.6508311917487 32.30127576006444 L266.74926806494597 37.106816452806356 L267.8477049381433 42.19300471638962 L268.94614181134057 47.504910708107445 L270.04457868453784 52.98695118742947 L271.14301555773517 58.58392121576941 L272.24145243093244 64.24196741993389 L273.3398893041297 69.90947976164249 L274.43832617732704 75.5378825103833 L275.5367630505243 81.0823093403658 L276.63519992372164 86.5021519687525 L277.73363679691886 91.76147632608013 L278.8320736701162 96.82930471509822 L279.93051054331346 101.67976660398736 L281.0289474165108 106.29212447178247 L282.12738428970806 110.65068436565814 L283.2258211629054 114.74460346226745 L284.3242580361027 118.56760890300019 L285.4226949093 122.1176434830774 L286.5211317824972 125.39645443395719 L287.61956865569454 128.40914159088382 L288.7180055288918 131.16368074671533 L289.81644240208914 133.67043703913612 L290.9148792752864 135.94168189040994 L292.01331614848374 137.99112541066953 L293.111753021681 139.8334743802356 L294.2101898948783 141.48402403149282 L295.30862676807556 142.95828993575236 L296.4070636412729 144.2716844338279 L297.5055005144702 145.43924028687417 L298.6039373876675 146.47538260965987 L299.7023742608648 147.39374871247549 L300.8008111340621 148.2070542392743 L301.89924800725936 148.92700295689127 L302.99768488045663 149.56423672322626 L304.09612175365396 150.12832153407507 L305.19455862685123 150.62776510680797 L306.29299550004856 151.0700611888231 L307.39143237324583 151.46175566218596 L308.48986924644316 151.808529534796 L309.5883061196404 152.11529404454274 L310.6867429928377 152.38629333859632 L311.785179866035 152.62521050851944 L312.8836167392323 152.83527314767696 L313.9820536124296 153.01935503586472 L315.0804904856269 153.1800710335249 L316.1789273588242 153.31986277145904 L317.27736423202145 153.4410732393302 L318.3758011052187 153.54600889573396 L319.47423797841606 153.6369884329842 L320.57267485161333 153.71637782036262 L321.67111172481066 153.786611710457 L322.76954859800793 153.85020171528723 L323.86798547120526 153.90973243420981 L324.96642234440253 153.967846437485 L326.0648592175998 154.02721967277063 L327.16329609079713 154.09052896335976 L328.2617329639944 154.1604134051482 L329.36016983719173 154.23943154449384 L330.458606710389 154.33001623346598 L331.55704358358633 154.4344290163632 L332.65548045678355 154.55471580713456 L333.7539173299809 154.6926654780297 L334.85235420317815 154.84977280287347 L335.9507910763755 155.02720699179147 L337.04922794957275 155.22578682623572 L338.1476648227701 155.44596316185192 L339.24610169596735 155.68780931982238 L340.3445385691646 155.95101964188657 L341.4429754423619 156.23491624657143 L342.5414123155592 156.5384637996327 L343.6398491887565 156.86029190472732 L344.73828606195383 157.19872453435207 L345.8367229351511 157.55181575865532 L346.93515980834843 157.9173908925672 L348.0335966815457 158.29309207084012 L349.132033554743 158.67642717646473 L350.23047042794025 159.06482099049072 L351.3289073011376 159.45566740014868 L352.42734417433485 159.84638149664733 L353.5257810475322 160.23445041323276 L354.6242179207295 160.61748179698233 L355.7226547939268 160.99324887314222 L356.82109166712405 161.3597311472192 L357.9195285403213 161.71514989592652 L359.01796541351865 162.0579977216637 L360.1164022867159 162.3870615843984 L361.21483915991325 162.70143887726206 L362.3132760331105 163.00054627516232 L363.41171290630786 163.28412125621142 L364.51014977950507 163.55221637038582 L365.6085866527024 163.8051865048576 L366.7070235258997 164.04366956689273 L367.805460399097 164.26856116888462 L368.9038972722943 164.4809840516806 L370.0023341454916 164.68225311750544 L371.1007710186889 164.873837058286 L372.19920789188615 165.0573176550471 L373.2976447650834 165.23434788573132 L374.39608163828075 165.40661000930103 L375.494518511478 165.57577479104992 L376.59295538467535 165.74346299632168 L377.6913922578726 165.91121020695903 L378.78982913106995 166.0804359075998 L379.88826600426717 166.25241764943792 L380.9867028774645 166.42827093059105 L382.0851397506618 166.60893523934607 L383.1835766238591 166.79516649507443 L384.2820134970564 166.98753589837818 L385.3804503702537 167.18643497478104 L386.478887243451 167.39208637338362 L387.57732411664824 167.60455977202358 L388.67576098984557 167.82379205225925 L389.77419786304284 168.04961074911304 L390.8726347362402 168.28175965932792 L391.97107160943744 168.51992541403004 L393.0695084826348 168.76376379168147 L394.16794535583205 169.01292456767814 L395.2663822290293 169.26707376839568 L396.3648191022266 169.5259123181411 L397.4632559754239 169.78919023326432 L398.5616928486212 170.05671572236162 L399.6601297218185 170.3283587868135 L400.7585665950158 170.6040491719304 L401.8570034682131 170.8837687845934 L402.95544034141034 171.16753895661077 L404.05387721460767 171.45540318203862 L405.15231408780494 171.74740617985287 L406.25075096100227 172.04357032003054 L407.34918783419954 172.34387059228916 L408.44762470739687 172.6482093854596 L409.54606158059414 172.95639237715426 L410.6444984537914 173.26810680611715 L411.74293532698874 173.58290331426696 L412.841372200186 173.90018240557777 L413.93980907338334 174.21918638077278 L415.0382459465806 174.5389973788119 L416.13668281977795 174.85854189866626 L417.2351196929752 175.17660189957365 L418.3335565661725 175.4918322973179 L419.43199343936976 175.8027844006787 L420.5304303125671 176.1079345782172 L421.62886718576436 176.40571722211467 L422.7273040589617 176.69456089241848 L423.82574093215896 176.97292638934712 L424.9241778053563 177.23934541849945 L426.02261467855357 177.49245848663804 L427.12105155175084 177.73105069430386 L428.2194884249481 177.9540841734826 L429.31792529814544 178.1607260491454 L430.4163621713427 178.35037097594724 L431.51479904454004 178.5226575072589 L432.6132359177373 178.67747778339665 L433.71167279093464 178.81498026909242 L434.81010966413186 178.93556551642203 L435.9085465373292 179.03987516843605 L437.00698341052646 179.12877464127374 L438.1054202837238 179.20333012044838 L439.2038571569211 179.26478067367796 L440.3022940301184 179.31450641325432 L441.4007309033157 179.3539937325466 L442.49916777651293 179.3847986927625 L443.59760464971026 179.40850964830523 L444.69604152290754 179.42671017436226 L445.79447839610486 179.4409433025226 L446.89291526930214 179.45267798409796 L447.99135214249947 179.4632785919926 L449.08978901569674 179.47397814637918 L450.188225888894 179.48585581305042 L451.2866627620913 179.49981908180862 L452.3850996352886 179.51659089073328 L453.4835365084859 179.53670182499354 L454.5819733816832 179.56048738951353 L455.6804102548805 179.5880902357985 L456.7788471280778 179.6194671162123 L457.87728400127503 179.654400244767 L458.97572087447236 179.69251266216972 L460.07415774766963 179.73328713408608 L461.17259462086696 179.77608805464186 L462.27103149406423 179.8201857812963 L463.36946836726156 179.86478279165675 L464.46790524045883 179.90904102705562 L465.5663421136561 179.95210977157478 L466.66477898685343 179.99315340884752 L467.7632158600507 180.03137840289503 L468.86165273324804 180.066058864259 L469.9600896064453 180.09656008971822 L471.05852647964264 180.1223595038999 L472.1569633528399 180.1430644849071 L473.2554002260372 180.15842662414687 L474.35383709923445 180.16835205279676 L475.4522739724318 180.17290756307287 L476.55071084562906 180.1723223601853 L477.6491477188264 180.16698539830014 L478.74758459202366 180.1574383778915 L479.846021465221 180.1443646087668 L480.9444583384182 180.12857406840772 L482.04289521161553 180.11098510432518 L483.1413320848128 180.09260333696986 L484.23976895801013 180.0744984115744 L485.3382058312074 180.0577793187295 L486.43664270440473 180.04356905077353 L487.535079577602 180.03297938137501 L488.63351645079933 180.02708654729247 L489.73195332399655 180.02690857374213 L490.8303901971939 180.03338491897074 L491.92882707039115 180.04735902173044 L493.0272639435885 180.06956422087325 L494.1257008167858 180.10061338383053 L495.2241376899831 180.14099243584238 L496.3225745631804 180.19105783061912 L497.4210114363776 180.2510378521697 L498.51944830957495 180.3210374933495 L499.6178851827722 180.40104652548894 L500.71632205596956 180.49095026086908 L501.8147589291668 180.59054242051602 L502.91319580236416 180.699539457378 L504.01163267556143 180.8175956517157 L505.1100695487587 180.9443182923836 L506.208506421956 181.07928228410586 L507.3069432951533 181.22204357499544 L508.4053801683506 181.3721508773434 L509.5038170415479 181.52915525397714 L510.6022539147452 181.6926172573013 L511.7006907879425 181.8621114329876 L512.7991276611398 182.0372281294065 L513.8975645343371 182.2175726815431 L514.9960014075343 182.40276215886567 L516.0944382807317 182.5924199754962 L517.1928751539289 182.78616875389844 L518.2913120271263 182.98362190686484 L519.3897489003235 183.1843744545607 L520.4881857735207 183.38799362251535 L521.5866226467182 183.5940097724984 L522.6850595199154 183.80190820190484 L523.7834963931126 184.01112231016484 L524.8819332663099 184.22102857507662 L525.9803701395073 184.4309437106695 L527.0788070127046 184.64012429446322 L528.1772438859018 184.8477690592343 L529.2756807590991 185.05302394613958 L530.3741176322965 185.25498991569955 L531.4725545054938 185.45273341396108 L532.570991378691 185.64529929610245 L533.6694282518882 185.83172592146934 L534.7678651250857 186.01106205482566 L535.8663019982829 186.18238514040317 L536.9647388714802 186.3448204597258 L538.0631757446774 186.49756064241416 L539.1616126178749 186.63988497219916 L540.2600494910721 186.77117791884376 L541.3584863642693 186.89094633098188 L542.4569232374666 186.99883474514357 L543.5553601106639 187.09463830228242 L544.6537969838613 187.17831281447422 L545.7522338570585 187.24998159030716 L546.8506707302558 187.30993870664443 L547.9491076034532 187.35864850531885 L549.0475444766504 187.39674119389642 L550.1459813498477 187.42500453746055 L551.2444182230449 187.4443717405506 L552.3428550962424 187.45590573167718 L553.4412919694396 187.46078017368535 L554.5397288426369 187.46025762789122 L555.6381657158341 187.45566539456934 L556.7366025890315 187.44836963330457 L557.8350394622288 187.4397484304991 L558.933476335426 187.4311645249524 L560.0319132086233 187.4239384235458 L561.1303500818207 187.41932263607654 L562.228786955018 187.41847773053627 L563.3272238282152 187.4224508579371 L564.4256607014124 187.43215732053557 L565.5240975746099 187.44836566138403 L566.6225344478071 187.47168663991252 L567.7209713210044 187.502566331905 L568.8194081942016 187.54128345762933 L569.9178450673991 187.5879509043071 L571.0162819405963 187.64252127405177 L572.1147188137935 187.70479616127696 L573.2131556869908 187.77443874946476 L574.3115925601882 187.85098922057682 L575.4100294333855 187.93388239497494 L576.5084663065827 188.02246696818594 L577.6069031797801 188.11602568477525 L578.7053400529774 188.213795789379 L579.8037769261746 188.31498911979364 L580.9022137993719 188.4188112550181 L582.0006506725692 188.52447919936455 L583.0990875457666 188.63123716844956 L584.1975244189638 188.73837013967275 L585.2959612921611 188.84521493393504 L586.3943981653584 188.95116870196526 L587.4928350385557 189.05569479295946 L588.591271911753 189.15832608089326 L589.6897087849502 189.25866591101493 L590.7881456581476 189.35638690255632 L591.8865825313449 189.45122790135053 L592.9850194045422 189.54298941646587 L592.9850194045422 191.0 L591.8865825313449 191.0 L590.7881456581476 191.0 L589.6897087849502 191.0 L588.591271911753 191.0 L587.4928350385557 191.0 L586.3943981653584 191.0 L585.2959612921611 191.0 L584.1975244189638 191.0 L583.0990875457666 191.0 L582.0006506725692 191.0 L580.9022137993719 191.0 L579.8037769261746 191.0 L578.7053400529774 191.0 L577.6069031797801 191.0 L576.5084663065827 191.0 L575.4100294333855 191.0 L574.3115925601882 191.0 L573.2131556869908 191.0 L572.1147188137935 191.0 L571.0162819405963 191.0 L569.9178450673991 191.0 L568.8194081942016 191.0 L567.7209713210044 191.0 L566.6225344478071 191.0 L565.5240975746099 191.0 L564.4256607014124 191.0 L563.3272238282152 191.0 L562.228786955018 191.0 L561.1303500818207 191.0 L560.0319132086233 191.0 L558.933476335426 191.0 L557.8350394622288 191.0 L556.7366025890315 191.0 L555.6381657158341 191.0 L554.5397288426369 191.0 L553.4412919694396 191.0 L552.3428550962424 191.0 L551.2444182230449 191.0 L550.1459813498477 191.0 L549.0475444766504 191.0 L547.9491076034532 191.0 L546.8506707302558 191.0 L545.7522338570585 191.0 L544.6537969838613 191.0 L543.5553601106639 191.0 L542.4569232374666 191.0 L541.3584863642693 191.0 L540.2600494910721 191.0 L539.1616126178749 191.0 L538.0631757446774 191.0 L536.9647388714802 191.0 L535.8663019982829 191.0 L534.7678651250857 191.0 L533.6694282518882 191.0 L532.570991378691 191.0 L531.4725545054938 191.0 L530.3741176322965 191.0 L529.2756807590991 191.0 L528.1772438859018 191.0 L527.0788070127046 191.0 L525.9803701395073 191.0 L524.8819332663099 191.0 L523.7834963931126 191.0 L522.6850595199154 191.0 L521.5866226467182 191.0 L520.4881857735207 191.0 L519.3897489003235 191.0 L518.2913120271263 191.0 L517.1928751539289 191.0 L516.0944382807317 191.0 L514.9960014075343 191.0 L513.8975645343371 191.0 L512.7991276611398 191.0 L511.7006907879425 191.0 L510.6022539147452 191.0 L509.5038170415479 191.0 L508.4053801683506 191.0 L507.3069432951533 191.0 L506.208506421956 191.0 L505.1100695487587 191.0 L504.01163267556143 191.0 L502.91319580236416 191.0 L501.8147589291668 191.0 L500.71632205596956 191.0 L499.6178851827722 191.0 L498.51944830957495 191.0 L497.4210114363776 191.0 L496.3225745631804 191.0 L495.2241376899831 191.0 L494.1257008167858 191.0 L493.0272639435885 191.0 L491.92882707039115 191.0 L490.8303901971939 191.0 L489.73195332399655 191.0 L488.63351645079933 191.0 L487.535079577602 191.0 L486.43664270440473 191.0 L485.3382058312074 191.0 L484.23976895801013 191.0 L483.1413320848128 191.0 L482.04289521161553 191.0 L480.9444583384182 191.0 L479.846021465221 191.0 L478.74758459202366 191.0 L477.6491477188264 191.0 L476.55071084562906 191.0 L475.4522739724318 191.0 L474.35383709923445 191.0 L473.2554002260372 191.0 L472.1569633528399 191.0 L471.05852647964264 191.0 L469.9600896064453 191.0 L468.86165273324804 191.0 L467.7632158600507 191.0 L466.66477898685343 191.0 L465.5663421136561 191.0 L464.46790524045883 191.0 L463.36946836726156 191.0 L462.27103149406423 191.0 L461.17259462086696 191.0 L460.07415774766963 191.0 L458.97572087447236 191.0 L457.87728400127503 191.0 L456.7788471280778 191.0 L455.6804102548805 191.0 L454.5819733816832 191.0 L453.4835365084859 191.0 L452.3850996352886 191.0 L451.2866627620913 191.0 L450.188225888894 191.0 L449.08978901569674 191.0 L447.99135214249947 191.0 L446.89291526930214 191.0 L445.79447839610486 191.0 L444.69604152290754 191.0 L443.59760464971026 191.0 L442.49916777651293 191.0 L441.4007309033157 191.0 L440.3022940301184 191.0 L439.2038571569211 191.0 L438.1054202837238 191.0 L437.00698341052646 191.0 L435.9085465373292 191.0 L434.81010966413186 191.0 L433.71167279093464 191.0 L432.6132359177373 191.0 L431.51479904454004 191.0 L430.4163621713427 191.0 L429.31792529814544 191.0 L428.2194884249481 191.0 L427.12105155175084 191.0 L426.02261467855357 191.0 L424.9241778053563 191.0 L423.82574093215896 191.0 L422.7273040589617 191.0 L421.62886718576436 191.0 L420.5304303125671 191.0 L419.43199343936976 191.0 L418.3335565661725 191.0 L417.2351196929752 191.0 L416.13668281977795 191.0 L415.0382459465806 191.0 L413.93980907338334 191.0 L412.841372200186 191.0 L411.74293532698874 191.0 L410.6444984537914 191.0 L409.54606158059414 191.0 L408.44762470739687 191.0 L407.34918783419954 191.0 L406.25075096100227 191.0 L405.15231408780494 191.0 L404.05387721460767 191.0 L402.95544034141034 191.0 L401.8570034682131 191.0 L400.7585665950158 191.0 L399.6601297218185 191.0 L398.5616928486212 191.0 L397.4632559754239 191.0 L396.3648191022266 191.0 L395.2663822290293 191.0 L394.16794535583205 191.0 L393.0695084826348 191.0 L391.97107160943744 191.0 L390.8726347362402 191.0 L389.77419786304284 191.0 L388.67576098984557 191.0 L387.57732411664824 191.0 L386.478887243451 191.0 L385.3804503702537 191.0 L384.2820134970564 191.0 L383.1835766238591 191.0 L382.0851397506618 191.0 L380.9867028774645 191.0 L379.88826600426717 191.0 L378.78982913106995 191.0 L377.6913922578726 191.0 L376.59295538467535 191.0 L375.494518511478 191.0 L374.39608163828075 191.0 L373.2976447650834 191.0 L372.19920789188615 191.0 L371.1007710186889 191.0 L370.0023341454916 191.0 L368.9038972722943 191.0 L367.805460399097 191.0 L366.7070235258997 191.0 L365.6085866527024 191.0 L364.51014977950507 191.0 L363.41171290630786 191.0 L362.3132760331105 191.0 L361.21483915991325 191.0 L360.1164022867159 191.0 L359.01796541351865 191.0 L357.9195285403213 191.0 L356.82109166712405 191.0 L355.7226547939268 191.0 L354.6242179207295 191.0 L353.5257810475322 191.0 L352.42734417433485 191.0 L351.3289073011376 191.0 L350.23047042794025 191.0 L349.132033554743 191.0 L348.0335966815457 191.0 L346.93515980834843 191.0 L345.8367229351511 191.0 L344.73828606195383 191.0 L343.6398491887565 191.0 L342.5414123155592 191.0 L341.4429754423619 191.0 L340.3445385691646 191.0 L339.24610169596735 191.0 L338.1476648227701 191.0 L337.04922794957275 191.0 L335.9507910763755 191.0 L334.85235420317815 191.0 L333.7539173299809 191.0 L332.65548045678355 191.0 L331.55704358358633 191.0 L330.458606710389 191.0 L329.36016983719173 191.0 L328.2617329639944 191.0 L327.16329609079713 191.0 L326.0648592175998 191.0 L324.96642234440253 191.0 L323.86798547120526 191.0 L322.76954859800793 191.0 L321.67111172481066 191.0 L320.57267485161333 191.0 L319.47423797841606 191.0 L318.3758011052187 191.0 L317.27736423202145 191.0 L316.1789273588242 191.0 L315.0804904856269 191.0 L313.9820536124296 191.0 L312.8836167392323 191.0 L311.785179866035 191.0 L310.6867429928377 191.0 L309.5883061196404 191.0 L308.48986924644316 191.0 L307.39143237324583 191.0 L306.29299550004856 191.0 L305.19455862685123 191.0 L304.09612175365396 191.0 L302.99768488045663 191.0 L301.89924800725936 191.0 L300.8008111340621 191.0 L299.7023742608648 191.0 L298.6039373876675 191.0 L297.5055005144702 191.0 L296.4070636412729 191.0 L295.30862676807556 191.0 L294.2101898948783 191.0 L293.111753021681 191.0 L292.01331614848374 191.0 L290.9148792752864 191.0 L289.81644240208914 191.0 L288.7180055288918 191.0 L287.61956865569454 191.0 L286.5211317824972 191.0 L285.4226949093 191.0 L284.3242580361027 191.0 L283.2258211629054 191.0 L282.12738428970806 191.0 L281.0289474165108 191.0 L279.93051054331346 191.0 L278.8320736701162 191.0 L277.73363679691886 191.0 L276.63519992372164 191.0 L275.5367630505243 191.0 L274.43832617732704 191.0 L273.3398893041297 191.0 L272.24145243093244 191.0 L271.14301555773517 191.0 L270.04457868453784 191.0 L268.94614181134057 191.0 L267.8477049381433 191.0 L266.74926806494597 191.0 L265.6508311917487 191.0 L264.55239431855136 191.0 L263.4539574453541 191.0 L262.3555205721568 191.0 L261.2570836989595 191.0 L260.1586468257622 191.0 L259.06020995256495 191.0 L257.9617730793676 191.0 L256.86333620617035 191.0 L255.76489933297307 191.0 L254.66646245977574 191.0 L253.56802558657841 191.0 L252.46958871338114 191.0 L251.37115184018387 191.0 L250.27271496698654 191.0 L249.17427809378927 191.0 L248.075841220592 191.0 L246.97740434739467 191.0 L245.8789674741974 191.0 L244.78053060100007 191.0 L243.6820937278028 191.0 L242.58365685460552 191.0 L241.4852199814082 191.0 L240.38678310821092 191.0 L239.28834623501365 191.0 L238.18990936181632 191.0 L237.09147248861905 191.0 L235.99303561542177 191.0 L234.89459874222445 191.0 L233.79616186902717 191.0 L232.6977249958299 191.0 L231.59928812263257 191.0 L230.5008512494353 191.0 L229.40241437623797 191.0 L228.3039775030407 191.0 L227.20554062984343 191.0 L226.1071037566461 191.0 L225.00866688344877 191.0 L223.9102300102515 191.0 L222.81179313705422 191.0 L221.7133562638569 191.0 L220.61491939065962 191.0 L219.51648251746235 191.0 L218.41804564426502 191.0 L217.31960877106775 191.0 L216.22117189787048 191.0 L215.12273502467315 191.0 L214.02429815147588 191.0 L212.9258612782786 191.0 L211.82742440508127 191.0 L210.728987531884 191.0 L209.63055065868667 191.0 L208.5321137854894 191.0 L207.43367691229213 191.0 L206.3352400390948 191.0 L205.23680316589753 191.0 L204.13836629270025 191.0 L203.03992941950293 191.0 L201.94149254630565 191.0 L200.84305567310838 191.0 L199.74461879991105 191.0 L198.64618192671372 191.0 L197.54774505351645 191.0 L196.44930818031918 191.0 L195.35087130712185 191.0 L194.25243443392458 191.0 L193.1539975607273 191.0 L192.05556068752998 191.0 L190.9571238143327 191.0 L189.85868694113543 191.0 L188.7602500679381 191.0 L187.66181319474083 191.0 L186.5633763215435 191.0 L185.46493944834623 191.0 L184.36650257514896 191.0 L183.26806570195163 191.0 L182.16962882875436 191.0 L181.07119195555708 191.0 L179.97275508235975 191.0 L178.87431820916248 191.0 L177.7758813359652 191.0 L176.67744446276788 191.0 L175.5790075895706 191.0 L174.48057071637328 191.0 L173.382133843176 191.0 L172.28369696997873 191.0 L171.1852600967814 191.0 L170.08682322358413 191.0 L168.9883863503868 191.0 L167.88994947718953 191.0 L166.7915126039922 191.0 L165.69307573079493 191.0 L164.59463885759766 191.0 L163.49620198440033 191.0 L162.39776511120306 191.0 L161.29932823800578 191.0 L160.20089136480846 191.0 L159.10245449161118 191.0 L158.0040176184139 191.0 L156.90558074521658 191.0 L155.8071438720193 191.0 L154.70870699882198 191.0 L153.6102701256247 191.0 L152.51183325242744 191.0 L151.4133963792301 191.0 L150.31495950603284 191.0 L149.2165226328355 191.0 L148.11808575963823 191.0 L147.01964888644093 191.0 L145.92121201324363 191.0 L144.82277514004636 191.0 L143.72433826684906 191.0 L142.62590139365176 191.0 L141.5274645204545 191.0 L140.42902764725716 191.0 L139.33059077405989 191.0 L138.23215390086258 191.0 L137.13371702766528 191.0 L136.035280154468 191.0 L134.93684328127068 191.0 L133.8384064080734 191.0 L132.7399695348761 191.0 L131.6415326616788 191.0 L130.54309578848154 191.0 L129.44465891528424 191.0 L128.34622204208694 191.0 L127.24778516888965 191.0 L126.14934829569236 191.0 L125.05091142249506 191.0 L123.95247454929778 191.0 L122.85403767610048 191.0 L121.75560080290319 191.0 L120.65716392970587 191.0 L119.55872705650859 191.0 L118.4602901833113 191.0 L117.361853310114 191.0 L116.26341643691671 191.0 L115.16497956371941 191.0 L114.06654269052213 191.0 L112.96810581732483 191.0 L111.86966894412754 191.0 L110.77123207093025 191.0 L109.67279519773295 191.0 L108.57435832453567 191.0 L107.47592145133837 191.0 L106.37748457814106 191.0 L105.27904770494376 191.0 L104.18061083174648 191.0 L103.08217395854918 191.0 L101.98373708535189 191.0 L100.8853002121546 191.0 L99.7868633389573 191.0 L98.68842646576002 191.0 L97.58998959256272 191.0 L96.49155271936543 191.0 L95.39311584616813 191.0 L94.29467897297084 191.0 L93.19624209977354 191.0 L92.09780522657624 191.0 L90.99936835337897 191.0 L89.90093148018167 191.0 L88.80249460698437 191.0 L87.70405773378708 191.0 L86.6056208605898 191.0 L85.5071839873925 191.0 L84.4087471141952 191.0 L83.31031024099791 191.0 L82.2118733678006 191.0 L81.11343649460332 191.0 L80.01499962140602 191.0 L78.91656274820873 191.0 L77.81812587501145 191.0 L76.71968900181415 191.0 L75.62125212861685 191.0 L74.52281525541954 191.0 L73.42437838222226 191.0 L72.32594150902497 191.0 L71.22750463582767 191.0 L70.12906776263038 191.0 L69.03063088943308 191.0 L67.9321940162358 191.0 L66.8337571430385 191.0 L65.7353202698412 191.0 L64.63688339664391 191.0 L63.538446523446616 191.0 L62.44000965024932 191.0 L61.34157277705202 191.0 L60.243135903854736 191.0 L59.144699030657435 191.0 L58.04626215746015 191.0 L56.94782528426285 191.0 L55.849388411065554 191.0 L54.75095153786826 191.0 L53.652514664670974 191.0 L52.554077791473674 191.0 L51.45564091827639 191.0 L50.35720404507909 191.0 L49.25876717188179 191.0 L48.1603302986845 191.0 L47.061893425487206 191.0 L45.96345655228991 191.0 L44.86501967909262 191.0 L43.766582805895325 191.0 L42.66814593269803 191.0 L41.56970905950074 191.0 L40.471272186303445 191.0 L39.37283531310615 191.0 L38.27439843990886 191.0 L37.175961566711564 191.0 L36.07752469351427 191.0 L34.97908782031698 191.0 L33.88065094711968 191.0 L32.78221407392239 191.0 L31.683777200725096 191.0 Z\" fill=\"rgb(163,153,153)\" stroke-width=\"1.0\" fill-opacity=\"0.2980392156862745\">\n",
" </path>\n",
" </g>\n",
" <g>\n",
" <path d=\"M31.683777200725096 183.18538870328055 L31.683777200725096 183.18538870328055 L32.78221407392239 182.82798864449765 L33.88065094711968 182.48450933227323 L34.97908782031698 182.1575843813256 L36.07752469351427 181.84968704096227 L37.175961566711564 181.56308539679347 L38.27439843990886 181.29980078708024 L39.37283531310615 181.06157050696768 L40.471272186303445 180.8498157681056 L41.56970905950074 180.66561574220833 L42.66814593269803 180.50968834973307 L43.766582805895325 180.3823782650945 L44.86501967909262 180.28365240469054 L45.96345655228991 180.21310295119153 L47.061893425487206 180.16995775505197 L48.1603302986845 180.15309775002768 L49.25876717188179 180.16108083119113 L50.35720404507909 180.1921714783626 L51.45564091827639 180.24437527077998 L52.554077791473674 180.31547733466314 L53.652514664670974 180.40308369705667 L54.75095153786826 180.50466448828442 L55.849388411065554 180.61759794123742 L56.94782528426285 180.73921417664383 L58.04626215746015 180.86683783608984 L59.144699030657435 180.9978287242534 L60.243135903854736 181.1296197429472 L61.34157277705202 181.25975153580336 L62.44000965024932 181.3859034070326 L63.538446523446616 181.50592022387914 L64.63688339664391 181.6178351536564 L65.7353202698412 181.71988821667435 L66.8337571430385 181.81054075088588 L67.9321940162358 181.88848597869412 L69.03063088943308 181.95265593832136 L70.12906776263038 182.002225090003 L71.22750463582767 182.03661093096025 L72.32594150902497 182.0554719538463 L73.42437838222226 182.05870326357726 L74.52281525541954 182.046430130594 L75.62125212861685 182.0189997089243 L76.71968900181415 181.97697108973 L77.81812587501145 181.9211038004273 L78.91656274820873 181.8523448010346 L80.01499962140602 181.77181397790216 L81.11343649460332 181.68078809463583 L82.2118733678006 181.58068313426065 L83.31031024099791 181.47303495792008 L84.4087471141952 181.35947821502268 L85.5071839873925 181.2417234678689 L86.6056208605898 181.1215325394117 L87.70405773378708 181.00069215375888 L88.80249460698437 180.880986012173 L89.90093148018167 180.7641655286846 L90.99936835337897 180.65191953441578 L92.09780522657624 180.54584334338594 L93.19624209977354 180.44740764990343 L94.29467897297084 180.35792779382908 L95.39311584616813 180.27853398064576 L96.49155271936543 180.2101430747466 L97.58998959256272 180.153432593888 L98.68842646576002 180.10881751868254 L99.7868633389573 180.07643049279795 L100.8853002121546 180.05610592788963 L101.98373708535189 180.04736844410536 L103.08217395854918 180.04942597526042 L104.18061083174648 180.06116775144497 L105.27904770494376 180.08116724566202 L106.37748457814106 180.10769004038224 L107.47592145133837 180.1387064402758 L108.57435832453567 180.17190853445837 L109.67279519773295 180.2047313007657 L110.77123207093025 180.23437725072256 L111.86966894412754 180.25784404110826 L112.96810581732483 180.27195442948428 L114.06654269052213 180.27338792873726 L115.16497956371941 180.25871352034054 L116.26341643691671 180.2244228170606 L117.361853310114 180.1669631213268 L118.4602901833113 180.08276990228725 L119.55872705650859 179.968298308386 L120.65716392970587 179.82005343790095 L121.75560080290319 179.63461920131664 L122.85403767610048 179.40868572031815 L123.95247454929778 179.13907531208886 L125.05091142249506 178.82276719820436 L126.14934829569236 178.45692114901541 L127.24778516888965 178.0389003221444 L128.34622204208694 177.56629357386905 L129.44465891528424 177.03693751243856 L130.54309578848154 176.4489385220522 L131.6415326616788 175.800694916282 L132.7399695348761 175.09091928292077 L133.8384064080734 174.31866096294266 L134.93684328127068 173.48332847044355 L136.035280154468 172.5847115153868 L137.13371702766528 171.6230021449209 L138.23215390086258 170.59881438093396 L139.33059077405989 169.51320161040613 L140.42902764725716 168.3676708898572 L141.5274645204545 167.1641932638571 L142.62590139365176 165.90520917693763 L143.72433826684906 164.59362808359234 L144.82277514004636 163.2328214353722 L145.92121201324363 161.82660834829713 L147.01964888644093 160.3792334260179 L148.11808575963823 158.8953364301013 L149.2165226328355 157.3799137414103 L150.31495950603284 155.83827183666182 L151.4133963792301 154.27597330030656 L152.51183325242744 152.69877619106464 L153.6102701256247 151.11256787084716 L154.70870699882198 149.52329466688616 L155.8071438720193 147.93688896203432 L156.90558074521658 146.35919548033263 L158.0040176184139 144.7958986443031 L159.10245449161118 143.2524529185905 L160.20089136480846 141.7340180163 L161.29932823800578 140.24540072802571 L162.39776511120306 138.7910049413428 L163.49620198440033 137.37479115661245 L164.59463885759766 136.00024648310287 L165.69307573079493 134.67036573120373 L166.7915126039922 133.38764381773768 L167.88994947718953 132.1540792904645 L168.9883863503868 130.97118837387808 L170.08682322358413 129.84002856078888 L171.1852600967814 128.7612304409853 L172.28369696997873 127.73503618601643 L173.382133843176 126.76134291041619 L174.48057071637328 125.83974901420322 L175.5790075895706 124.96960158345607 L176.67744446276788 124.15004298520165 L177.7758813359652 123.3800549346178 L178.87431820916248 122.65849852664368 L179.97275508235975 121.98414899680444 L181.07119195555708 121.35572428985813 L182.16962882875436 120.77190685054222 L183.26806570195163 120.23135838732037 L184.36650257514896 119.7327276776028 L185.46493944834623 119.27465176250672 L186.5633763215435 118.85575110488286 L187.66181319474083 118.47461944399478 L188.7602500679381 118.12980916640782 L189.85868694113543 117.81981302307831 L190.9571238143327 117.54304296058694 L192.05556068752998 117.2978067083439 L193.1539975607273 117.08228258669787 L194.25243443392458 116.89449279072157 L195.35087130712185 116.73227518111472 L196.44930818031918 116.59325339947148 L197.54774505351645 116.47480494258502 L198.64618192671372 116.37402670093651 L199.74461879991105 116.28769740932432 L200.84305567310838 116.212236488205 L201.94149254630565 116.14365888348516 L203.03992941950293 116.07752574585045 L204.13836629270025 116.00889112702559 L205.23680316589753 115.93224530284144 L206.3352400390948 115.8414558477847 L207.43367691229213 115.72970816329364 L208.5321137854894 115.58944777722952 L209.63055065868667 115.41232735471603 L210.728987531884 115.1891619572713 L211.82742440508127 114.90989662169504 L212.9258612782786 114.56359076506304 L214.02429815147588 114.13842422040983 L215.12273502467315 113.62172983382901 L216.22117189787048 113.00005747587403 L217.31960877106775 112.25927401157736 L218.41804564426502 111.38470321375492 L219.51648251746235 110.36130878178943 L220.61491939065962 109.17392254063165 L221.7133562638569 107.80751855129027 L222.81179313705422 106.24753228577511 L223.9102300102515 104.48022224049208 L225.00866688344877 102.4930694293848 L226.1071037566461 100.27520817234652 L227.20554062984343 97.8178795471178 L228.3039775030407 95.11489688709857 L229.40241437623797 92.1631108733107 L230.5008512494353 88.96286018151994 L231.59928812263257 85.51839240138945 L232.6977249958299 81.8382391359738 L233.79616186902717 77.93552890065607 L234.89459874222445 73.82822174099616 L235.99303561542177 69.53925042999919 L237.09147248861905 65.0965547145759 L238.18990936181632 60.53299735800849 L239.28834623501365 55.886153639436316 L240.38678310821092 51.197969458985256 L241.4852199814082 46.51428716291275 L242.58365685460552 41.884242520573 L243.6820937278028 37.359540801246396 L244.78053060100007 32.993624439551326 L245.8789674741974 28.840749154848396 L246.97740434739467 24.954989408893255 L248.075841220592 21.38919755700843 L249.17427809378927 18.193943795309167 L250.27271496698654 15.416465878049053 L251.37115184018387 13.099658455531 L252.46958871338114 11.281131685948964 L253.56802558657841 9.992367471598214 L254.66646245977574 9.257999279326782 L255.76489933297307 9.09523809523813 L256.86333620617035 9.513462752279338 L257.9617730793676 10.51398781788339 L259.06020995256495 12.090016635912036 L260.1586468257622 14.226781208156922 L261.2570836989595 16.90186461790475 L262.3555205721568 20.085695886962895 L263.4539574453541 23.742201756181828 L264.55239431855136 27.829595104546513 L265.6508311917487 32.30127576006444 L266.74926806494597 37.106816452806356 L267.8477049381433 42.19300471638962 L268.94614181134057 47.504910708107445 L270.04457868453784 52.98695118742947 L271.14301555773517 58.58392121576941 L272.24145243093244 64.24196741993389 L273.3398893041297 69.90947976164249 L274.43832617732704 75.5378825103833 L275.5367630505243 81.0823093403658 L276.63519992372164 86.5021519687525 L277.73363679691886 91.76147632608013 L278.8320736701162 96.82930471509822 L279.93051054331346 101.67976660398736 L281.0289474165108 106.29212447178247 L282.12738428970806 110.65068436565814 L283.2258211629054 114.74460346226745 L284.3242580361027 118.56760890300019 L285.4226949093 122.1176434830774 L286.5211317824972 125.39645443395719 L287.61956865569454 128.40914159088382 L288.7180055288918 131.16368074671533 L289.81644240208914 133.67043703913612 L290.9148792752864 135.94168189040994 L292.01331614848374 137.99112541066953 L293.111753021681 139.8334743802356 L294.2101898948783 141.48402403149282 L295.30862676807556 142.95828993575236 L296.4070636412729 144.2716844338279 L297.5055005144702 145.43924028687417 L298.6039373876675 146.47538260965987 L299.7023742608648 147.39374871247549 L300.8008111340621 148.2070542392743 L301.89924800725936 148.92700295689127 L302.99768488045663 149.56423672322626 L304.09612175365396 150.12832153407507 L305.19455862685123 150.62776510680797 L306.29299550004856 151.0700611888231 L307.39143237324583 151.46175566218596 L308.48986924644316 151.808529534796 L309.5883061196404 152.11529404454274 L310.6867429928377 152.38629333859632 L311.785179866035 152.62521050851944 L312.8836167392323 152.83527314767696 L313.9820536124296 153.01935503586472 L315.0804904856269 153.1800710335249 L316.1789273588242 153.31986277145904 L317.27736423202145 153.4410732393302 L318.3758011052187 153.54600889573396 L319.47423797841606 153.6369884329842 L320.57267485161333 153.71637782036262 L321.67111172481066 153.786611710457 L322.76954859800793 153.85020171528723 L323.86798547120526 153.90973243420981 L324.96642234440253 153.967846437485 L326.0648592175998 154.02721967277063 L327.16329609079713 154.09052896335976 L328.2617329639944 154.1604134051482 L329.36016983719173 154.23943154449384 L330.458606710389 154.33001623346598 L331.55704358358633 154.4344290163632 L332.65548045678355 154.55471580713456 L333.7539173299809 154.6926654780297 L334.85235420317815 154.84977280287347 L335.9507910763755 155.02720699179147 L337.04922794957275 155.22578682623572 L338.1476648227701 155.44596316185192 L339.24610169596735 155.68780931982238 L340.3445385691646 155.95101964188657 L341.4429754423619 156.23491624657143 L342.5414123155592 156.5384637996327 L343.6398491887565 156.86029190472732 L344.73828606195383 157.19872453435207 L345.8367229351511 157.55181575865532 L346.93515980834843 157.9173908925672 L348.0335966815457 158.29309207084012 L349.132033554743 158.67642717646473 L350.23047042794025 159.06482099049072 L351.3289073011376 159.45566740014868 L352.42734417433485 159.84638149664733 L353.5257810475322 160.23445041323276 L354.6242179207295 160.61748179698233 L355.7226547939268 160.99324887314222 L356.82109166712405 161.3597311472192 L357.9195285403213 161.71514989592652 L359.01796541351865 162.0579977216637 L360.1164022867159 162.3870615843984 L361.21483915991325 162.70143887726206 L362.3132760331105 163.00054627516232 L363.41171290630786 163.28412125621142 L364.51014977950507 163.55221637038582 L365.6085866527024 163.8051865048576 L366.7070235258997 164.04366956689273 L367.805460399097 164.26856116888462 L368.9038972722943 164.4809840516806 L370.0023341454916 164.68225311750544 L371.1007710186889 164.873837058286 L372.19920789188615 165.0573176550471 L373.2976447650834 165.23434788573132 L374.39608163828075 165.40661000930103 L375.494518511478 165.57577479104992 L376.59295538467535 165.74346299632168 L377.6913922578726 165.91121020695903 L378.78982913106995 166.0804359075998 L379.88826600426717 166.25241764943792 L380.9867028774645 166.42827093059105 L382.0851397506618 166.60893523934607 L383.1835766238591 166.79516649507443 L384.2820134970564 166.98753589837818 L385.3804503702537 167.18643497478104 L386.478887243451 167.39208637338362 L387.57732411664824 167.60455977202358 L388.67576098984557 167.82379205225925 L389.77419786304284 168.04961074911304 L390.8726347362402 168.28175965932792 L391.97107160943744 168.51992541403004 L393.0695084826348 168.76376379168147 L394.16794535583205 169.01292456767814 L395.2663822290293 169.26707376839568 L396.3648191022266 169.5259123181411 L397.4632559754239 169.78919023326432 L398.5616928486212 170.05671572236162 L399.6601297218185 170.3283587868135 L400.7585665950158 170.6040491719304 L401.8570034682131 170.8837687845934 L402.95544034141034 171.16753895661077 L404.05387721460767 171.45540318203862 L405.15231408780494 171.74740617985287 L406.25075096100227 172.04357032003054 L407.34918783419954 172.34387059228916 L408.44762470739687 172.6482093854596 L409.54606158059414 172.95639237715426 L410.6444984537914 173.26810680611715 L411.74293532698874 173.58290331426696 L412.841372200186 173.90018240557777 L413.93980907338334 174.21918638077278 L415.0382459465806 174.5389973788119 L416.13668281977795 174.85854189866626 L417.2351196929752 175.17660189957365 L418.3335565661725 175.4918322973179 L419.43199343936976 175.8027844006787 L420.5304303125671 176.1079345782172 L421.62886718576436 176.40571722211467 L422.7273040589617 176.69456089241848 L423.82574093215896 176.97292638934712 L424.9241778053563 177.23934541849945 L426.02261467855357 177.49245848663804 L427.12105155175084 177.73105069430386 L428.2194884249481 177.9540841734826 L429.31792529814544 178.1607260491454 L430.4163621713427 178.35037097594724 L431.51479904454004 178.5226575072589 L432.6132359177373 178.67747778339665 L433.71167279093464 178.81498026909242 L434.81010966413186 178.93556551642203 L435.9085465373292 179.03987516843605 L437.00698341052646 179.12877464127374 L438.1054202837238 179.20333012044838 L439.2038571569211 179.26478067367796 L440.3022940301184 179.31450641325432 L441.4007309033157 179.3539937325466 L442.49916777651293 179.3847986927625 L443.59760464971026 179.40850964830523 L444.69604152290754 179.42671017436226 L445.79447839610486 179.4409433025226 L446.89291526930214 179.45267798409796 L447.99135214249947 179.4632785919926 L449.08978901569674 179.47397814637918 L450.188225888894 179.48585581305042 L451.2866627620913 179.49981908180862 L452.3850996352886 179.51659089073328 L453.4835365084859 179.53670182499354 L454.5819733816832 179.56048738951353 L455.6804102548805 179.5880902357985 L456.7788471280778 179.6194671162123 L457.87728400127503 179.654400244767 L458.97572087447236 179.69251266216972 L460.07415774766963 179.73328713408608 L461.17259462086696 179.77608805464186 L462.27103149406423 179.8201857812963 L463.36946836726156 179.86478279165675 L464.46790524045883 179.90904102705562 L465.5663421136561 179.95210977157478 L466.66477898685343 179.99315340884752 L467.7632158600507 180.03137840289503 L468.86165273324804 180.066058864259 L469.9600896064453 180.09656008971822 L471.05852647964264 180.1223595038999 L472.1569633528399 180.1430644849071 L473.2554002260372 180.15842662414687 L474.35383709923445 180.16835205279676 L475.4522739724318 180.17290756307287 L476.55071084562906 180.1723223601853 L477.6491477188264 180.16698539830014 L478.74758459202366 180.1574383778915 L479.846021465221 180.1443646087668 L480.9444583384182 180.12857406840772 L482.04289521161553 180.11098510432518 L483.1413320848128 180.09260333696986 L484.23976895801013 180.0744984115744 L485.3382058312074 180.0577793187295 L486.43664270440473 180.04356905077353 L487.535079577602 180.03297938137501 L488.63351645079933 180.02708654729247 L489.73195332399655 180.02690857374213 L490.8303901971939 180.03338491897074 L491.92882707039115 180.04735902173044 L493.0272639435885 180.06956422087325 L494.1257008167858 180.10061338383053 L495.2241376899831 180.14099243584238 L496.3225745631804 180.19105783061912 L497.4210114363776 180.2510378521697 L498.51944830957495 180.3210374933495 L499.6178851827722 180.40104652548894 L500.71632205596956 180.49095026086908 L501.8147589291668 180.59054242051602 L502.91319580236416 180.699539457378 L504.01163267556143 180.8175956517157 L505.1100695487587 180.9443182923836 L506.208506421956 181.07928228410586 L507.3069432951533 181.22204357499544 L508.4053801683506 181.3721508773434 L509.5038170415479 181.52915525397714 L510.6022539147452 181.6926172573013 L511.7006907879425 181.8621114329876 L512.7991276611398 182.0372281294065 L513.8975645343371 182.2175726815431 L514.9960014075343 182.40276215886567 L516.0944382807317 182.5924199754962 L517.1928751539289 182.78616875389844 L518.2913120271263 182.98362190686484 L519.3897489003235 183.1843744545607 L520.4881857735207 183.38799362251535 L521.5866226467182 183.5940097724984 L522.6850595199154 183.80190820190484 L523.7834963931126 184.01112231016484 L524.8819332663099 184.22102857507662 L525.9803701395073 184.4309437106695 L527.0788070127046 184.64012429446322 L528.1772438859018 184.8477690592343 L529.2756807590991 185.05302394613958 L530.3741176322965 185.25498991569955 L531.4725545054938 185.45273341396108 L532.570991378691 185.64529929610245 L533.6694282518882 185.83172592146934 L534.7678651250857 186.01106205482566 L535.8663019982829 186.18238514040317 L536.9647388714802 186.3448204597258 L538.0631757446774 186.49756064241416 L539.1616126178749 186.63988497219916 L540.2600494910721 186.77117791884376 L541.3584863642693 186.89094633098188 L542.4569232374666 186.99883474514357 L543.5553601106639 187.09463830228242 L544.6537969838613 187.17831281447422 L545.7522338570585 187.24998159030716 L546.8506707302558 187.30993870664443 L547.9491076034532 187.35864850531885 L549.0475444766504 187.39674119389642 L550.1459813498477 187.42500453746055 L551.2444182230449 187.4443717405506 L552.3428550962424 187.45590573167718 L553.4412919694396 187.46078017368535 L554.5397288426369 187.46025762789122 L555.6381657158341 187.45566539456934 L556.7366025890315 187.44836963330457 L557.8350394622288 187.4397484304991 L558.933476335426 187.4311645249524 L560.0319132086233 187.4239384235458 L561.1303500818207 187.41932263607654 L562.228786955018 187.41847773053627 L563.3272238282152 187.4224508579371 L564.4256607014124 187.43215732053557 L565.5240975746099 187.44836566138403 L566.6225344478071 187.47168663991252 L567.7209713210044 187.502566331905 L568.8194081942016 187.54128345762933 L569.9178450673991 187.5879509043071 L571.0162819405963 187.64252127405177 L572.1147188137935 187.70479616127696 L573.2131556869908 187.77443874946476 L574.3115925601882 187.85098922057682 L575.4100294333855 187.93388239497494 L576.5084663065827 188.02246696818594 L577.6069031797801 188.11602568477525 L578.7053400529774 188.213795789379 L579.8037769261746 188.31498911979364 L580.9022137993719 188.4188112550181 L582.0006506725692 188.52447919936455 L583.0990875457666 188.63123716844956 L584.1975244189638 188.73837013967275 L585.2959612921611 188.84521493393504 L586.3943981653584 188.95116870196526 L587.4928350385557 189.05569479295946 L588.591271911753 189.15832608089326 L589.6897087849502 189.25866591101493 L590.7881456581476 189.35638690255632 L591.8865825313449 189.45122790135053 L592.9850194045422 189.54298941646587 \" fill=\"none\" stroke-width=\"1.6500000000000001\" stroke=\"rgb(76,76,76)\" stroke-opacity=\"1.0\">\n",
" </path>\n",
" </g>\n",
" <g>\n",
" <path d=\"M30.414373427362694 170.55500073272225 L30.414373427362694 170.55500073272225 L31.604759862875913 169.92078837087956 L32.79514629838913 169.3136041665635 L33.985532733902346 168.73611896441753 L35.175919169415565 168.19079870079878 L36.36630560492878 167.67988146561194 L37.556692040441995 167.20535762430276 L38.74707847595521 166.76895326831587 L39.93746491146843 166.37211719603553 L41.12785134698165 166.01601155684622 L42.31823778249486 165.70150622025545 L43.50862421800808 165.42917686177447 L44.6990106535213 165.19930668913787 L45.88939708903452 165.01189166803292 L47.079783524547736 164.86664904721587 L48.270169960060954 164.7630289299061 L49.460556395574166 164.70022859266126 L50.650942831087384 164.67720921526995 L51.8413292666006 164.69271465603563 L53.031715702113814 164.74529188639985 L54.22210213762703 164.83331268714076 L55.41248857314025 164.95499620517205 L56.60287500865347 165.10843197480494 L57.79326144416669 165.29160301965157 L58.9836478796799 165.50240867038914 L60.17403431519312 165.73868675856045 L61.36442075070634 165.9982348765438 L62.55480718621955 166.27883042786831 L63.74519362173277 166.57824922923493 L64.93558005724599 166.89428246500648 L66.1259664927592 167.22475183569227 L67.31635292827241 167.56752278322796 L68.50673936378564 167.92051571690848 L69.69712579929885 168.2817152039628 L70.88751223481206 168.64917712737918 L72.07789867032528 169.02103385013407 L73.26828510583852 169.3954974590154 L74.45867154135172 169.7708611923205 L75.64905797686494 170.14549918355013 L76.83944441237816 170.51786467748875 L78.02983084789138 170.88648689556 L79.2202172834046 171.249966743852 L80.4106037189178 171.60697156960865 L81.60099015443103 171.9562291801831 L82.79137658994424 172.2965213424014 L83.98176302545745 172.6266769800101 L85.17214946097067 172.9455652824774 L86.36253589648389 173.252088929982 L87.55292233199711 173.54517762722801 L88.74330876751031 173.8237821229881 L89.93369520302355 174.0868688734167 L91.12408163853677 174.33341548557163 L92.31446807404998 174.56240705375208 L93.5048545095632 174.77283347575425 L94.6952409450764 174.96368780955387 L95.88562738058964 175.13396570387164 L97.07601381610284 175.28266590923602 L98.26640025161606 175.40879185013526 L99.45678668712928 175.51135421428677 L100.6471731226425 175.58937449252812 L101.83755955815573 175.6418893828331 L103.02794599366894 175.66795595494187 L104.21833242918215 175.66665745838168 L105.40871886469537 175.63710964645438 L106.59910530020859 175.57846748222158 L107.7894917357218 175.489932089578 L108.97987817123503 175.370757813043 L110.17026460674823 175.2202592537033 L111.36065104226145 175.03781815540106 L112.55103747777467 174.82289002441584 L113.74142391328789 174.57501037697727 L114.93181034880111 174.29380052147815 L116.12219678431433 173.9789727956245 L117.31258321982754 173.6303351924433 L118.50296965534076 173.24779532252867 L119.69335609085398 172.8313636726435 L120.88374252636719 172.3811561324622 L122.07412896188042 171.89739577146895 L123.26451539739362 171.38041385664584 L124.45490183290684 170.83065010847744 L125.64528826842006 170.24865219799796 L126.83567470393328 169.63507449120576 L128.02606113944648 168.99067604942567 L129.21644757495972 168.31631789540975 L130.40683401047292 167.61295955549645 L131.59722044598615 166.8816548884747 L132.78760688149936 166.12354721230977 L133.9779933170126 165.3398637410981 L135.1683797525258 164.53190934690153 L136.358766188039 163.70105966485664 L137.54915262355223 162.84875356544413 L138.73953905906546 161.97648502522293 L139.92992549457867 161.08579443674998 L141.12031193009187 160.17825940975666 L142.3106983656051 159.25548512875872 L143.5010848011183 158.31909434677823 L144.69147123663151 157.3707171103004 L145.88185767214475 156.41198032643558 L147.07224410765798 155.4444972987287 L148.26263054317118 154.4698573725374 L149.4530169786844 153.4896158434516 L150.64340341419762 152.50528429212176 L151.83378984971085 151.51832151530456 L153.02417628522403 150.53012522509343 L154.21456272073726 149.542024685691 L155.40494915625047 148.5552744490124 L156.59533559176367 147.57104933667614 L157.7857220272769 146.5904407962376 L158.97610846279014 145.6144547340044 L160.1664948983033 144.64401089558777 L161.35688133381655 143.67994382905 L162.54726776932978 142.7230054247552 L163.737654204843 141.77386898178128 L164.9280406403562 140.8331347040768 L166.11842707586942 139.90133648176922 L167.30881351138265 138.97894976555213 L168.49919994689589 138.06640029640815 L169.68958638240906 137.16407341066272 L170.8799728179223 136.27232360303518 L172.07035925343553 135.39148399950247 L173.26074568894876 134.52187536887718 L174.45113212446194 133.66381428822115 L175.64151855997517 132.81762007373393 L176.8319049954884 131.9836200963872 L178.02229143100158 131.1621531208881 L179.2126778665148 130.35357033788358 L180.40306430202804 129.5582338025668 L181.59345073754122 128.7765120477172 L182.78383717305445 128.00877270495167 L183.97422360856768 127.25537204360776 L185.16461004408086 126.51664142085878 L186.3549964795941 125.7928707277655 L187.54538291510733 125.08428901210603 L188.73576935062056 124.3910425578631 L189.9261557861338 123.71317080094822 L191.11654222164697 123.05058055852733 L192.3069286571602 122.40301914276742 L193.49731509267343 121.7700470162921 L194.68770152818666 121.15101072352937 L195.87808796369984 120.54501689692688 L197.06847439921307 119.95090818734644 L198.2588608347263 119.36724200148173 L199.44924727023954 118.79227294397818 L200.63963370575271 118.22393985624754 L201.83002014126595 117.65985831634687 L203.02040657677918 117.09731941386325 L204.21079301229236 116.53329553968622 L205.4011794478056 115.96445383303666 L206.59156588331882 115.38717780734501 L207.781952318832 114.79759753369008 L208.97233875434523 114.19162859703286 L210.16272518985846 113.56501985863055 L211.35311162537164 112.91340986054149 L212.54349806088487 112.23239149861956 L213.7338844963981 111.51758437262421 L214.92427093191134 110.76471400077592 L216.1146573674245 109.96969686625025 L217.30504380293775 109.12873005009261 L218.49543023845098 108.23838400462742 L219.6858166739642 107.29569683955768 L220.8762031094774 106.29826833533694 L222.06658954499062 105.24435177106444 L223.25697598050385 104.13294156220438 L224.44736241601709 102.96385465216805 L225.63774885153026 101.73780359505764 L226.8281352870435 100.4564593083203 L228.01852172255673 99.12250156578295 L229.20890815806996 97.73965544469176 L230.39929459358314 96.31271213463421 L231.58968102909637 94.84753275992904 L232.7800674646096 93.3510341569465 L233.97045390012278 91.8311558791357 L235.160840335636 90.2968080692072 L236.35122677114924 88.75780023215711 L237.54161320666242 87.22475135609207 L238.73199964217565 85.70898225000494 L239.92238607768888 84.22239138839828 L241.11277251320212 82.77731596062117 L242.3031589487153 81.3863802068685 L243.49354538422853 80.06233347174856 L244.68393181974176 78.8178807096743 L245.874318255255 77.66550842432554 L247.06470469076817 76.61730920871693 L248.2550911262814 75.68480816597987 L249.44547756179463 74.8787945289442 L250.63586399730787 74.20916175579578 L251.82625043282104 73.68475925889257 L253.01663686833427 73.3132587256072 L254.2070233038475 73.10103771772468 L255.39740973936068 73.05308289548684 L256.5877961748739 73.17291481198376 L257.77818261038715 73.46253577321443 L258.9685690459003 73.9224017704062 L260.15895548141356 74.55141897677646 L261.3493419169268 75.34696477455691 L262.53972835244 76.30493275366135 L263.7301147879532 77.41980061488242 L264.92050122346643 78.68471943135516 L266.11088765897966 80.09162228476124 L267.30127409449284 81.6313499085577 L268.4916605300061 83.29379064897253 L269.6820469655193 85.0680318031984 L270.87243340103254 86.94251921856515 L272.0628198365457 88.90522193967168 L273.253206272059 90.94379867321156 L274.4435927075722 93.04576290107111 L275.6339791430854 95.19864360735815 L276.8243655785986 97.39013878853608 L278.0147520141118 99.608259180129 L279.20513844962505 101.84145994936192 L280.39552488513823 104.07875846024216 L281.5859113206515 106.30983660485339 L282.7762977561647 108.52512660037495 L283.96668419167787 110.71587956397947 L285.1570706271911 112.87421658594464 L286.34745706270434 114.99316241438585 L287.5378434982175 117.06666223331914 L288.7282299337308 119.08958235079834 L289.918616369244 121.05769590859913 L291.10900280475715 122.96765497393382 L292.29938924027044 124.81695057309516 L293.4897756757836 126.60386237467443 L294.68016211129685 128.32739982561222 L295.8705485468101 129.98723658786162 L297.06093498232326 131.58364011945844 L298.2513214178365 133.11739819503083 L299.4417078533497 134.58974407207802 L300.6320942888629 136.00228188637212 L301.82248072437613 137.3569137087826 L303.01286715988937 138.6557695232807 L304.2032535954026 139.90114119851697 L305.39364003091583 141.09542132971328 L306.584026466429 142.24104762989697 L307.77441290194224 143.34045335545215 L308.9647993374555 144.3960240656259 L310.15518577296865 145.4100608433243 L311.3455722084819 146.3847499487363 L312.5359586439951 147.3221387406155 L313.72634507950835 148.22411758416496 L314.9167315150215 149.09240737023723 L316.10711795053476 149.92855219805313 L317.297504386048 150.73391672218025 L318.48789082156117 151.50968763279104 L319.67827725707446 152.25687872444635 L320.86866369258763 152.97633901060735 L322.0590501281008 153.66876335631804 L323.2494365636141 154.33470512739837 L324.4398229991273 154.97459038843044 L325.63020943464045 155.58873322124884 L326.82059587015374 156.1773517782012 L328.0109823056669 156.74058472800556 L329.20136874118015 157.2785077948015 L330.3917551766934 157.79115013152747 L331.58214161220656 158.27851030597714 L332.7725280477198 158.7405717111135 L333.962914483233 159.1773172400959 L335.15330091874625 159.58874309101446 L336.34368735425943 159.97487158681164 L337.53407378977266 160.3357629127991 L338.7244602252859 160.67152568826748 L339.91484666079907 160.98232630070856 L341.1052330963123 161.2683969419927 L342.29561953182554 161.53004229627015 L343.4860059673387 161.76764484017195 L344.676392402852 161.98166872768874 L345.8667788383652 162.17266224538454 L347.05716527387835 162.34125883863774 L348.24755170939164 162.48817672647647 L349.4379381449048 162.61421714115647 L350.62832458041805 162.72026124859394 L351.8187110159313 162.80726582660967 L353.00909745144446 162.87625779899957 L354.1994838869577 162.92832774396493 L355.3898703224709 162.96462251456694 L356.5802567579841 162.9863371257662 L357.77064319349734 162.99470607643823 L358.96102962901057 162.99099428477285 L360.1514160645238 162.97648782103838 L361.341802500037 162.95248462235537 L362.5321889355502 162.92028536959864 L363.72257537106344 162.8811846967732 L364.9129618065766 162.83646288834538 L366.1033482420899 162.78737820044708 L367.2937346776031 162.73515991821145 L368.4841211131163 162.68100223453627 L369.67450754862955 162.6260590062758 L370.8648939841427 162.57143941330753 L372.05528041965596 162.51820451528135 L373.2456668551692 162.46736467131413 L374.43605329068237 162.41987776061677 L375.62643972619566 162.37664811811652 L376.81682616170883 162.3385260795205 L378.007212597222 162.30630801575194 L379.1975990327353 162.28073672784507 L380.3879854682485 162.26250207055713 L381.5783719037617 162.25224167621639 L382.76875833927494 162.25054165950502 L383.9591447747881 162.25793719852746 L385.14953121030135 162.27491290696224 L386.3399176458146 162.30190293545024 L387.53030408132776 162.33929076655951 L388.720690516841 162.38740869549991 L389.9110769523542 162.44653701695418 L391.10146338786745 162.5169029656589 L392.29184982338063 162.5986794834405 L393.48223625889386 162.69198390711333 L394.6726226944071 162.7968766889537 L395.8630091299203 162.91336027352077 L397.0533955654335 163.0413782607868 L398.24378200094674 163.18081498548915 L399.4341684364599 163.33149563622482 L400.6245548719732 163.49318702524207 L401.8149413074864 163.66559910157955 L403.00532774299955 163.84838727684456 L404.19571417851284 164.04115560541263 L405.386100614026 164.24346083025506 L406.57648704953925 164.45481727318293 L407.7668734850525 164.67470251534272 L408.95725992056566 164.9025637816508 L410.1476463560789 165.13782491283 L411.3380327915921 165.3798937820539 L412.5284192271053 165.6281699910244 L413.71880566261854 165.88205266355848 L414.90919209813177 166.1409481441645 L416.099578533645 166.40427740516185 L417.2899649691582 166.67148296887012 L418.4803514046714 166.94203516125515 L419.67073784018464 167.2154375298834 L420.8611242756978 167.49123128157123 L422.0515107112111 167.76899862296307 L423.2418971467243 168.04836491947205 L424.43228358223746 168.32899962345363 L425.62267001775075 168.61061595991467 L426.8130564532639 168.8929693961885 L428.00344288877716 169.17585495949749 L429.1938293242904 169.45910350187933 L430.38421575980357 169.74257704435166 L431.57460219531686 170.02616336031832 L432.76498863083003 170.30976998114062 L433.9553750663432 170.59331782374582 L435.1457615018565 170.87673465058393 L436.3361479373697 171.15994857586486 L437.5265343728829 171.44288182874234 L438.71692080839614 171.72544497412875 L439.9073072439093 172.00753177553065 L441.09769367942255 172.28901486230004 L442.2880801149358 172.5697423368017 L443.47846655044896 172.84953542616202 L444.6688529859622 173.12818724956355 L445.8592394214754 173.4054627366367 L447.04962585698865 173.68109969657206 L448.24001229250183 173.9548110023154 L449.43039872801506 174.2262878207557 L450.6207851635283 174.49520378922335 L451.8111715990415 174.76122001181676 L453.0015580345547 175.0239907268411 L454.19194447006794 175.28316947958487 L455.3823309055811 175.53841562317885 L456.5727173410944 175.78940096459138 L457.7631037766076 176.03581637291063 L458.95349021212076 176.2773781727552 L460.14387664763404 176.51383415655496 L461.3342630831472 176.74496906500292 L462.52464951866045 176.9706094045069 L463.7150359541737 177.19062749315995 L464.90542238968686 177.40494465171923 L466.0958088252001 177.61353348240408 L467.2861952607133 177.8164192050615 L468.4765816962265 178.01368004648708 L469.66696813173974 178.20544670358183 L470.85735456725297 178.39190092380773 L472.0477410027662 178.5732732664248 L473.2381274382794 178.74984012473757 L474.4285138737926 178.92192010267715 L475.61890030930584 179.08986984828692 L476.809286744819 179.2540794520065 L477.9996731803323 179.41496751915795 L479.1900596158455 179.57297602396534 L480.38044605135866 179.72856504714744 L481.57083248687195 179.88220749108004 L482.7612189223851 180.03438385627445 L483.9516053578983 180.1855771510679 L485.1419917934116 180.33626799359317 L486.33237822892477 180.4869299519198 L487.522764664438 180.63802515533536 L488.71315109995123 180.79000019761065 L489.9035375354644 180.94328234224258 L491.0939239709777 181.09827603047557 L492.2843104064909 181.25535968565134 L493.4746968420041 181.41488280229441 L494.66508327751734 181.57716330536954 L495.8554697130305 181.74248516428815 L497.04585614854375 181.91109624734585 L498.236242584057 182.08320640508396 L499.42662901957016 182.25898577527002 L500.6170154550834 182.43856330739575 L501.8074018905966 182.62202551037734 L502.99778832610986 182.80941543307517 L504.18817476162303 183.0007318928933 L505.37856119713626 183.19592897266537 L506.5689476326495 183.3949158099168 L507.7593340681627 183.59755670511046 L508.94972050367596 183.80367157639776 L510.14010693918914 184.0130367875616 L511.3304933747023 184.22538637318772 L512.5208798102157 184.440413680661 L513.7112662457288 184.65777344246527 L514.901652681242 184.87708428466306 L516.0920391167552 185.09793166860257 L517.2824255522685 185.3198712531653 L518.4728119877818 185.54243265459192 L519.663198423295 185.76512357049046 L520.8535848588082 185.9874342244452 L522.0439712943214 186.20884207809078 L523.2343577298345 186.4288167489701 L524.4247441653479 186.64682506528166 L525.6151306008611 186.8623361830272 L526.8055170363742 187.07482668731137 L527.9959034718875 187.28378559777607 L529.1862899074007 187.4887191984525 L530.3766763429138 187.68915561469115 L531.5670627784272 187.884649064219 L532.7574492139404 188.0747837156398 L533.9478356494536 188.25917709564737 L535.1382220849667 188.4374829956144 L536.32860852048 188.6093938387666 L537.5189949559932 188.77464248053602 L538.7093813915064 188.9330034265749 L539.8997678270197 189.08429346496376 L541.0901542625329 189.22837172102697 L542.280540698046 189.36513915456806 L543.4709271335593 189.49453752995467 L544.6613135690725 189.61654789907536 L545.8517000045857 189.7311886455353 L547.042086440099 189.838513145392 L548.2324728756122 189.9386071051328 L549.4228593111253 190.03158564139147 L550.6132457466385 190.11759016907084 L551.8036321821518 190.19678516509953 L552.994018617665 190.26935487407104 L554.1844050531782 190.3355000195897 L555.3747914886915 190.3954345814145 L556.5651779242046 190.4493826936028 L557.7555643597178 190.49757571298875 L558.945950795231 190.54024950067546 L560.1363372307443 190.57764195196745 L561.3267236662575 190.6099908025245 L562.5171101017708 190.63753173066695 L563.707496537284 190.66049676789763 L564.8978829727971 190.67911302199934 L566.0882694083103 190.69360170968312 L567.2786558438237 190.70417748884432 L568.4690422793368 190.7110480741632 L569.65942871485 190.71441411416728 L570.8498151503633 190.71446930305126 L572.0402015858764 190.71140069659137 L573.2305880213896 190.7053891984489 L574.420974456903 190.69661018106183 L575.6113608924161 190.6852342041868 L576.8017473279293 190.6714277939686 L577.9921337634426 190.65535424615663 L579.1825201989558 190.63717441871123 L580.372906634469 190.61704748149228 L581.5632930699823 190.5951315939132 L582.7536795054955 190.5715844852909 L583.9440659410086 190.54656391701238 L585.1344523765218 190.52022801045752 L586.3248388120351 190.49273542973208 L587.5152252475483 190.46424541353616 L588.7056116830615 190.4349176557827 L589.8959981185748 190.4049120397352 L591.0863845540879 190.37438823531716 L592.2767709896011 190.34350517371337 L593.4671574251144 190.31242041731028 L594.6575438606277 190.28128944629208 L595.8479302961408 190.25026488572388 L597.038316731654 190.2194956986367 L598.2287031671673 190.18912637143143 L599.4190896026804 190.15929611781257 L600.6094760381936 190.1301381264564 L601.799862473707 190.1017788757432 L602.9902489092201 190.07433753620603 L604.1806353447333 190.04792547795972 L605.3710217802466 190.0226458963954 L606.5614082157597 189.9985935649931 L607.7517946512729 189.97585471938336 L608.9421810867863 189.9545070719447 L610.1325675222995 189.93461995143576 L611.3229539578126 189.9162545576099 L612.5133403933258 189.8994643166102 L613.7037268288391 189.8842953193582 L614.8941132643522 189.87078682226255 L616.0844996998655 189.85897178749667 L617.2748861353788 189.8488774389124 L618.4652725708919 189.84052580941173 L619.6556590064051 189.83393425630783 L620.8460454419184 189.82911592284182 L622.0364318774315 189.82608012652236 L623.2268183129448 189.82483265822623 L624.4172047484581 189.82537597991546 L625.6075911839713 189.82770931323478 L626.7979776194844 189.83182861598738 L627.9883640549976 189.8377264483602 L629.1787504905109 189.84539173559415 L630.3691369260241 189.85480943838402 L631.5595233615373 189.8659601464714 L632.7499097970506 189.87881961449963 L633.9402962325637 189.89335826209728 L635.1306826680769 189.90954066223696 L636.3210691035902 189.92732504310268 L637.5114555391034 189.94666282894968 L638.7018419746166 189.96749824475324 L638.7018419746166 191.0 L637.5114555391034 191.0 L636.3210691035902 191.0 L635.1306826680769 191.0 L633.9402962325637 191.0 L632.7499097970506 191.0 L631.5595233615373 191.0 L630.3691369260241 191.0 L629.1787504905109 191.0 L627.9883640549976 191.0 L626.7979776194844 191.0 L625.6075911839713 191.0 L624.4172047484581 191.0 L623.2268183129448 191.0 L622.0364318774315 191.0 L620.8460454419184 191.0 L619.6556590064051 191.0 L618.4652725708919 191.0 L617.2748861353788 191.0 L616.0844996998655 191.0 L614.8941132643522 191.0 L613.7037268288391 191.0 L612.5133403933258 191.0 L611.3229539578126 191.0 L610.1325675222995 191.0 L608.9421810867863 191.0 L607.7517946512729 191.0 L606.5614082157597 191.0 L605.3710217802466 191.0 L604.1806353447333 191.0 L602.9902489092201 191.0 L601.799862473707 191.0 L600.6094760381936 191.0 L599.4190896026804 191.0 L598.2287031671673 191.0 L597.038316731654 191.0 L595.8479302961408 191.0 L594.6575438606277 191.0 L593.4671574251144 191.0 L592.2767709896011 191.0 L591.0863845540879 191.0 L589.8959981185748 191.0 L588.7056116830615 191.0 L587.5152252475483 191.0 L586.3248388120351 191.0 L585.1344523765218 191.0 L583.9440659410086 191.0 L582.7536795054955 191.0 L581.5632930699823 191.0 L580.372906634469 191.0 L579.1825201989558 191.0 L577.9921337634426 191.0 L576.8017473279293 191.0 L575.6113608924161 191.0 L574.420974456903 191.0 L573.2305880213896 191.0 L572.0402015858764 191.0 L570.8498151503633 191.0 L569.65942871485 191.0 L568.4690422793368 191.0 L567.2786558438237 191.0 L566.0882694083103 191.0 L564.8978829727971 191.0 L563.707496537284 191.0 L562.5171101017708 191.0 L561.3267236662575 191.0 L560.1363372307443 191.0 L558.945950795231 191.0 L557.7555643597178 191.0 L556.5651779242046 191.0 L555.3747914886915 191.0 L554.1844050531782 191.0 L552.994018617665 191.0 L551.8036321821518 191.0 L550.6132457466385 191.0 L549.4228593111253 191.0 L548.2324728756122 191.0 L547.042086440099 191.0 L545.8517000045857 191.0 L544.6613135690725 191.0 L543.4709271335593 191.0 L542.280540698046 191.0 L541.0901542625329 191.0 L539.8997678270197 191.0 L538.7093813915064 191.0 L537.5189949559932 191.0 L536.32860852048 191.0 L535.1382220849667 191.0 L533.9478356494536 191.0 L532.7574492139404 191.0 L531.5670627784272 191.0 L530.3766763429138 191.0 L529.1862899074007 191.0 L527.9959034718875 191.0 L526.8055170363742 191.0 L525.6151306008611 191.0 L524.4247441653479 191.0 L523.2343577298345 191.0 L522.0439712943214 191.0 L520.8535848588082 191.0 L519.663198423295 191.0 L518.4728119877818 191.0 L517.2824255522685 191.0 L516.0920391167552 191.0 L514.901652681242 191.0 L513.7112662457288 191.0 L512.5208798102157 191.0 L511.3304933747023 191.0 L510.14010693918914 191.0 L508.94972050367596 191.0 L507.7593340681627 191.0 L506.5689476326495 191.0 L505.37856119713626 191.0 L504.18817476162303 191.0 L502.99778832610986 191.0 L501.8074018905966 191.0 L500.6170154550834 191.0 L499.42662901957016 191.0 L498.236242584057 191.0 L497.04585614854375 191.0 L495.8554697130305 191.0 L494.66508327751734 191.0 L493.4746968420041 191.0 L492.2843104064909 191.0 L491.0939239709777 191.0 L489.9035375354644 191.0 L488.71315109995123 191.0 L487.522764664438 191.0 L486.33237822892477 191.0 L485.1419917934116 191.0 L483.9516053578983 191.0 L482.7612189223851 191.0 L481.57083248687195 191.0 L480.38044605135866 191.0 L479.1900596158455 191.0 L477.9996731803323 191.0 L476.809286744819 191.0 L475.61890030930584 191.0 L474.4285138737926 191.0 L473.2381274382794 191.0 L472.0477410027662 191.0 L470.85735456725297 191.0 L469.66696813173974 191.0 L468.4765816962265 191.0 L467.2861952607133 191.0 L466.0958088252001 191.0 L464.90542238968686 191.0 L463.7150359541737 191.0 L462.52464951866045 191.0 L461.3342630831472 191.0 L460.14387664763404 191.0 L458.95349021212076 191.0 L457.7631037766076 191.0 L456.5727173410944 191.0 L455.3823309055811 191.0 L454.19194447006794 191.0 L453.0015580345547 191.0 L451.8111715990415 191.0 L450.6207851635283 191.0 L449.43039872801506 191.0 L448.24001229250183 191.0 L447.04962585698865 191.0 L445.8592394214754 191.0 L444.6688529859622 191.0 L443.47846655044896 191.0 L442.2880801149358 191.0 L441.09769367942255 191.0 L439.9073072439093 191.0 L438.71692080839614 191.0 L437.5265343728829 191.0 L436.3361479373697 191.0 L435.1457615018565 191.0 L433.9553750663432 191.0 L432.76498863083003 191.0 L431.57460219531686 191.0 L430.38421575980357 191.0 L429.1938293242904 191.0 L428.00344288877716 191.0 L426.8130564532639 191.0 L425.62267001775075 191.0 L424.43228358223746 191.0 L423.2418971467243 191.0 L422.0515107112111 191.0 L420.8611242756978 191.0 L419.67073784018464 191.0 L418.4803514046714 191.0 L417.2899649691582 191.0 L416.099578533645 191.0 L414.90919209813177 191.0 L413.71880566261854 191.0 L412.5284192271053 191.0 L411.3380327915921 191.0 L410.1476463560789 191.0 L408.95725992056566 191.0 L407.7668734850525 191.0 L406.57648704953925 191.0 L405.386100614026 191.0 L404.19571417851284 191.0 L403.00532774299955 191.0 L401.8149413074864 191.0 L400.6245548719732 191.0 L399.4341684364599 191.0 L398.24378200094674 191.0 L397.0533955654335 191.0 L395.8630091299203 191.0 L394.6726226944071 191.0 L393.48223625889386 191.0 L392.29184982338063 191.0 L391.10146338786745 191.0 L389.9110769523542 191.0 L388.720690516841 191.0 L387.53030408132776 191.0 L386.3399176458146 191.0 L385.14953121030135 191.0 L383.9591447747881 191.0 L382.76875833927494 191.0 L381.5783719037617 191.0 L380.3879854682485 191.0 L379.1975990327353 191.0 L378.007212597222 191.0 L376.81682616170883 191.0 L375.62643972619566 191.0 L374.43605329068237 191.0 L373.2456668551692 191.0 L372.05528041965596 191.0 L370.8648939841427 191.0 L369.67450754862955 191.0 L368.4841211131163 191.0 L367.2937346776031 191.0 L366.1033482420899 191.0 L364.9129618065766 191.0 L363.72257537106344 191.0 L362.5321889355502 191.0 L361.341802500037 191.0 L360.1514160645238 191.0 L358.96102962901057 191.0 L357.77064319349734 191.0 L356.5802567579841 191.0 L355.3898703224709 191.0 L354.1994838869577 191.0 L353.00909745144446 191.0 L351.8187110159313 191.0 L350.62832458041805 191.0 L349.4379381449048 191.0 L348.24755170939164 191.0 L347.05716527387835 191.0 L345.8667788383652 191.0 L344.676392402852 191.0 L343.4860059673387 191.0 L342.29561953182554 191.0 L341.1052330963123 191.0 L339.91484666079907 191.0 L338.7244602252859 191.0 L337.53407378977266 191.0 L336.34368735425943 191.0 L335.15330091874625 191.0 L333.962914483233 191.0 L332.7725280477198 191.0 L331.58214161220656 191.0 L330.3917551766934 191.0 L329.20136874118015 191.0 L328.0109823056669 191.0 L326.82059587015374 191.0 L325.63020943464045 191.0 L324.4398229991273 191.0 L323.2494365636141 191.0 L322.0590501281008 191.0 L320.86866369258763 191.0 L319.67827725707446 191.0 L318.48789082156117 191.0 L317.297504386048 191.0 L316.10711795053476 191.0 L314.9167315150215 191.0 L313.72634507950835 191.0 L312.5359586439951 191.0 L311.3455722084819 191.0 L310.15518577296865 191.0 L308.9647993374555 191.0 L307.77441290194224 191.0 L306.584026466429 191.0 L305.39364003091583 191.0 L304.2032535954026 191.0 L303.01286715988937 191.0 L301.82248072437613 191.0 L300.6320942888629 191.0 L299.4417078533497 191.0 L298.2513214178365 191.0 L297.06093498232326 191.0 L295.8705485468101 191.0 L294.68016211129685 191.0 L293.4897756757836 191.0 L292.29938924027044 191.0 L291.10900280475715 191.0 L289.918616369244 191.0 L288.7282299337308 191.0 L287.5378434982175 191.0 L286.34745706270434 191.0 L285.1570706271911 191.0 L283.96668419167787 191.0 L282.7762977561647 191.0 L281.5859113206515 191.0 L280.39552488513823 191.0 L279.20513844962505 191.0 L278.0147520141118 191.0 L276.8243655785986 191.0 L275.6339791430854 191.0 L274.4435927075722 191.0 L273.253206272059 191.0 L272.0628198365457 191.0 L270.87243340103254 191.0 L269.6820469655193 191.0 L268.4916605300061 191.0 L267.30127409449284 191.0 L266.11088765897966 191.0 L264.92050122346643 191.0 L263.7301147879532 191.0 L262.53972835244 191.0 L261.3493419169268 191.0 L260.15895548141356 191.0 L258.9685690459003 191.0 L257.77818261038715 191.0 L256.5877961748739 191.0 L255.39740973936068 191.0 L254.2070233038475 191.0 L253.01663686833427 191.0 L251.82625043282104 191.0 L250.63586399730787 191.0 L249.44547756179463 191.0 L248.2550911262814 191.0 L247.06470469076817 191.0 L245.874318255255 191.0 L244.68393181974176 191.0 L243.49354538422853 191.0 L242.3031589487153 191.0 L241.11277251320212 191.0 L239.92238607768888 191.0 L238.73199964217565 191.0 L237.54161320666242 191.0 L236.35122677114924 191.0 L235.160840335636 191.0 L233.97045390012278 191.0 L232.7800674646096 191.0 L231.58968102909637 191.0 L230.39929459358314 191.0 L229.20890815806996 191.0 L228.01852172255673 191.0 L226.8281352870435 191.0 L225.63774885153026 191.0 L224.44736241601709 191.0 L223.25697598050385 191.0 L222.06658954499062 191.0 L220.8762031094774 191.0 L219.6858166739642 191.0 L218.49543023845098 191.0 L217.30504380293775 191.0 L216.1146573674245 191.0 L214.92427093191134 191.0 L213.7338844963981 191.0 L212.54349806088487 191.0 L211.35311162537164 191.0 L210.16272518985846 191.0 L208.97233875434523 191.0 L207.781952318832 191.0 L206.59156588331882 191.0 L205.4011794478056 191.0 L204.21079301229236 191.0 L203.02040657677918 191.0 L201.83002014126595 191.0 L200.63963370575271 191.0 L199.44924727023954 191.0 L198.2588608347263 191.0 L197.06847439921307 191.0 L195.87808796369984 191.0 L194.68770152818666 191.0 L193.49731509267343 191.0 L192.3069286571602 191.0 L191.11654222164697 191.0 L189.9261557861338 191.0 L188.73576935062056 191.0 L187.54538291510733 191.0 L186.3549964795941 191.0 L185.16461004408086 191.0 L183.97422360856768 191.0 L182.78383717305445 191.0 L181.59345073754122 191.0 L180.40306430202804 191.0 L179.2126778665148 191.0 L178.02229143100158 191.0 L176.8319049954884 191.0 L175.64151855997517 191.0 L174.45113212446194 191.0 L173.26074568894876 191.0 L172.07035925343553 191.0 L170.8799728179223 191.0 L169.68958638240906 191.0 L168.49919994689589 191.0 L167.30881351138265 191.0 L166.11842707586942 191.0 L164.9280406403562 191.0 L163.737654204843 191.0 L162.54726776932978 191.0 L161.35688133381655 191.0 L160.1664948983033 191.0 L158.97610846279014 191.0 L157.7857220272769 191.0 L156.59533559176367 191.0 L155.40494915625047 191.0 L154.21456272073726 191.0 L153.02417628522403 191.0 L151.83378984971085 191.0 L150.64340341419762 191.0 L149.4530169786844 191.0 L148.26263054317118 191.0 L147.07224410765798 191.0 L145.88185767214475 191.0 L144.69147123663151 191.0 L143.5010848011183 191.0 L142.3106983656051 191.0 L141.12031193009187 191.0 L139.92992549457867 191.0 L138.73953905906546 191.0 L137.54915262355223 191.0 L136.358766188039 191.0 L135.1683797525258 191.0 L133.9779933170126 191.0 L132.78760688149936 191.0 L131.59722044598615 191.0 L130.40683401047292 191.0 L129.21644757495972 191.0 L128.02606113944648 191.0 L126.83567470393328 191.0 L125.64528826842006 191.0 L124.45490183290684 191.0 L123.26451539739362 191.0 L122.07412896188042 191.0 L120.88374252636719 191.0 L119.69335609085398 191.0 L118.50296965534076 191.0 L117.31258321982754 191.0 L116.12219678431433 191.0 L114.93181034880111 191.0 L113.74142391328789 191.0 L112.55103747777467 191.0 L111.36065104226145 191.0 L110.17026460674823 191.0 L108.97987817123503 191.0 L107.7894917357218 191.0 L106.59910530020859 191.0 L105.40871886469537 191.0 L104.21833242918215 191.0 L103.02794599366894 191.0 L101.83755955815573 191.0 L100.6471731226425 191.0 L99.45678668712928 191.0 L98.26640025161606 191.0 L97.07601381610284 191.0 L95.88562738058964 191.0 L94.6952409450764 191.0 L93.5048545095632 191.0 L92.31446807404998 191.0 L91.12408163853677 191.0 L89.93369520302355 191.0 L88.74330876751031 191.0 L87.55292233199711 191.0 L86.36253589648389 191.0 L85.17214946097067 191.0 L83.98176302545745 191.0 L82.79137658994424 191.0 L81.60099015443103 191.0 L80.4106037189178 191.0 L79.2202172834046 191.0 L78.02983084789138 191.0 L76.83944441237816 191.0 L75.64905797686494 191.0 L74.45867154135172 191.0 L73.26828510583852 191.0 L72.07789867032528 191.0 L70.88751223481206 191.0 L69.69712579929885 191.0 L68.50673936378564 191.0 L67.31635292827241 191.0 L66.1259664927592 191.0 L64.93558005724599 191.0 L63.74519362173277 191.0 L62.55480718621955 191.0 L61.36442075070634 191.0 L60.17403431519312 191.0 L58.9836478796799 191.0 L57.79326144416669 191.0 L56.60287500865347 191.0 L55.41248857314025 191.0 L54.22210213762703 191.0 L53.031715702113814 191.0 L51.8413292666006 191.0 L50.650942831087384 191.0 L49.460556395574166 191.0 L48.270169960060954 191.0 L47.079783524547736 191.0 L45.88939708903452 191.0 L44.6990106535213 191.0 L43.50862421800808 191.0 L42.31823778249486 191.0 L41.12785134698165 191.0 L39.93746491146843 191.0 L38.74707847595521 191.0 L37.556692040441995 191.0 L36.36630560492878 191.0 L35.175919169415565 191.0 L33.985532733902346 191.0 L32.79514629838913 191.0 L31.604759862875913 191.0 L30.414373427362694 191.0 Z\" fill=\"rgb(163,153,153)\" stroke-width=\"1.0\" fill-opacity=\"0.2980392156862745\">\n",
" </path>\n",
" </g>\n",
" <g>\n",
" <path d=\"M30.414373427362694 170.55500073272225 L30.414373427362694 170.55500073272225 L31.604759862875913 169.92078837087956 L32.79514629838913 169.3136041665635 L33.985532733902346 168.73611896441753 L35.175919169415565 168.19079870079878 L36.36630560492878 167.67988146561194 L37.556692040441995 167.20535762430276 L38.74707847595521 166.76895326831587 L39.93746491146843 166.37211719603553 L41.12785134698165 166.01601155684622 L42.31823778249486 165.70150622025545 L43.50862421800808 165.42917686177447 L44.6990106535213 165.19930668913787 L45.88939708903452 165.01189166803292 L47.079783524547736 164.86664904721587 L48.270169960060954 164.7630289299061 L49.460556395574166 164.70022859266126 L50.650942831087384 164.67720921526995 L51.8413292666006 164.69271465603563 L53.031715702113814 164.74529188639985 L54.22210213762703 164.83331268714076 L55.41248857314025 164.95499620517205 L56.60287500865347 165.10843197480494 L57.79326144416669 165.29160301965157 L58.9836478796799 165.50240867038914 L60.17403431519312 165.73868675856045 L61.36442075070634 165.9982348765438 L62.55480718621955 166.27883042786831 L63.74519362173277 166.57824922923493 L64.93558005724599 166.89428246500648 L66.1259664927592 167.22475183569227 L67.31635292827241 167.56752278322796 L68.50673936378564 167.92051571690848 L69.69712579929885 168.2817152039628 L70.88751223481206 168.64917712737918 L72.07789867032528 169.02103385013407 L73.26828510583852 169.3954974590154 L74.45867154135172 169.7708611923205 L75.64905797686494 170.14549918355013 L76.83944441237816 170.51786467748875 L78.02983084789138 170.88648689556 L79.2202172834046 171.249966743852 L80.4106037189178 171.60697156960865 L81.60099015443103 171.9562291801831 L82.79137658994424 172.2965213424014 L83.98176302545745 172.6266769800101 L85.17214946097067 172.9455652824774 L86.36253589648389 173.252088929982 L87.55292233199711 173.54517762722801 L88.74330876751031 173.8237821229881 L89.93369520302355 174.0868688734167 L91.12408163853677 174.33341548557163 L92.31446807404998 174.56240705375208 L93.5048545095632 174.77283347575425 L94.6952409450764 174.96368780955387 L95.88562738058964 175.13396570387164 L97.07601381610284 175.28266590923602 L98.26640025161606 175.40879185013526 L99.45678668712928 175.51135421428677 L100.6471731226425 175.58937449252812 L101.83755955815573 175.6418893828331 L103.02794599366894 175.66795595494187 L104.21833242918215 175.66665745838168 L105.40871886469537 175.63710964645438 L106.59910530020859 175.57846748222158 L107.7894917357218 175.489932089578 L108.97987817123503 175.370757813043 L110.17026460674823 175.2202592537033 L111.36065104226145 175.03781815540106 L112.55103747777467 174.82289002441584 L113.74142391328789 174.57501037697727 L114.93181034880111 174.29380052147815 L116.12219678431433 173.9789727956245 L117.31258321982754 173.6303351924433 L118.50296965534076 173.24779532252867 L119.69335609085398 172.8313636726435 L120.88374252636719 172.3811561324622 L122.07412896188042 171.89739577146895 L123.26451539739362 171.38041385664584 L124.45490183290684 170.83065010847744 L125.64528826842006 170.24865219799796 L126.83567470393328 169.63507449120576 L128.02606113944648 168.99067604942567 L129.21644757495972 168.31631789540975 L130.40683401047292 167.61295955549645 L131.59722044598615 166.8816548884747 L132.78760688149936 166.12354721230977 L133.9779933170126 165.3398637410981 L135.1683797525258 164.53190934690153 L136.358766188039 163.70105966485664 L137.54915262355223 162.84875356544413 L138.73953905906546 161.97648502522293 L139.92992549457867 161.08579443674998 L141.12031193009187 160.17825940975666 L142.3106983656051 159.25548512875872 L143.5010848011183 158.31909434677823 L144.69147123663151 157.3707171103004 L145.88185767214475 156.41198032643558 L147.07224410765798 155.4444972987287 L148.26263054317118 154.4698573725374 L149.4530169786844 153.4896158434516 L150.64340341419762 152.50528429212176 L151.83378984971085 151.51832151530456 L153.02417628522403 150.53012522509343 L154.21456272073726 149.542024685691 L155.40494915625047 148.5552744490124 L156.59533559176367 147.57104933667614 L157.7857220272769 146.5904407962376 L158.97610846279014 145.6144547340044 L160.1664948983033 144.64401089558777 L161.35688133381655 143.67994382905 L162.54726776932978 142.7230054247552 L163.737654204843 141.77386898178128 L164.9280406403562 140.8331347040768 L166.11842707586942 139.90133648176922 L167.30881351138265 138.97894976555213 L168.49919994689589 138.06640029640815 L169.68958638240906 137.16407341066272 L170.8799728179223 136.27232360303518 L172.07035925343553 135.39148399950247 L173.26074568894876 134.52187536887718 L174.45113212446194 133.66381428822115 L175.64151855997517 132.81762007373393 L176.8319049954884 131.9836200963872 L178.02229143100158 131.1621531208881 L179.2126778665148 130.35357033788358 L180.40306430202804 129.5582338025668 L181.59345073754122 128.7765120477172 L182.78383717305445 128.00877270495167 L183.97422360856768 127.25537204360776 L185.16461004408086 126.51664142085878 L186.3549964795941 125.7928707277655 L187.54538291510733 125.08428901210603 L188.73576935062056 124.3910425578631 L189.9261557861338 123.71317080094822 L191.11654222164697 123.05058055852733 L192.3069286571602 122.40301914276742 L193.49731509267343 121.7700470162921 L194.68770152818666 121.15101072352937 L195.87808796369984 120.54501689692688 L197.06847439921307 119.95090818734644 L198.2588608347263 119.36724200148173 L199.44924727023954 118.79227294397818 L200.63963370575271 118.22393985624754 L201.83002014126595 117.65985831634687 L203.02040657677918 117.09731941386325 L204.21079301229236 116.53329553968622 L205.4011794478056 115.96445383303666 L206.59156588331882 115.38717780734501 L207.781952318832 114.79759753369008 L208.97233875434523 114.19162859703286 L210.16272518985846 113.56501985863055 L211.35311162537164 112.91340986054149 L212.54349806088487 112.23239149861956 L213.7338844963981 111.51758437262421 L214.92427093191134 110.76471400077592 L216.1146573674245 109.96969686625025 L217.30504380293775 109.12873005009261 L218.49543023845098 108.23838400462742 L219.6858166739642 107.29569683955768 L220.8762031094774 106.29826833533694 L222.06658954499062 105.24435177106444 L223.25697598050385 104.13294156220438 L224.44736241601709 102.96385465216805 L225.63774885153026 101.73780359505764 L226.8281352870435 100.4564593083203 L228.01852172255673 99.12250156578295 L229.20890815806996 97.73965544469176 L230.39929459358314 96.31271213463421 L231.58968102909637 94.84753275992904 L232.7800674646096 93.3510341569465 L233.97045390012278 91.8311558791357 L235.160840335636 90.2968080692072 L236.35122677114924 88.75780023215711 L237.54161320666242 87.22475135609207 L238.73199964217565 85.70898225000494 L239.92238607768888 84.22239138839828 L241.11277251320212 82.77731596062117 L242.3031589487153 81.3863802068685 L243.49354538422853 80.06233347174856 L244.68393181974176 78.8178807096743 L245.874318255255 77.66550842432554 L247.06470469076817 76.61730920871693 L248.2550911262814 75.68480816597987 L249.44547756179463 74.8787945289442 L250.63586399730787 74.20916175579578 L251.82625043282104 73.68475925889257 L253.01663686833427 73.3132587256072 L254.2070233038475 73.10103771772468 L255.39740973936068 73.05308289548684 L256.5877961748739 73.17291481198376 L257.77818261038715 73.46253577321443 L258.9685690459003 73.9224017704062 L260.15895548141356 74.55141897677646 L261.3493419169268 75.34696477455691 L262.53972835244 76.30493275366135 L263.7301147879532 77.41980061488242 L264.92050122346643 78.68471943135516 L266.11088765897966 80.09162228476124 L267.30127409449284 81.6313499085577 L268.4916605300061 83.29379064897253 L269.6820469655193 85.0680318031984 L270.87243340103254 86.94251921856515 L272.0628198365457 88.90522193967168 L273.253206272059 90.94379867321156 L274.4435927075722 93.04576290107111 L275.6339791430854 95.19864360735815 L276.8243655785986 97.39013878853608 L278.0147520141118 99.608259180129 L279.20513844962505 101.84145994936192 L280.39552488513823 104.07875846024216 L281.5859113206515 106.30983660485339 L282.7762977561647 108.52512660037495 L283.96668419167787 110.71587956397947 L285.1570706271911 112.87421658594464 L286.34745706270434 114.99316241438585 L287.5378434982175 117.06666223331914 L288.7282299337308 119.08958235079834 L289.918616369244 121.05769590859913 L291.10900280475715 122.96765497393382 L292.29938924027044 124.81695057309516 L293.4897756757836 126.60386237467443 L294.68016211129685 128.32739982561222 L295.8705485468101 129.98723658786162 L297.06093498232326 131.58364011945844 L298.2513214178365 133.11739819503083 L299.4417078533497 134.58974407207802 L300.6320942888629 136.00228188637212 L301.82248072437613 137.3569137087826 L303.01286715988937 138.6557695232807 L304.2032535954026 139.90114119851697 L305.39364003091583 141.09542132971328 L306.584026466429 142.24104762989697 L307.77441290194224 143.34045335545215 L308.9647993374555 144.3960240656259 L310.15518577296865 145.4100608433243 L311.3455722084819 146.3847499487363 L312.5359586439951 147.3221387406155 L313.72634507950835 148.22411758416496 L314.9167315150215 149.09240737023723 L316.10711795053476 149.92855219805313 L317.297504386048 150.73391672218025 L318.48789082156117 151.50968763279104 L319.67827725707446 152.25687872444635 L320.86866369258763 152.97633901060735 L322.0590501281008 153.66876335631804 L323.2494365636141 154.33470512739837 L324.4398229991273 154.97459038843044 L325.63020943464045 155.58873322124884 L326.82059587015374 156.1773517782012 L328.0109823056669 156.74058472800556 L329.20136874118015 157.2785077948015 L330.3917551766934 157.79115013152747 L331.58214161220656 158.27851030597714 L332.7725280477198 158.7405717111135 L333.962914483233 159.1773172400959 L335.15330091874625 159.58874309101446 L336.34368735425943 159.97487158681164 L337.53407378977266 160.3357629127991 L338.7244602252859 160.67152568826748 L339.91484666079907 160.98232630070856 L341.1052330963123 161.2683969419927 L342.29561953182554 161.53004229627015 L343.4860059673387 161.76764484017195 L344.676392402852 161.98166872768874 L345.8667788383652 162.17266224538454 L347.05716527387835 162.34125883863774 L348.24755170939164 162.48817672647647 L349.4379381449048 162.61421714115647 L350.62832458041805 162.72026124859394 L351.8187110159313 162.80726582660967 L353.00909745144446 162.87625779899957 L354.1994838869577 162.92832774396493 L355.3898703224709 162.96462251456694 L356.5802567579841 162.9863371257662 L357.77064319349734 162.99470607643823 L358.96102962901057 162.99099428477285 L360.1514160645238 162.97648782103838 L361.341802500037 162.95248462235537 L362.5321889355502 162.92028536959864 L363.72257537106344 162.8811846967732 L364.9129618065766 162.83646288834538 L366.1033482420899 162.78737820044708 L367.2937346776031 162.73515991821145 L368.4841211131163 162.68100223453627 L369.67450754862955 162.6260590062758 L370.8648939841427 162.57143941330753 L372.05528041965596 162.51820451528135 L373.2456668551692 162.46736467131413 L374.43605329068237 162.41987776061677 L375.62643972619566 162.37664811811652 L376.81682616170883 162.3385260795205 L378.007212597222 162.30630801575194 L379.1975990327353 162.28073672784507 L380.3879854682485 162.26250207055713 L381.5783719037617 162.25224167621639 L382.76875833927494 162.25054165950502 L383.9591447747881 162.25793719852746 L385.14953121030135 162.27491290696224 L386.3399176458146 162.30190293545024 L387.53030408132776 162.33929076655951 L388.720690516841 162.38740869549991 L389.9110769523542 162.44653701695418 L391.10146338786745 162.5169029656589 L392.29184982338063 162.5986794834405 L393.48223625889386 162.69198390711333 L394.6726226944071 162.7968766889537 L395.8630091299203 162.91336027352077 L397.0533955654335 163.0413782607868 L398.24378200094674 163.18081498548915 L399.4341684364599 163.33149563622482 L400.6245548719732 163.49318702524207 L401.8149413074864 163.66559910157955 L403.00532774299955 163.84838727684456 L404.19571417851284 164.04115560541263 L405.386100614026 164.24346083025506 L406.57648704953925 164.45481727318293 L407.7668734850525 164.67470251534272 L408.95725992056566 164.9025637816508 L410.1476463560789 165.13782491283 L411.3380327915921 165.3798937820539 L412.5284192271053 165.6281699910244 L413.71880566261854 165.88205266355848 L414.90919209813177 166.1409481441645 L416.099578533645 166.40427740516185 L417.2899649691582 166.67148296887012 L418.4803514046714 166.94203516125515 L419.67073784018464 167.2154375298834 L420.8611242756978 167.49123128157123 L422.0515107112111 167.76899862296307 L423.2418971467243 168.04836491947205 L424.43228358223746 168.32899962345363 L425.62267001775075 168.61061595991467 L426.8130564532639 168.8929693961885 L428.00344288877716 169.17585495949749 L429.1938293242904 169.45910350187933 L430.38421575980357 169.74257704435166 L431.57460219531686 170.02616336031832 L432.76498863083003 170.30976998114062 L433.9553750663432 170.59331782374582 L435.1457615018565 170.87673465058393 L436.3361479373697 171.15994857586486 L437.5265343728829 171.44288182874234 L438.71692080839614 171.72544497412875 L439.9073072439093 172.00753177553065 L441.09769367942255 172.28901486230004 L442.2880801149358 172.5697423368017 L443.47846655044896 172.84953542616202 L444.6688529859622 173.12818724956355 L445.8592394214754 173.4054627366367 L447.04962585698865 173.68109969657206 L448.24001229250183 173.9548110023154 L449.43039872801506 174.2262878207557 L450.6207851635283 174.49520378922335 L451.8111715990415 174.76122001181676 L453.0015580345547 175.0239907268411 L454.19194447006794 175.28316947958487 L455.3823309055811 175.53841562317885 L456.5727173410944 175.78940096459138 L457.7631037766076 176.03581637291063 L458.95349021212076 176.2773781727552 L460.14387664763404 176.51383415655496 L461.3342630831472 176.74496906500292 L462.52464951866045 176.9706094045069 L463.7150359541737 177.19062749315995 L464.90542238968686 177.40494465171923 L466.0958088252001 177.61353348240408 L467.2861952607133 177.8164192050615 L468.4765816962265 178.01368004648708 L469.66696813173974 178.20544670358183 L470.85735456725297 178.39190092380773 L472.0477410027662 178.5732732664248 L473.2381274382794 178.74984012473757 L474.4285138737926 178.92192010267715 L475.61890030930584 179.08986984828692 L476.809286744819 179.2540794520065 L477.9996731803323 179.41496751915795 L479.1900596158455 179.57297602396534 L480.38044605135866 179.72856504714744 L481.57083248687195 179.88220749108004 L482.7612189223851 180.03438385627445 L483.9516053578983 180.1855771510679 L485.1419917934116 180.33626799359317 L486.33237822892477 180.4869299519198 L487.522764664438 180.63802515533536 L488.71315109995123 180.79000019761065 L489.9035375354644 180.94328234224258 L491.0939239709777 181.09827603047557 L492.2843104064909 181.25535968565134 L493.4746968420041 181.41488280229441 L494.66508327751734 181.57716330536954 L495.8554697130305 181.74248516428815 L497.04585614854375 181.91109624734585 L498.236242584057 182.08320640508396 L499.42662901957016 182.25898577527002 L500.6170154550834 182.43856330739575 L501.8074018905966 182.62202551037734 L502.99778832610986 182.80941543307517 L504.18817476162303 183.0007318928933 L505.37856119713626 183.19592897266537 L506.5689476326495 183.3949158099168 L507.7593340681627 183.59755670511046 L508.94972050367596 183.80367157639776 L510.14010693918914 184.0130367875616 L511.3304933747023 184.22538637318772 L512.5208798102157 184.440413680661 L513.7112662457288 184.65777344246527 L514.901652681242 184.87708428466306 L516.0920391167552 185.09793166860257 L517.2824255522685 185.3198712531653 L518.4728119877818 185.54243265459192 L519.663198423295 185.76512357049046 L520.8535848588082 185.9874342244452 L522.0439712943214 186.20884207809078 L523.2343577298345 186.4288167489701 L524.4247441653479 186.64682506528166 L525.6151306008611 186.8623361830272 L526.8055170363742 187.07482668731137 L527.9959034718875 187.28378559777607 L529.1862899074007 187.4887191984525 L530.3766763429138 187.68915561469115 L531.5670627784272 187.884649064219 L532.7574492139404 188.0747837156398 L533.9478356494536 188.25917709564737 L535.1382220849667 188.4374829956144 L536.32860852048 188.6093938387666 L537.5189949559932 188.77464248053602 L538.7093813915064 188.9330034265749 L539.8997678270197 189.08429346496376 L541.0901542625329 189.22837172102697 L542.280540698046 189.36513915456806 L543.4709271335593 189.49453752995467 L544.6613135690725 189.61654789907536 L545.8517000045857 189.7311886455353 L547.042086440099 189.838513145392 L548.2324728756122 189.9386071051328 L549.4228593111253 190.03158564139147 L550.6132457466385 190.11759016907084 L551.8036321821518 190.19678516509953 L552.994018617665 190.26935487407104 L554.1844050531782 190.3355000195897 L555.3747914886915 190.3954345814145 L556.5651779242046 190.4493826936028 L557.7555643597178 190.49757571298875 L558.945950795231 190.54024950067546 L560.1363372307443 190.57764195196745 L561.3267236662575 190.6099908025245 L562.5171101017708 190.63753173066695 L563.707496537284 190.66049676789763 L564.8978829727971 190.67911302199934 L566.0882694083103 190.69360170968312 L567.2786558438237 190.70417748884432 L568.4690422793368 190.7110480741632 L569.65942871485 190.71441411416728 L570.8498151503633 190.71446930305126 L572.0402015858764 190.71140069659137 L573.2305880213896 190.7053891984489 L574.420974456903 190.69661018106183 L575.6113608924161 190.6852342041868 L576.8017473279293 190.6714277939686 L577.9921337634426 190.65535424615663 L579.1825201989558 190.63717441871123 L580.372906634469 190.61704748149228 L581.5632930699823 190.5951315939132 L582.7536795054955 190.5715844852909 L583.9440659410086 190.54656391701238 L585.1344523765218 190.52022801045752 L586.3248388120351 190.49273542973208 L587.5152252475483 190.46424541353616 L588.7056116830615 190.4349176557827 L589.8959981185748 190.4049120397352 L591.0863845540879 190.37438823531716 L592.2767709896011 190.34350517371337 L593.4671574251144 190.31242041731028 L594.6575438606277 190.28128944629208 L595.8479302961408 190.25026488572388 L597.038316731654 190.2194956986367 L598.2287031671673 190.18912637143143 L599.4190896026804 190.15929611781257 L600.6094760381936 190.1301381264564 L601.799862473707 190.1017788757432 L602.9902489092201 190.07433753620603 L604.1806353447333 190.04792547795972 L605.3710217802466 190.0226458963954 L606.5614082157597 189.9985935649931 L607.7517946512729 189.97585471938336 L608.9421810867863 189.9545070719447 L610.1325675222995 189.93461995143576 L611.3229539578126 189.9162545576099 L612.5133403933258 189.8994643166102 L613.7037268288391 189.8842953193582 L614.8941132643522 189.87078682226255 L616.0844996998655 189.85897178749667 L617.2748861353788 189.8488774389124 L618.4652725708919 189.84052580941173 L619.6556590064051 189.83393425630783 L620.8460454419184 189.82911592284182 L622.0364318774315 189.82608012652236 L623.2268183129448 189.82483265822623 L624.4172047484581 189.82537597991546 L625.6075911839713 189.82770931323478 L626.7979776194844 189.83182861598738 L627.9883640549976 189.8377264483602 L629.1787504905109 189.84539173559415 L630.3691369260241 189.85480943838402 L631.5595233615373 189.8659601464714 L632.7499097970506 189.87881961449963 L633.9402962325637 189.89335826209728 L635.1306826680769 189.90954066223696 L636.3210691035902 189.92732504310268 L637.5114555391034 189.94666282894968 L638.7018419746166 189.96749824475324 \" fill=\"none\" stroke-width=\"1.6500000000000001\" stroke=\"rgb(255,102,50)\" stroke-opacity=\"1.0\">\n",
" </path>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <defs>\n",
" <clipPath id=\"c12maIx\">\n",
" <rect x=\"35.01530667574961\" y=\"0.0\" width=\"669.1162154019794\" height=\"191.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" </g>\n",
" <g>\n",
" <g transform=\"translate(35.01530667574961 191.0 ) \">\n",
" <g transform=\"translate(29.14420770695746 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(105.33891199041486 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>10</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(181.53361627387227 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>20</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(257.72832055732965 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>30</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(333.92302484078704 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>40</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(410.1177291242444 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>50</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(486.31243340770186 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>60</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(562.5071376911592 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>70</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(638.7018419746166 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>80</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <line x1=\"0.0\" y1=\"0.0\" x2=\"669.1162154019794\" y2=\"0.0\" stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" </g>\n",
" <g transform=\"translate(35.01530667574961 0.0 ) \">\n",
" <g transform=\"translate(0.0 191.0 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>0.00</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 137.2217799879274 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>0.02</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 83.44355997585477 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>0.04</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 29.665339963782145 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>0.06</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(16.0 102.0 ) rotate(-90.0 ) \">\n",
" <text class=\"axis-title-y\" y=\"0.0\" text-anchor=\"middle\">\n",
" <tspan>density</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(399.0734143767393 243.0 ) \">\n",
" <text class=\"axis-title-x\" y=\"0.0\" text-anchor=\"middle\">\n",
" <tspan>age</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(745.131522077729 62.75 ) \">\n",
" <rect x=\"0.0\" y=\"0.0\" height=\"78.5\" width=\"104.8684779222711\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <g transform=\"translate(5.0 5.0 ) \">\n",
" <g transform=\"translate(0.0 12.0 ) \">\n",
" <text class=\"legend-title\" y=\"0.0\">\n",
" <tspan>survived</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(0.0 22.5 ) \">\n",
" <g transform=\"\">\n",
" <g>\n",
" <g transform=\"translate(1.0 1.0 ) \">\n",
" <g>\n",
" <rect x=\"0.0\" y=\"0.0\" height=\"21.0\" width=\"21.0\" stroke=\"rgb(255,102,50)\" stroke-opacity=\"1.0\" fill=\"rgb(163,153,153)\" fill-opacity=\"1.0\" stroke-width=\"1.5\">\n",
" </rect>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(26.9903027277341 16.05 ) \">\n",
" <text class=\"legend-item\" y=\"0.0\">\n",
" <tspan>Survived</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 23.0 ) \">\n",
" <g>\n",
" <g transform=\"translate(1.0 1.0 ) \">\n",
" <g>\n",
" <rect x=\"0.0\" y=\"0.0\" height=\"21.0\" width=\"21.0\" stroke=\"rgb(76,76,76)\" stroke-opacity=\"1.0\" fill=\"rgb(163,153,153)\" fill-opacity=\"1.0\" stroke-width=\"1.5\">\n",
" </rect>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(26.9903027277341 16.05 ) \">\n",
" <text class=\"legend-item\" y=\"0.0\">\n",
" <tspan>Died</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <path fill=\"rgb(0,0,0)\" fill-opacity=\"0.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" d=\"M0.0 0.0 L0.0 250.0 L850.0 250.0 L850.0 0.0 Z\" pointer-events=\"none\">\n",
" </path>\n",
" </g>\n",
" <g id=\"dTJqRGD\">\n",
" </g>\n",
"</svg>\n",
" <script>document.getElementById(\"d8511402-d1b5-4fe6-a563-ef251bedaab2\").style.display = \"none\";</script>"
],
"application/plot+json": {
"output_type": "lets_plot_spec",
"output": {
"mapping": {},
"data": {
"&merged_groups": [
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died"
],
"survived": [
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died"
]
},
"ggsize": {
"width": 850.0,
"height": 250.0
},
"kind": "plot",
"scales": [
{
"aesthetic": "x",
"name": "age",
"limits": [
null,
null
]
},
{
"aesthetic": "x",
"limits": [
null,
null
]
},
{
"aesthetic": "y",
"limits": [
null,
null
]
},
{
"aesthetic": "fill",
"discrete": true
},
{
"aesthetic": "color",
"values": [
"#ff6632",
"#4c4c4c"
],
"limits": [
"Survived",
"Died"
]
}
],
"layers": [
{
"mapping": {
"x": "x",
"y": "density",
"fill": "survived",
"color": "survived",
"group": "&merged_groups"
},
"stat": "identity",
"data": {
"&merged_groups": [
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died"
],
"density": [
0.007603449598253003,
0.007839311760184098,
0.008065122210652623,
0.008279887668496458,
0.008482691057487888,
0.008672700036986326,
0.008849174394524628,
0.009011472200546811,
0.009159054650167217,
0.009291489542623441,
0.009408453375387026,
0.009509732056020143,
0.00959522026019833,
0.009664919488273522,
0.009718934894802203,
0.00975747098516982,
0.009780826290433088,
0.009789387145510154,
0.009783620706694524,
0.009764067352064188,
0.009731332612713885,
0.009686078783931913,
0.009629016363644119,
0.009560895460867686,
0.009482497309835443,
0.009394626016171106,
0.009298100650353837,
0.009193747791050746,
0.009082394607066828,
0.008964862552007881,
0.008841961730592957,
0.008714485980202288,
0.008583208695977824,
0.008448879412869075,
0.008312221143653807,
0.008173928458372887,
0.00803466627795961,
0.007895069343282015,
0.007755742310462583,
0.007617260414313915,
0.007480170634106047,
0.007344993289742324,
0.007212223991808518,
0.007082335865910689,
0.006955781970247384,
0.0068329978254636475,
0.006714403977472512,
0.0066004085170665045,
0.006491409484677464,
0.006387797094495143,
0.006289955719169018,
0.0061982655843525174,
0.006113104131210684,
0.006034847014498778,
0.005963868713708321,
0.0059005427448385675,
0.005845241470333389,
0.005798335514401441,
0.005760192800072672,
0.005731177232720742,
0.005711647062219298,
0.005701952962227557,
0.005702435870200304,
0.005713424635511115,
0.00573523352551142,
0.005768159640441861,
0.005812480287911493,
0.0058684503662465365,
0.00593629980353222,
0.006016231095767982,
0.0061084169834313955,
0.006212998301086015,
0.006330082029696965,
0.006459739576228963,
0.006602005300095898,
0.006756875301294032,
0.00692430648071211,
0.0071042158793068015,
0.007296480299626792,
0.007500936210605247,
0.007717379934606831,
0.007945568114377174,
0.008185218456703655,
0.008436010749146404,
0.008697588146001644,
0.008969558719537753,
0.00925149727235514,
0.009542947406270224,
0.009843423842275432,
0.010152414984733618,
0.010469385720924278,
0.010793780444299423,
0.011125026286304981,
0.011462536537402765,
0.011805714233053818,
0.012153955875030927,
0.012506655252684153,
0.01286320732289012,
0.013223012101661042,
0.013585478515005509,
0.013950028151964772,
0.01431609885906845,
0.0146831481130585,
0.015050656107926793,
0.015418128493283027,
0.01578509870406988,
0.01615112982674939,
0.01651581595441163,
0.01687878299274578,
0.0172396888904117,
0.017598223280847588,
0.017954106537705097,
0.018307088262559827,
0.018656945240902837,
0.019003478920187274,
0.01934651248136131,
0.01968588759230367,
0.020021460947294907,
0.02035310071054009,
0.020680682993231843,
0.02100408850216467,
0.02132319950303581,
0.021637897242863288,
0.021948059973113387,
0.022253561707947556,
0.022554271840347993,
0.0228500557227964,
0.023140776298774604,
0.023426296846904747,
0.023706484871415336,
0.023981217141313127,
0.024250385846759603,
0.02451390580539729,
0.024771722614539464,
0.025023821608058664,
0.025270237440442905,
0.02551106408573334,
0.025746465006899276,
0.025976683222609567,
0.026202050974263095,
0.02642299867742139,
0.02664006282931548,
0.026853892538582343,
0.02706525434550085,
0.02727503501127002,
0.02748424197362665,
0.027694001193641897,
0.027905552154801214,
0.028120239820388533,
0.028339503408332713,
0.02856486190347115,
0.028797896294814575,
0.02904022859883757,
0.029293497807736282,
0.029559332982583977,
0.029839323793614644,
0.030134988891621684,
0.030447742573676925,
0.030778860280906848,
0.03112944353370254,
0.031500384968356505,
0.031892334186473394,
0.03230566516269781,
0.03274044597536654,
0.03319641162719926,
0.033672940707726536,
0.03416903661504288,
0.034683314001234075,
0.035213991033585544,
0.03575888797304403,
0.036315432463600465,
0.03688067180304666,
0.03745129232919425,
0.0380236459090281,
0.03859378336457084,
0.03915749451222387,
0.039710354335874755,
0.04024777466233878,
0.0407650605648623,
0.04125747059063954,
0.041720279795479306,
0.04214884447653051,
0.042538667425439304,
0.04288546248207291,
0.04318521715482137,
0.04343425208866562,
0.043629276206899915,
0.04376743642611207,
0.043846360945307715,
0.04386419523667216,
0.04381963001436841,
0.043711920625264175,
0.043540897487239695,
0.04330696739203422,
0.0430111056853426,
0.0426548395319112,
0.042240222662490536,
0.041769802177696214,
0.04124657814644704,
0.04067395687952865,
0.0400556988784116,
0.03939586255291493,
0.03869874486663006,
0.0379688201050199,
0.03721067796752177,
0.03642896216235467,
0.03562831063249602,
0.03481329846560542,
0.033988384442383765,
0.033157862060374244,
0.032325815737391454,
0.03149608275474146,
0.030672221349501847,
0.029857485211670313,
0.0290548044901884,
0.028266773265664596,
0.027495643310650165,
0.02674332383372249,
0.02601138679402167,
0.025301077280279513,
0.024613328374218216,
0.02394877986324923,
0.02330780013184463,
0.022690510544395734,
0.02209681163385595,
0.02152641042859923,
0.020978848282913982,
0.02045352862228668,
0.01994974407080603,
0.019466702492186832,
0.019003551545592953,
0.018559401430201183,
0.018133345565977156,
0.017724479030302158,
0.017331914639016326,
0.01695479662452245,
0.01659231192153555,
0.016243699121904487,
0.015908255203029152,
0.015585340169442198,
0.015274379774089505,
0.014974866504983041,
0.014686359034696133,
0.014408480335294195,
0.014140914660565844,
0.013883403591752018,
0.013635741333339287,
0.01339776943286046,
0.013169371083982216,
0.012950465156333364,
0.012741000079327132,
0.012540947691324996,
0.012350297150414238,
0.012169048989229188,
0.01199720938388984,
0.01183478469639206,
0.011681776340657635,
0.011538176014834095,
0.01140396133613835,
0.011279091909298636,
0.0111635058551781,
0.01105711682213836,
0.010959811498823935,
0.01087144764302936,
0.0107918526369214,
0.010720822573950588,
0.01065812187719441,
0.010603483442599234,
0.010556609293677346,
0.010517171726791097,
0.010484814918404278,
0.010459156957849096,
0.01043979226152643,
0.010426294317342379,
0.010418218701900156,
0.010415106307823087,
0.010416486714859449,
0.010421881636346705,
0.010430808372366455,
0.01044278320260424,
0.010457324655562955,
0.010473956596306913,
0.010492211082188847,
0.010511630944811261,
0.010531772066500692,
0.010552205330468198,
0.010572518235192828,
0.010592316174958859,
0.010611223399465656,
0.01062888367557249,
0.010644960683138211,
0.010659138184211119,
0.01067112001022222,
0.010680629915124668,
0.010687411343473853,
0.010691227161229982,
0.01069185939365083,
0.010689109009193785,
0.01068279578111335,
0.010672758249755148,
0.010658853798807945,
0.010640958848424836,
0.01061896915763887,
0.010592800218358645,
0.010562387713904893,
0.010527688006978227,
0.010488678615512009,
0.010445358630380142,
0.010397749026627066,
0.010345892819905812,
0.01028985502218702,
0.010229722355475122,
0.01016560268907531,
0.01009762417464178,
0.010025934063468595,
0.00995069720185547,
0.009872094212436925,
0.009790319381618633,
0.009705578285220532,
0.009618085195591897,
0.009528060323378008,
0.009435726955365905,
0.009341308556067053,
0.009245025904633853,
0.009147094340168443,
0.009047721187376003,
0.008947103430847689,
0.008845425700135577,
0.008742858619400683,
0.008639557565059552,
0.008535661862878897,
0.008431294442790033,
0.008326561955772865,
0.008221555342980379,
0.008116350833331124,
0.008011011332574775,
0.007905588154786931,
0.0078001230367882365,
0.00769465036745904,
0.007589199557617602,
0.007483797472247546,
0.00737847084551377,
0.007273248600220427,
0.007168163997077009,
0.007063256545198314,
0.006958573613444085,
0.006854171692205845,
0.006750117266716301,
0.006646487275489749,
0.006543369140672008,
0.006440860370439944,
0.006339067746704194,
0.006238106123809524,
0.006138096875304356,
0.006039166035818151,
0.0059414421933535345,
0.005845054193644518,
0.005750128722501491,
0.005656787834180453,
0.005565146493777615,
0.005475310199534209,
0.00538737274688268,
0.005301414190278889,
0.005217499051602557,
0.005135674815469902,
0.00505597074251577,
0.0049783970219136366,
0.004902944274458668,
0.004829583407780188,
0.004758265815992401,
0.004688923907619817,
0.004621471938188196,
0.004555807117644434,
0.004491810957897619,
0.0044293508223363955,
0.004368281637196868,
0.004308447724094003,
0.004249684713800282,
0.004191821503323186,
0.004134682221324598,
0.004078088170736741,
0.004021859721836981,
0.003965818133814373,
0.003909787287760783,
0.0038535953188255432,
0.0037970761397819867,
0.0037400708522892017,
0.003682429045551002,
0.0036240099847711983,
0.003564683693716089,
0.003504331936800863,
0.0034428491064351476,
0.0033801430209530097,
0.003316135637406488,
0.0032507636819395372,
0.003183979198523972,
0.003115750014686943,
0.0030460601206533594,
0.0029749099562279896,
0.0029023165979025394,
0.0028283138372285107,
0.002752952140560903,
0.0026762984799373166,
0.00259843602516778,
0.0025194636881962435,
0.0024394955124459067,
0.0023586599021354652,
0.002277098689381093,
0.002194966040182245,
0.002112427204009193,
0.0020296571155322424,
0.0019468388609122323,
0.0018641620248604504,
0.0017818209382287659,
0.0017000128490692757,
0.0016189360427850126,
0.001538787939074198,
0.0014597631947682415,
0.0013820518423219184,
0.001305837493602159,
0.0012312956377379606,
0.0011585920601617668,
0.0010878814076418007,
0.0010193059211470199,
9.529943548932429E-4,
8.890610959963795E-4,
8.276054949250565E-4,
7.687114125239009E-4,
7.124469848969296E-4,
6.588646030215655E-4,
6.080010997258506E-4,
5.598781327114834E-4,
5.145027487388296E-4,
4.718681109861509E-4,
4.3195436901677196E-4,
3.947296487793495E-4,
3.601511386546962E-4,
3.281662467560602E-4,
2.98713804480758E-4,
2.7172529167567564E-4,
2.4712605968034104E-4,
2.2483652989993962E-4,
2.0477334737877855E-4,
1.868504710265469E-4,
1.7098018462542093E-4,
1.5707401544258194E-4,
1.4504355011674117E-4,
1.3480114040654147E-4,
1.2626049431393289E-4,
1.193371509613402E-4,
1.139488403476733E-4,
1.100157316806959E-4,
1.0746057633440958E-4,
1.0620875356923659E-4,
1.0618822894645773E-4,
1.0732943684036045E-4,
1.09565099583052E-4,
1.1282999655624765E-4,
1.1706069696711815E-4,
1.2219527011404495E-4,
1.2817298667230274E-4,
1.3493402392541934E-4,
1.4241918695775472E-4,
1.5056965663642237E-4,
1.5932677378050188E-4,
1.686318672822708E-4,
1.7842613215341354E-4,
1.886505615671334E-4,
1.9924593500623798E-4,
2.10152862660925E-4,
2.2131188430231467E-4,
2.3266361904220715E-4,
2.4414896072768964E-4,
2.5570931225889275E-4,
2.672868509023079E-4,
2.7882481573686353E-4,
2.902678077437635E-4,
3.015620927529918E-4,
3.126558974985427E-4,
3.234996894089588E-4,
3.34046431456877E-4,
3.442518043870456E-4,
3.540743899022862E-4,
3.634758098669618E-4,
3.7242081823537387E-4,
3.80877344168965E-4,
3.8881648660762914E-4,
3.9621246234072805E-4,
4.030425113165905E-4,
4.092867644718484E-4,
4.1492808069561876E-4,
4.1995186061716093E-4,
4.2434584567773614E-4,
4.280999113876095E-4,
4.312058637597098E-4,
4.3365724764799266E-4,
4.3544917511041296E-4,
4.365781809863268E-4,
4.370421116615511E-4,
4.368400515379037E-4,
4.3597229008399455E-4,
4.3444033058378975E-4,
4.3224693988714414E-4,
4.2939623667226097E-4,
4.258938140231844E-4,
4.21746890571692E-4,
4.16964483111818E-4,
4.1155759251767815E-4,
4.0553939402167917E-4,
3.9892542246898737E-4,
3.917337430706528E-4,
3.8398509843388983E-4,
0.0029062365005629266,
0.0030391527847771164,
0.0031668919744145974,
0.0032884746340393466,
0.003402980967753703,
0.003509567479581156,
0.00360748243833365,
0.003696079747824025,
0.0037748308626115857,
0.0038433344411442833,
0.0039013234904063266,
0.003948669826752153,
0.003985385753899541,
0.004011622938203209,
0.004027668540355853,
0.004033938738596153,
0.004030969848528143,
0.004019407306233326,
0.003999992832341977,
0.0039735501334697615,
0.003940969522815904,
0.0039031918532668017,
0.0038611921541590066,
0.003815963347635062,
0.003768500393518182,
0.003719785174556258,
0.003670772388835858,
0.00362237666550141,
0.0035754610661376043,
0.003530827079806489,
0.003489206167194613,
0.003451252860820749,
0.0034175393856662327,
0.0033885517294028815,
0.003364687064632342,
0.003346252407750602,
0.003333464390241091,
0.0033264500179238906,
0.0033252483010466067,
0.003329812651811846,
0.0033400139644114554,
0.003355644314090144,
0.003376421234296929,
0.0034019925527144085,
0.003431941786108286,
0.003465794108943032,
0.0035030229202918303,
0.0035430570368231726,
0.0035852885360702267,
0.003629081263731115,
0.0036737800017816492,
0.0037187202715137768,
0.0037632387184088237,
0.00380668399549765,
0.003848428030255067,
0.003887877528957713,
0.003924485543674605,
0.003957762902447083,
0.003987289284378467,
0.0040127237096472135,
0.0040338142109118055,
0.004050406457808574,
0.004062451120453526,
0.004070009780782478,
0.004073259231501483,
0.004072494040256928,
0.004068127299899247,
0.004060689532634898,
0.004050825764472147,
0.00403929083457428,
0.004026943049848374,
0.004014736336312682,
0.004003711073687707,
0.003994983826716562,
0.003989736204771144,
0.003989203089598251,
0.003994660469330579,
0.004007413105350239,
0.004028782237954813,
0.0040600935082127886,
0.004102665238506404,
0.004157797174986187,
0.004226759753718865,
0.004310783911062777,
0.004411051420165443,
0.004528685701781123,
0.004664743030977528,
0.004820204043549964,
0.004995965438467559,
0.005192831776294158,
0.005411507288519866,
0.00565258763875261,
0.005916551612718983,
0.006203752758389017,
0.006514411048050365,
0.006848604688098331,
0.007206262256627006,
0.007587155400266581,
0.007990892366750078,
0.008416912685121253,
0.00886448332830355,
0.009332696700422163,
0.009820470781844294,
0.010326551737262553,
0.010849519245952647,
0.01138779474928999,
0.01193965273030292,
0.012503235046099475,
0.013076568229831621,
0.01365758356875676,
0.014244139653687739,
0.014834046987869278,
0.01542509414547479,
0.01601507488656132,
0.016601815571302286,
0.017183202175648282,
0.01775720619637121,
0.018321908747682733,
0.01887552219488873,
0.01941640874202859,
0.019943095487857092,
0.02045428558421989,
0.020948865267816936,
0.021425906684650022,
0.021884666579267683,
0.022324581071164543,
0.022745256881124505,
0.023146459494212644,
0.02352809884737029,
0.023890213203472684,
0.0242329519166566,
0.024556557804152255,
0.024861349817748252,
0.025147706655297357,
0.025416051873049874,
0.025666840958180566,
0.025900550704172617,
0.02611767110688764,
0.02631869987396119,
0.02650413952205874,
0.026674496932546945,
0.026830285152212755,
0.026972027166285557,
0.027100261338970914,
0.02721554821282428,
0.027318478381368062,
0.027409681196257807,
0.027489834136090192,
0.02755967274210361,
0.02762000110907836,
0.027671702999402,
0.027715753716164235,
0.027753232919315956,
0.0277853385901964,
0.027813402338346633,
0.027838906196490112,
0.027863500962780206,
0.0278890260243421,
0.027917530435297665,
0.027951294831008923,
0.027992853545472134,
0.028045016070015572,
0.02811088675985013,
0.02819388147309822,
0.02829773962813331,
0.02842653000332768,
0.02858464849239547,
0.028776805981603863,
0.029008004544075965,
0.029283500261163803,
0.02960875118900266,
0.029989349294234014,
0.030430935587306276,
0.03093909818139534,
0.03151925359195559,
0.0321765122535053,
0.032915529949018904,
0.03374034760067803,
0.03465422263212276,
0.03565945585085423,
0.03675721848157173,
0.03794738457151384,
0.03922837445156463,
0.04059701523758897,
0.04204842446401618,
0.04357592282998585,
0.045170981688398844,
0.04682321030973512,
0.0485203871056733,
0.05024853791376216,
0.05199206314735993,
0.05373391414020464,
0.05545581740933492,
0.05713854388050145,
0.05876221843154273,
0.06030666348151673,
0.061751768858780184,
0.06307787889034476,
0.06426618663313802,
0.06529912447177849,
0.06616073998155102,
0.0668370460285618,
0.06731633456360868,
0.06758944445534797,
0.06764997497645935,
0.06749443815990151,
0.06712234512098002,
0.06653622352094385,
0.06574156554536742,
0.0647467079955462,
0.06356264825227341,
0.06220280188011825,
0.06068270941612554,
0.05901970136025679,
0.05723253150165488,
0.05534098943780767,
0.053365503454625124,
0.05132674483520954,
0.04924524417301452,
0.047141029417340455,
0.0450332942262403,
0.04294010380547989,
0.040878143841487836,
0.03886251646402164,
0.036906585473316864,
0.035021871405844784,
0.03321799545465106,
0.031502669857500505,
0.02988173116042306,
0.02835921178522237,
0.026937444594015772,
0.025617194656669288,
0.02439781218170313,
0.023277400551771788,
0.022252993587311774,
0.02132073651675122,
0.02047606562553765,
0.019713882154311007,
0.019028716684292662,
0.01841488095269475,
0.017866604753174357,
0.01737815627058022,
0.016943944854589072,
0.016558605837212477,
0.016217067533189234,
0.015914601022911933,
0.015646853701615192,
0.015409867886096587,
0.015200086003869108,
0.01501434405383031,
0.014849855128047408,
0.014704184827589359,
0.014575220398297284,
0.01446113536176098,
0.014360351329119976,
0.014271498566842055,
0.014193376740158187,
0.014124917096776001,
0.01406514717593291,
0.014013158940583083,
0.013968081038099907,
0.013929055701679247,
0.013895220614824443,
0.013865695878840026,
0.013839576051862257,
0.013815927070986382,
0.013793787729480016,
0.013772175261361078,
0.013750094487667834,
0.013726549903791716,
0.013700560035859025,
0.013671173366189443,
0.013637485122528043,
0.013598654241597528,
0.013553919852566291,
0.013502616677837125,
0.013444188814360606,
0.013378201435500482,
0.013304350038262087,
0.01322246695043703,
0.013132524904041234,
0.01303463757269962,
0.012929057059019136,
0.012816168401494533,
0.01269648124746736,
0.012570618907825478,
0.012439305069537792,
0.012303348493128306,
0.012163626063420302,
0.012021064593167641,
0.011876621800550548,
0.011731266893091653,
0.011585961192601402,
0.011441639228617354,
0.011299190711852173,
0.011159443774867071,
0.011023149835054742,
0.010890970395635765,
0.010763466054413534,
0.010641087938268803,
0.010524171724681564,
0.010412934350951787,
0.010307473448383632,
0.010207769473758135,
0.010113690445328038,
0.010024999126804818,
0.00994136244193819,
0.009862362845912784,
0.009787511329525787,
0.009716261689527456,
0.009648025665084893,
0.009582188517390339,
0.009518124618090202,
0.009455212613300562,
0.009392849744007337,
0.00933046493075034,
0.009267530270360765,
0.00920357064440085,
0.009138171201610198,
0.00907098254839167,
0.009001723560018106,
0.008930181808260402,
0.0088562116856501,
0.008779730389483572,
0.008700712006728522,
0.008619180010992537,
0.008535198541615862,
0.008448862880018001,
0.00836028956738376,
0.00826960661893485,
0.008176944282419914,
0.008082426761884467,
0.007986165282911255,
0.007888252813861853,
0.0077887606815312364,
0.007687737232115873,
0.007585208593178032,
0.007481181493508234,
0.007375647999854614,
0.007268591936874755,
0.007159996673681329,
0.007049853890929799,
0.006938172889888415,
0.0068249899719331104,
0.0067103774051261444,
0.00659445150468061,
0.006477379385864049,
0.006359383999910559,
0.006240747133490142,
0.006121810137075118,
0.006002972243302279,
0.0058846864388126495,
0.00576745295742428,
0.005651810564168807,
0.005538325894177869,
0.005427581193505134,
0.005320160877161831,
0.005216637370111527,
0.005117556727765045,
0.0050234245426232635,
0.004934692633083581,
0.0048517469799441906,
0.004774897327569532,
0.004704368802542384,
0.004640295826057482,
0.004582718510890494,
0.004531581643338946,
0.004486736258979805,
0.004447943732194564,
0.004414882216652507,
0.004387155200340734,
0.0043643018767402925,
0.0043458089851699895,
0.004331123739253178,
0.0043196674432995465,
0.0043108493918514275,
0.004304080656830844,
0.004298787388233567,
0.0042944232863452135,
0.004290480943927685,
0.004286501803530635,
0.004282084525804231,
0.00427689161731635,
0.004270654219008668,
0.004263175007440956,
0.004254329209080716,
0.004244063772151502,
0.004232394780352682,
0.004219403227807103,
0.0042052293048345105,
0.004190065369729482,
0.004174147802898086,
0.004157747956772827,
0.00414116242815159,
0.0041247028891824924,
0.004108685719216841,
0.004093421682116506,
0.004079205892140956,
0.00406630830595972,
0.004054964968284217,
0.004045370223729302,
0.004037670087502205,
0.004031956942204228,
0.004028265697440948,
0.004026571513336278,
0.004026789148984114,
0.004028773953198141,
0.004032324468781024,
0.004037186574340405,
0.004043059041058546,
0.004049600337545702,
0.004056436475800626,
0.004063169657148543,
0.004069387450463806,
0.004074672217402092,
0.004078610491817323,
0.004080802023660963,
0.004080868211627134,
0.004078459673290559,
0.004073262735661694,
0.004065004671658156,
0.0040534575572500125,
0.0040384406779249635,
0.004019821469343683,
0.003997515033192719,
0.00397148232286349,
0.003941727142375376,
0.003908292143835089,
0.0038712540419326576,
0.0038307182871837988,
0.0037868134519879913,
0.0037396855847437946,
0.0036894927774355716,
0.0036364001719690732,
0.0035805756012360686,
0.0035221860239690963,
0.003461394869748128,
0.0033983603640883025,
0.003333234855516408,
0.0032661651190706415,
0.003197293565761136,
0.003126760247035466,
0.0030547055087571297,
0.0029812731218458186,
0.002906613697398229,
0.002830888183274136,
0.0027542712368832712,
0.0026769542749757354,
0.0025991480150388897,
0.0025210843435880107,
0.00244301737315062,
0.002365223580887971,
0.0022880009562921896,
0.002211667121940966,
0.002136556428610232,
0.002063016062931652,
0.001991401241132745,
0.0019220695952266284,
0.0018553748874746612,
0.0017916602143080698,
0.0017312508815759083,
0.0016744471485203832,
0.0016215170479134688,
0.0015726894940765632,
0.0015281478889021167,
0.0014880244284612648,
0.0014523952993761695,
0.0014212769350372162,
0.001394623477255661,
0.0013723255595024164,
0.0013542104940861572,
0.0013400439082196115,
0.0013295328338263758,
0.001322330214221005,
0.0013180407486626453,
0.001316227954558602,
0.0013164222881732203,
0.0013181301294966647,
0.001320843406828311,
0.001324049612910829,
0.0013272419482260349,
0.0013299293192119092,
0.0013316459202701852,
0.0013319601387549512,
0.0013304825415418329,
0.0013268727297643856,
0.0013208448839767003,
0.0013121718641098256,
0.0013006877755752607,
0.001286288962927455,
0.0012689334436606226,
0.001248638844942996,
0.0012254789533693408,
0.001199579030250958,
0.0011711100808900967,
0.0011402822943328208,
0.0011073378892591237,
0.0010725436113643504,
0.0010361831276660125,
9.985495539285613E-4,
9.599383335493172E-4,
9.206406608771076E-4,
8.809376104373448E-4,
8.410950975393149E-4,
8.01359757009893E-4,
7.619557871475812E-4,
7.230827671886728E-4,
6.849144202590918E-4,
6.475982613757575E-4,
6.112560427156963E-4,
5.759848869307265E-4,
5.418589842531225E-4
],
"x": [
0.1667,
0.3229295499021526,
0.47915909980430527,
0.6353886497064578,
0.7916181996086105,
0.9478477495107631,
1.1040772994129158,
1.2603068493150684,
1.416536399217221,
1.5727659491193737,
1.7289954990215264,
1.885225048923679,
2.0414545988258315,
2.1976841487279843,
2.3539136986301368,
2.5101432485322897,
2.666372798434442,
2.8226023483365945,
2.9788318982387474,
3.1350614481409,
3.2912909980430527,
3.447520547945205,
3.603750097847358,
3.7599796477495104,
3.916209197651663,
4.072438747553815,
4.228668297455968,
4.38489784735812,
4.541127397260273,
4.697356947162426,
4.853586497064579,
5.009816046966731,
5.166045596868884,
5.3222751467710365,
5.4785046966731885,
5.634734246575341,
5.790963796477494,
5.947193346379647,
6.103422896281799,
6.259652446183952,
6.415881996086105,
6.572111545988257,
6.72834109589041,
6.884570645792563,
7.0408001956947155,
7.1970297455968675,
7.35325929549902,
7.509488845401173,
7.665718395303325,
7.821947945205478,
7.978177495107631,
8.134407045009784,
8.290636594911938,
8.44686614481409,
8.603095694716242,
8.759325244618395,
8.915554794520547,
9.0717843444227,
9.228013894324853,
9.384243444227005,
9.540472994129159,
9.69670254403131,
9.852932093933463,
10.009161643835617,
10.165391193737769,
10.32162074363992,
10.477850293542074,
10.634079843444226,
10.790309393346378,
10.946538943248532,
11.102768493150684,
11.258998043052838,
11.41522759295499,
11.571457142857142,
11.727686692759296,
11.883916242661448,
12.0401457925636,
12.196375342465753,
12.352604892367905,
12.508834442270057,
12.665063992172211,
12.821293542074363,
12.977523091976515,
13.133752641878669,
13.28998219178082,
13.446211741682975,
13.602441291585126,
13.758670841487278,
13.914900391389432,
14.071129941291584,
14.227359491193736,
14.38358904109589,
14.539818590998042,
14.696048140900194,
14.852277690802348,
15.0085072407045,
15.164736790606652,
15.320966340508805,
15.477195890410957,
15.633425440313111,
15.789654990215263,
15.945884540117415,
16.10211409001957,
16.25834363992172,
16.414573189823873,
16.570802739726023,
16.727032289628177,
16.88326183953033,
17.03949138943248,
17.195720939334635,
17.35195048923679,
17.50818003913894,
17.664409589041092,
17.820639138943246,
17.976868688845396,
18.13309823874755,
18.289327788649704,
18.445557338551858,
18.601786888454008,
18.75801643835616,
18.914245988258315,
19.070475538160466,
19.22670508806262,
19.382934637964773,
19.539164187866923,
19.695393737769077,
19.85162328767123,
20.00785283757338,
20.164082387475535,
20.32031193737769,
20.47654148727984,
20.632771037181993,
20.789000587084146,
20.945230136986297,
21.10145968688845,
21.257689236790604,
21.413918786692754,
21.570148336594908,
21.726377886497062,
21.882607436399212,
22.038836986301366,
22.19506653620352,
22.351296086105673,
22.507525636007824,
22.663755185909977,
22.81998473581213,
22.97621428571428,
23.132443835616435,
23.28867338551859,
23.44490293542074,
23.601132485322893,
23.757362035225047,
23.913591585127197,
24.06982113502935,
24.226050684931504,
24.382280234833654,
24.53850978473581,
24.694739334637962,
24.850968884540112,
25.007198434442266,
25.16342798434442,
25.31965753424657,
25.475887084148724,
25.632116634050877,
25.788346183953028,
25.94457573385518,
26.100805283757335,
26.25703483365949,
26.41326438356164,
26.569493933463793,
26.725723483365947,
26.881953033268097,
27.03818258317025,
27.194412133072404,
27.350641682974555,
27.50687123287671,
27.663100782778862,
27.819330332681012,
27.975559882583166,
28.13178943248532,
28.28801898238747,
28.444248532289624,
28.600478082191778,
28.756707632093928,
28.91293718199608,
29.069166731898235,
29.225396281800386,
29.38162583170254,
29.537855381604693,
29.694084931506843,
29.850314481408997,
30.00654403131115,
30.1627735812133,
30.319003131115455,
30.47523268101761,
30.631462230919762,
30.787691780821913,
30.943921330724066,
31.10015088062622,
31.25638043052837,
31.412609980430524,
31.568839530332678,
31.725069080234828,
31.881298630136982,
32.03752818003914,
32.19375772994129,
32.34998727984344,
32.50621682974559,
32.66244637964775,
32.8186759295499,
32.97490547945205,
33.131135029354205,
33.287364579256355,
33.443594129158505,
33.59982367906066,
33.75605322896281,
33.91228277886496,
34.06851232876712,
34.22474187866927,
34.38097142857142,
34.53720097847358,
34.69343052837573,
34.84966007827788,
35.005889628180036,
35.162119178082186,
35.318348727984336,
35.47457827788649,
35.630807827788644,
35.787037377690794,
35.94326692759295,
36.0994964774951,
36.25572602739726,
36.41195557729941,
36.56818512720156,
36.72441467710372,
36.88064422700587,
37.03687377690802,
37.193103326810174,
37.349332876712324,
37.505562426614475,
37.66179197651663,
37.81802152641878,
37.97425107632093,
38.13048062622309,
38.28671017612524,
38.44293972602739,
38.59916927592955,
38.7553988258317,
38.91162837573385,
39.067857925636005,
39.224087475538155,
39.380317025440306,
39.53654657534246,
39.69277612524461,
39.84900567514676,
40.00523522504892,
40.16146477495107,
40.31769432485322,
40.47392387475538,
40.63015342465753,
40.78638297455968,
40.942612524461836,
41.098842074363986,
41.25507162426614,
41.411301174168294,
41.567530724070444,
41.723760273972594,
41.87998982387475,
42.0362193737769,
42.19244892367905,
42.34867847358121,
42.50490802348336,
42.66113757338551,
42.81736712328767,
42.97359667318982,
43.12982622309197,
43.286055772994125,
43.442285322896275,
43.598514872798425,
43.75474442270058,
43.91097397260273,
44.06720352250488,
44.22343307240704,
44.37966262230919,
44.53589217221135,
44.6921217221135,
44.84835127201565,
45.004580821917806,
45.160810371819956,
45.317039921722106,
45.47326947162426,
45.629499021526414,
45.785728571428564,
45.94195812133072,
46.09818767123287,
46.25441722113502,
46.41064677103718,
46.56687632093933,
46.72310587084148,
46.87933542074364,
47.03556497064579,
47.19179452054794,
47.348024070450094,
47.504253620352245,
47.660483170254395,
47.81671272015655,
47.9729422700587,
48.12917181996085,
48.28540136986301,
48.44163091976516,
48.59786046966731,
48.75409001956947,
48.91031956947162,
49.06654911937377,
49.222778669275925,
49.379008219178075,
49.535237769080226,
49.69146731898238,
49.84769686888453,
50.00392641878668,
50.16015596868884,
50.31638551859099,
50.47261506849314,
50.6288446183953,
50.78507416829745,
50.9413037181996,
51.097533268101756,
51.253762818003906,
51.40999236790606,
51.566221917808214,
51.722451467710364,
51.878681017612514,
52.03491056751467,
52.19114011741682,
52.34736966731898,
52.50359921722113,
52.65982876712328,
52.81605831702544,
52.97228786692759,
53.12851741682974,
53.284746966731895,
53.440976516634045,
53.597206066536195,
53.75343561643835,
53.9096651663405,
54.06589471624265,
54.22212426614481,
54.37835381604696,
54.53458336594911,
54.69081291585127,
54.84704246575342,
55.00327201565557,
55.159501565557726,
55.315731115459876,
55.471960665362026,
55.62819021526418,
55.784419765166334,
55.940649315068484,
56.09687886497064,
56.25310841487279,
56.40933796477494,
56.5655675146771,
56.72179706457925,
56.8780266144814,
57.03425616438356,
57.19048571428571,
57.34671526418786,
57.502944814090014,
57.659174363992165,
57.815403913894315,
57.97163346379647,
58.12786301369862,
58.28409256360077,
58.44032211350293,
58.59655166340508,
58.75278121330723,
58.90901076320939,
59.06524031311154,
59.22146986301369,
59.377699412915845,
59.533928962817996,
59.690158512720146,
59.8463880626223,
60.00261761252445,
60.1588471624266,
60.31507671232876,
60.47130626223091,
60.62753581213307,
60.78376536203522,
60.93999491193737,
61.096224461839526,
61.252454011741676,
61.40868356164383,
61.564913111545984,
61.721142661448134,
61.877372211350284,
62.03360176125244,
62.18983131115459,
62.34606086105674,
62.5022904109589,
62.65851996086105,
62.8147495107632,
62.97097906066536,
63.12720861056751,
63.28343816046966,
63.439667710371815,
63.595897260273965,
63.752126810176115,
63.90835636007827,
64.06458590998042,
64.22081545988259,
64.37704500978474,
64.53327455968689,
64.68950410958904,
64.84573365949119,
65.00196320939335,
65.1581927592955,
65.31442230919765,
65.4706518590998,
65.62688140900195,
65.7831109589041,
65.93934050880627,
66.09557005870842,
66.25179960861057,
66.40802915851272,
66.56425870841487,
66.72048825831702,
66.87671780821918,
67.03294735812133,
67.18917690802348,
67.34540645792563,
67.50163600782778,
67.65786555772993,
67.8140951076321,
67.97032465753425,
68.1265542074364,
68.28278375733855,
68.4390133072407,
68.59524285714285,
68.75147240704501,
68.90770195694716,
69.06393150684931,
69.22016105675146,
69.37639060665362,
69.53262015655577,
69.68884970645793,
69.84507925636008,
70.00130880626223,
70.15753835616438,
70.31376790606653,
70.46999745596868,
70.62622700587085,
70.782456555773,
70.93868610567515,
71.0949156555773,
71.25114520547945,
71.4073747553816,
71.56360430528376,
71.71983385518591,
71.87606340508806,
72.03229295499021,
72.18852250489236,
72.34475205479453,
72.50098160469668,
72.65721115459883,
72.81344070450098,
72.96967025440313,
73.12589980430528,
73.28212935420744,
73.43835890410959,
73.59458845401174,
73.75081800391389,
73.90704755381604,
74.06327710371819,
74.21950665362036,
74.37573620352251,
74.53196575342466,
74.68819530332681,
74.84442485322896,
75.00065440313111,
75.15688395303327,
75.31311350293542,
75.46934305283757,
75.62557260273972,
75.78180215264187,
75.93803170254402,
76.09426125244619,
76.25049080234834,
76.40672035225049,
76.56294990215264,
76.71917945205479,
76.87540900195694,
77.0316385518591,
77.18786810176125,
77.3440976516634,
77.50032720156555,
77.6565567514677,
77.81278630136985,
77.96901585127202,
78.12524540117417,
78.28147495107632,
78.43770450097847,
78.59393405088062,
78.75016360078277,
78.90639315068493,
79.06262270058708,
79.21885225048923,
79.37508180039138,
79.53131135029354,
79.68754090019569,
79.84377045009785,
80.0,
0.3333,
0.47746183953033267,
0.6216236790606653,
0.7657855185909981,
0.9099473581213307,
1.0541091976516634,
1.198271037181996,
1.3424328767123286,
1.4865947162426614,
1.6307565557729942,
1.7749183953033267,
1.9190802348336593,
2.063242074363992,
2.207403913894325,
2.3515657534246572,
2.49572759295499,
2.639889432485323,
2.7840512720156556,
2.9282131115459884,
3.0723749510763207,
3.2165367906066535,
3.3606986301369863,
3.5048604696673187,
3.6490223091976515,
3.7931841487279843,
3.937345988258317,
4.08150782778865,
4.225669667318982,
4.369831506849315,
4.513993346379648,
4.658155185909981,
4.802317025440313,
4.946478864970646,
5.090640704500979,
5.234802544031312,
5.3789643835616445,
5.523126223091977,
5.667288062622309,
5.811449902152642,
5.955611741682975,
6.099773581213308,
6.24393542074364,
6.388097260273973,
6.532259099804306,
6.676420939334638,
6.820582778864971,
6.9647446183953035,
7.108906457925636,
7.253068297455969,
7.397230136986302,
7.541391976516635,
7.685553816046967,
7.8297156555773,
7.973877495107632,
8.118039334637965,
8.262201174168297,
8.406363013698629,
8.550524853228962,
8.694686692759294,
8.838848532289628,
8.98301037181996,
9.127172211350294,
9.271334050880625,
9.41549589041096,
9.559657729941291,
9.703819569471623,
9.847981409001957,
9.992143248532289,
10.136305088062622,
10.280466927592954,
10.424628767123288,
10.56879060665362,
10.712952446183953,
10.857114285714285,
11.001276125244617,
11.14543796477495,
11.289599804305283,
11.433761643835616,
11.577923483365948,
11.722085322896282,
11.866247162426614,
12.010409001956946,
12.15457084148728,
12.298732681017611,
12.442894520547945,
12.587056360078277,
12.73121819960861,
12.875380039138943,
13.019541878669274,
13.163703718199608,
13.30786555772994,
13.452027397260274,
13.596189236790606,
13.74035107632094,
13.884512915851271,
14.028674755381605,
14.172836594911937,
14.316998434442269,
14.461160273972602,
14.605322113502934,
14.749483953033268,
14.8936457925636,
15.037807632093934,
15.181969471624265,
15.3261313111546,
15.470293150684931,
15.614454990215263,
15.758616829745597,
15.902778669275929,
16.046940508806262,
16.191102348336596,
16.33526418786693,
16.47942602739726,
16.623587866927593,
16.767749706457927,
16.91191154598826,
17.05607338551859,
17.200235225048925,
17.34439706457926,
17.488558904109592,
17.632720743639922,
17.776882583170256,
17.92104442270059,
18.06520626223092,
18.209368101761253,
18.353529941291587,
18.49769178082192,
18.64185362035225,
18.786015459882584,
18.930177299412918,
19.074339138943248,
19.218500978473582,
19.362662818003916,
19.50682465753425,
19.65098649706458,
19.795148336594913,
19.939310176125247,
20.083472015655577,
20.22763385518591,
20.371795694716244,
20.515957534246578,
20.660119373776908,
20.80428121330724,
20.948443052837575,
21.09260489236791,
21.23676673189824,
21.380928571428573,
21.525090410958907,
21.669252250489237,
21.81341409001957,
21.957575929549904,
22.101737769080238,
22.245899608610568,
22.3900614481409,
22.534223287671235,
22.678385127201565,
22.8225469667319,
22.966708806262233,
23.110870645792566,
23.255032485322896,
23.39919432485323,
23.543356164383564,
23.687518003913894,
23.831679843444228,
23.97584168297456,
24.120003522504895,
24.264165362035225,
24.40832720156556,
24.552489041095892,
24.696650880626223,
24.840812720156556,
24.98497455968689,
25.129136399217224,
25.273298238747554,
25.417460078277887,
25.56162191780822,
25.70578375733855,
25.849945596868885,
25.99410743639922,
26.138269275929552,
26.282431115459882,
26.426592954990216,
26.57075479452055,
26.714916634050883,
26.859078473581214,
27.003240313111547,
27.14740215264188,
27.29156399217221,
27.435725831702545,
27.57988767123288,
27.724049510763212,
27.868211350293542,
28.012373189823876,
28.15653502935421,
28.30069686888454,
28.444858708414873,
28.589020547945207,
28.73318238747554,
28.87734422700587,
29.021506066536205,
29.16566790606654,
29.30982974559687,
29.453991585127202,
29.598153424657536,
29.74231526418787,
29.8864771037182,
30.030638943248533,
30.174800782778867,
30.3189626223092,
30.46312446183953,
30.607286301369864,
30.751448140900198,
30.895609980430528,
31.039771819960862,
31.183933659491196,
31.32809549902153,
31.47225733855186,
31.616419178082193,
31.760581017612527,
31.904742857142857,
32.04890469667319,
32.193066536203524,
32.33722837573386,
32.48139021526419,
32.62555205479452,
32.76971389432485,
32.913875733855186,
33.05803757338552,
33.20219941291585,
33.34636125244619,
33.49052309197652,
33.634684931506854,
33.77884677103718,
33.923008610567514,
34.06717045009785,
34.21133228962818,
34.355494129158515,
34.49965596868885,
34.64381780821918,
34.78797964774951,
34.93214148727984,
35.07630332681018,
35.22046516634051,
35.364627005870844,
35.50878884540118,
35.65295068493151,
35.79711252446184,
35.94127436399217,
36.085436203522505,
36.22959804305284,
36.37375988258317,
36.517921722113506,
36.66208356164384,
36.806245401174166,
36.9504072407045,
37.094569080234834,
37.23873091976517,
37.3828927592955,
37.527054598825835,
37.67121643835617,
37.815378277886495,
37.95954011741683,
38.10370195694716,
38.247863796477496,
38.39202563600783,
38.53618747553816,
38.6803493150685,
38.824511154598824,
38.96867299412916,
39.11283483365949,
39.256996673189825,
39.40115851272016,
39.54532035225049,
39.689482191780826,
39.83364403131115,
39.977805870841486,
40.12196771037182,
40.26612954990215,
40.41029138943249,
40.55445322896282,
40.698615068493154,
40.84277690802348,
40.986938747553815,
41.13110058708415,
41.27526242661448,
41.419424266144816,
41.56358610567515,
41.70774794520548,
41.85190978473582,
41.99607162426614,
42.14023346379648,
42.28439530332681,
42.428557142857144,
42.57271898238748,
42.71688082191781,
42.861042661448145,
43.00520450097847,
43.149366340508806,
43.29352818003914,
43.43769001956947,
43.58185185909981,
43.72601369863014,
43.870175538160474,
44.0143373776908,
44.158499217221134,
44.30266105675147,
44.4468228962818,
44.590984735812135,
44.73514657534247,
44.8793084148728,
45.02347025440313,
45.16763209393346,
45.3117939334638,
45.45595577299413,
45.600117612524464,
45.7442794520548,
45.88844129158513,
46.03260313111546,
46.17676497064579,
46.320926810176125,
46.46508864970646,
46.60925048923679,
46.753412328767126,
46.89757416829746,
47.04173600782779,
47.18589784735812,
47.330059686888454,
47.47422152641879,
47.61838336594912,
47.762545205479455,
47.90670704500979,
48.050868884540115,
48.19503072407045,
48.33919256360078,
48.483354403131116,
48.62751624266145,
48.771678082191784,
48.91583992172212,
49.060001761252444,
49.20416360078278,
49.34832544031311,
49.492487279843445,
49.63664911937378,
49.78081095890411,
49.924972798434446,
50.06913463796477,
50.213296477495106,
50.35745831702544,
50.501620156555774,
50.64578199608611,
50.78994383561644,
50.934105675146775,
51.0782675146771,
51.222429354207435,
51.36659119373777,
51.5107530332681,
51.654914872798436,
51.79907671232877,
51.9432385518591,
52.08740039138944,
52.231562230919764,
52.3757240704501,
52.51988590998043,
52.664047749510765,
52.8082095890411,
52.95237142857143,
53.096533268101766,
53.24069510763209,
53.384856947162426,
53.52901878669276,
53.67318062622309,
53.81734246575343,
53.96150430528376,
54.105666144814094,
54.24982798434442,
54.393989823874755,
54.53815166340509,
54.68231350293542,
54.826475342465756,
54.97063718199609,
55.11479902152642,
55.25896086105675,
55.40312270058708,
55.54728454011742,
55.69144637964775,
55.835608219178084,
55.97977005870842,
56.12393189823875,
56.26809373776908,
56.41225557729941,
56.556417416829746,
56.70057925636008,
56.84474109589041,
56.98890293542075,
57.13306477495108,
57.27722661448141,
57.42138845401174,
57.565550293542074,
57.70971213307241,
57.85387397260274,
57.998035812133075,
58.14219765166341,
58.286359491193735,
58.43052133072407,
58.5746831702544,
58.71884500978474,
58.86300684931507,
59.007168688845404,
59.15133052837574,
59.295492367906064,
59.4396542074364,
59.58381604696673,
59.727977886497065,
59.8721397260274,
60.01630156555773,
60.160463405088066,
60.3046252446184,
60.44878708414873,
60.59294892367906,
60.737110763209394,
60.88127260273973,
61.02543444227006,
61.169596281800395,
61.31375812133073,
61.457919960861055,
61.60208180039139,
61.74624363992172,
61.890405479452056,
62.03456731898239,
62.17872915851272,
62.32289099804306,
62.467052837573384,
62.61121467710372,
62.75537651663405,
62.899538356164385,
63.04370019569472,
63.18786203522505,
63.332023874755386,
63.47618571428571,
63.620347553816046,
63.76450939334638,
63.90867123287671,
64.05283307240704,
64.19699491193738,
64.34115675146771,
64.48531859099803,
64.62948043052837,
64.7736422700587,
64.91780410958903,
65.06196594911937,
65.2061277886497,
65.35028962818004,
65.49445146771036,
65.6386133072407,
65.78277514677103,
65.92693698630137,
66.0710988258317,
66.21526066536202,
66.35942250489236,
66.50358434442269,
66.64774618395303,
66.79190802348336,
66.9360698630137,
67.08023170254403,
67.22439354207435,
67.3685553816047,
67.51271722113502,
67.65687906066536,
67.80104090019569,
67.94520273972603,
68.08936457925635,
68.23352641878668,
68.37768825831702,
68.52185009784735,
68.66601193737769,
68.81017377690802,
68.95433561643836,
69.09849745596868,
69.24265929549901,
69.38682113502935,
69.53098297455968,
69.67514481409002,
69.81930665362034,
69.96346849315069,
70.10763033268101,
70.25179217221134,
70.39595401174168,
70.540115851272,
70.68427769080235,
70.82843953033267,
70.97260136986301,
71.11676320939334,
71.26092504892367,
71.40508688845401,
71.54924872798433,
71.69341056751468,
71.837572407045,
71.98173424657534,
72.12589608610567,
72.270057925636,
72.41421976516634,
72.55838160469666,
72.702543444227,
72.84670528375733,
72.99086712328767,
73.135028962818,
73.27919080234832,
73.42335264187867,
73.56751448140899,
73.71167632093933,
73.85583816046966,
74.0
],
"survived": [
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died"
]
},
"sampling": "none",
"alpha": 0.3,
"inherit_aes": false,
"position": "identity",
"geom": "area",
"fill": "#a39999",
"data_meta": {
"series_annotations": [
{
"type": "str",
"column": "survived"
},
{
"type": "float",
"column": "x"
},
{
"type": "float",
"column": "density"
},
{
"type": "str",
"column": "&merged_groups"
}
]
}
}
],
"data_meta": {
"series_annotations": [
{
"type": "str",
"column": "survived"
},
{
"type": "str",
"column": "&merged_groups"
}
]
}
},
"apply_color_scheme": true,
"swing_enabled": true
}
},
"execution_count": 26,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 26
},
{
"cell_type": "code",
"source": [
"survivedByAge.groupBy { survived }"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2025-05-28T10:19:47.339628Z",
"start_time": "2025-05-28T10:19:47.242863Z"
}
},
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_33()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_33\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870832&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;GroupBy&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;survived: String&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;Survived&quot;,&quot;Died&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;group: DataFrame&lt;*&gt;&bsol;&quot;&gt;group&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [{ frameId: -536870831, value: &quot;&lt;b&gt;DataFrame 500 x 2&lt;&sol;b&gt;&quot; },{ frameId: -536870830, value: &quot;&lt;b&gt;DataFrame 809 x 2&lt;&sol;b&gt;&quot; }] }, \n",
"], id: -536870832, rootId: -536870832, totalRows: 2 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;survived: String&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;age: Double&bsol;&quot;&gt;age&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.166700&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.416700&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.666700&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.750000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.750000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870831, rootId: -536870832, totalRows: 500 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;survived: String&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;age: Double&bsol;&quot;&gt;age&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.333300&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.750000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870830, rootId: -536870832, totalRows: 809 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870832) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_33() {\n",
" let elem = document.getElementById(\"iframe_out_33\");\n",
" resize_iframe_out_33(elem);\n",
" setInterval(resize_iframe_out_33, 5000, elem);\n",
" }\n",
" function resize_iframe_out_33(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870829\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">survived</th><th class=\"bottomBorder\" style=\"text-align:left\">group</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\"><details><summary>DataFrame [500 x 2]</summary><table class=\"dataframe\" id=\"static_df_-536870828\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">survived</th><th class=\"bottomBorder\" style=\"text-align:left\">age</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\">0.166700</td></tr><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\">0.416700</td></tr><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\">0.666700</td></tr><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\">0.750000</td></tr><tr><td style=\"vertical-align:top\">Survived</td><td style=\"vertical-align:top\">0.750000</td></tr></tbody></table><p>... showing only top 5 of 500 rows</p></details></td></tr><tr><td style=\"vertical-align:top\">Died</td><td style=\"vertical-align:top\"><details><summary>DataFrame [809 x 2]</summary><table class=\"dataframe\" id=\"static_df_-536870827\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">survived</th><th class=\"bottomBorder\" style=\"text-align:left\">age</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">Died</td><td style=\"vertical-align:top\">0.333300</td></tr><tr><td style=\"vertical-align:top\">Died</td><td style=\"vertical-align:top\">0.750000</td></tr><tr><td style=\"vertical-align:top\">Died</td><td style=\"vertical-align:top\">1.000000</td></tr><tr><td style=\"vertical-align:top\">Died</td><td style=\"vertical-align:top\">1.000000</td></tr><tr><td style=\"vertical-align:top\">Died</td><td style=\"vertical-align:top\">1.000000</td></tr></tbody></table><p>... showing only top 5 of 809 rows</p></details></td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870829\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"survived\",\"group\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"FrameColumn\"}],\"nrow\":2,\"ncol\":2},\"kotlin_dataframe\":[{\"survived\":\"Survived\",\"group\":{\"data\":[{\"survived\":\"Survived\",\"age\":0.1667},{\"survived\":\"Survived\",\"age\":0.4167},{\"survived\":\"Survived\",\"age\":0.6667},{\"survived\":\"Survived\",\"age\":0.75},{\"survived\":\"Survived\",\"age\":0.75},{\"survived\":\"Survived\",\"age\":0.8333},{\"survived\":\"Survived\",\"age\":0.8333},{\"survived\":\"Survived\",\"age\":0.8333},{\"survived\":\"Survived\",\"age\":0.9167},{\"survived\":\"Survived\",\"age\":0.9167},{\"survived\":\"Survived\",\"age\":1.0},{\"survived\":\"Survived\",\"age\":1.0},{\"survived\":\"Survived\",\"age\":1.0},{\"survived\":\"Survived\",\"age\":1.0},{\"survived\":\"Survived\",\"age\":1.0},{\"survived\":\"Survived\",\"age\":1.0},{\"survived\":\"Survived\",\"age\":1.0},{\"survived\":\"Survived\",\"age\":2.0},{\"survived\":\"Survived\",\"age\":2.0},{\"survived\":\"Survived\",\"age\":2.0}],\"metadata\":{\"kind\":\"FrameColumn\",\"columns\":[\"survived\",\"age\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"}],\"ncol\":2,\"nrow\":500}}},{\"survived\":\"Died\",\"group\":{\"data\":[{\"survived\":\"Died\",\"age\":0.3333},{\"survived\":\"Died\",\"age\":0.75},{\"survived\":\"Died\",\"age\":1.0},{\"survived\":\"Died\",\"age\":1.0},{\"survived\":\"Died\",\"age\":1.0},{\"survived\":\"Died\",\"age\":2.0},{\"survived\":\"Died\",\"age\":2.0},{\"survived\":\"Died\",\"age\":2.0},{\"survived\":\"Died\",\"age\":2.0},{\"survived\":\"Died\",\"age\":2.0},{\"survived\":\"Died\",\"age\":2.0},{\"survived\":\"Died\",\"age\":2.0},{\"survived\":\"Died\",\"age\":2.0},{\"survived\":\"Died\",\"age\":3.0},{\"survived\":\"Died\",\"age\":3.0},{\"survived\":\"Died\",\"age\":4.0},{\"survived\":\"Died\",\"age\":4.0},{\"survived\":\"Died\",\"age\":4.0},{\"survived\":\"Died\",\"age\":5.0},{\"survived\":\"Died\",\"age\":6.0}],\"metadata\":{\"kind\":\"FrameColumn\",\"columns\":[\"survived\",\"age\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"}],\"ncol\":2,\"nrow\":809}}}]}"
},
"execution_count": 27,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 27
},
{
"cell_type": "code",
"source": [
"// A basic box plot\n",
"survivedByAge.plot {\n",
" boxplot(x = survived, y = age) {\n",
" boxes {\n",
" fillColor(Stat.x) {\n",
" scale = categorical(\n",
" \"Survived\" to JetBrainsColors.orange,\n",
" \"Died\" to JetBrainsColors.darkGrey,\n",
" )\n",
" }\n",
" }\n",
" }\n",
" layout {\n",
" size = 500 to 400\n",
" }\n",
"}"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2025-05-28T10:19:54.039953Z",
"start_time": "2025-05-28T10:19:53.550400Z"
}
},
"outputs": [
{
"data": {
"text/html": [
" <iframe src='about:blank' style='border:none !important;' width='500' height='400' srcdoc=\"&lt;html lang=&quot;en&quot;>\n",
" &lt;head>\n",
" &lt;meta charset=&quot;UTF-8&quot;>\n",
" &lt;style> html, body { margin: 0; overflow: hidden; } &lt;/style>\n",
" &lt;script type=&quot;text/javascript&quot; data-lets-plot-script=&quot;library&quot; src=&quot;https://cdn.jsdelivr.net/gh/JetBrains/lets-plot@v4.5.1/js-package/distr/lets-plot.min.js&quot;>&lt;/script>\n",
" &lt;/head>\n",
" &lt;body>\n",
" &lt;div id=&quot;0xCgUk&quot;>&lt;/div>\n",
" &lt;script type=&quot;text/javascript&quot; data-lets-plot-script=&quot;plot&quot;>\n",
" \n",
" (function() {\n",
" // ----------\n",
" \n",
" var plotSpec={\n",
"&quot;mapping&quot;:{\n",
"},\n",
"&quot;data&quot;:{\n",
"},\n",
"&quot;ggsize&quot;:{\n",
"&quot;width&quot;:500.0,\n",
"&quot;height&quot;:400.0\n",
"},\n",
"&quot;kind&quot;:&quot;plot&quot;,\n",
"&quot;scales&quot;:[{\n",
"&quot;aesthetic&quot;:&quot;x&quot;,\n",
"&quot;name&quot;:&quot;survived&quot;,\n",
"&quot;limits&quot;:[null,null]\n",
"},{\n",
"&quot;aesthetic&quot;:&quot;y&quot;,\n",
"&quot;name&quot;:&quot;age&quot;,\n",
"&quot;limits&quot;:[null,null]\n",
"},{\n",
"&quot;aesthetic&quot;:&quot;x&quot;,\n",
"&quot;discrete&quot;:true\n",
"},{\n",
"&quot;aesthetic&quot;:&quot;fill&quot;,\n",
"&quot;values&quot;:[&quot;#ff6632&quot;,&quot;#4c4c4c&quot;],\n",
"&quot;limits&quot;:[&quot;Survived&quot;,&quot;Died&quot;]\n",
"},{\n",
"&quot;aesthetic&quot;:&quot;x&quot;,\n",
"&quot;discrete&quot;:true\n",
"},{\n",
"&quot;aesthetic&quot;:&quot;y&quot;,\n",
"&quot;limits&quot;:[null,null]\n",
"}],\n",
"&quot;layers&quot;:[{\n",
"&quot;mapping&quot;:{\n",
"&quot;x&quot;:&quot;x&quot;,\n",
"&quot;ymin&quot;:&quot;min&quot;,\n",
"&quot;lower&quot;:&quot;lower&quot;,\n",
"&quot;middle&quot;:&quot;middle&quot;,\n",
"&quot;upper&quot;:&quot;upper&quot;,\n",
"&quot;ymax&quot;:&quot;max&quot;,\n",
"&quot;fill&quot;:&quot;x&quot;\n",
"},\n",
"&quot;stat&quot;:&quot;identity&quot;,\n",
"&quot;data&quot;:{\n",
"&quot;min&quot;:[0.1667,5.0],\n",
"&quot;middle&quot;:[29.8811345124283,29.8811345124283],\n",
"&quot;max&quot;:[58.0,52.0],\n",
"&quot;upper&quot;:[36.0,35.0],\n",
"&quot;lower&quot;:[21.25,23.0],\n",
"&quot;x&quot;:[&quot;Survived&quot;,&quot;Died&quot;]\n",
"},\n",
"&quot;sampling&quot;:&quot;none&quot;,\n",
"&quot;inherit_aes&quot;:false,\n",
"&quot;position&quot;:&quot;identity&quot;,\n",
"&quot;geom&quot;:&quot;boxplot&quot;,\n",
"&quot;data_meta&quot;:{\n",
"&quot;series_annotations&quot;:[{\n",
"&quot;type&quot;:&quot;str&quot;,\n",
"&quot;column&quot;:&quot;x&quot;\n",
"},{\n",
"&quot;type&quot;:&quot;float&quot;,\n",
"&quot;column&quot;:&quot;min&quot;\n",
"},{\n",
"&quot;type&quot;:&quot;float&quot;,\n",
"&quot;column&quot;:&quot;lower&quot;\n",
"},{\n",
"&quot;type&quot;:&quot;float&quot;,\n",
"&quot;column&quot;:&quot;middle&quot;\n",
"},{\n",
"&quot;type&quot;:&quot;float&quot;,\n",
"&quot;column&quot;:&quot;upper&quot;\n",
"},{\n",
"&quot;type&quot;:&quot;float&quot;,\n",
"&quot;column&quot;:&quot;max&quot;\n",
"}]\n",
"}\n",
"},{\n",
"&quot;mapping&quot;:{\n",
"&quot;x&quot;:&quot;x&quot;,\n",
"&quot;y&quot;:&quot;y&quot;\n",
"},\n",
"&quot;stat&quot;:&quot;identity&quot;,\n",
"&quot;data&quot;:{\n",
"&quot;x&quot;:[&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Survived&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;,&quot;Died&quot;],\n",
"&quot;y&quot;:[59.0,60.0,60.0,60.0,60.0,62.0,62.0,63.0,63.0,64.0,64.0,76.0,80.0,0.3333,0.75,1.0,1.0,1.0,2.0,2.0,2.0,2.0,2.0,2.0,2.0,2.0,3.0,3.0,4.0,4.0,4.0,54.0,54.0,54.0,54.0,54.0,55.0,55.0,55.0,55.0,55.5,56.0,56.0,57.0,57.0,57.0,57.0,57.0,58.0,58.0,59.0,59.0,60.0,60.0,60.0,60.5,61.0,61.0,61.0,61.0,61.0,62.0,62.0,62.0,63.0,63.0,64.0,64.0,64.0,65.0,65.0,65.0,66.0,67.0,70.0,70.0,70.5,71.0,71.0,74.0]\n",
"},\n",
"&quot;sampling&quot;:&quot;none&quot;,\n",
"&quot;inherit_aes&quot;:false,\n",
"&quot;position&quot;:&quot;identity&quot;,\n",
"&quot;geom&quot;:&quot;point&quot;,\n",
"&quot;data_meta&quot;:{\n",
"&quot;series_annotations&quot;:[{\n",
"&quot;type&quot;:&quot;str&quot;,\n",
"&quot;column&quot;:&quot;x&quot;\n",
"},{\n",
"&quot;type&quot;:&quot;float&quot;,\n",
"&quot;column&quot;:&quot;y&quot;\n",
"}]\n",
"}\n",
"}],\n",
"&quot;spec_id&quot;:&quot;17&quot;\n",
"};\n",
" var containerDiv = document.getElementById(&quot;0xCgUk&quot;);\n",
" \n",
" var toolbar = null;\n",
" var plotContainer = containerDiv; \n",
" \n",
" var options = {\n",
" sizing: {\n",
" width_mode: &quot;fixed&quot;,\n",
" height_mode: &quot;fixed&quot;,\n",
" width: 500.0,\n",
" height: 400.0\n",
" }\n",
" };\n",
" var fig = LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer, options);\n",
" if (toolbar) {\n",
" toolbar.bind(fig);\n",
" }\n",
" \n",
" // ----------\n",
" })();\n",
" \n",
" &lt;/script>\n",
" &lt;/body>\n",
"&lt;/html>\"></iframe> <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" display=\"block\" class=\"plt-container\" id=5fc108e0-3f3e-4fae-97f5-1efd002b1dd6 width=\"100%\" height=\"100%\" style=\"max-width: 500.0px; max-height: 400.0px;\" viewBox=\"0 0 500.0 400.0\" preserveAspectRatio=\"xMinYMin meet\">\n",
" <style type=\"text/css\">\n",
" .plt-container {\n",
" font-family: Lucida Grande, sans-serif;\n",
" user-select: none;\n",
" -webkit-user-select: none;\n",
" -moz-user-select: none;\n",
" -ms-user-select: none;\n",
"}\n",
"text {\n",
" text-rendering: optimizeLegibility;\n",
"}\n",
"#po604zz .plot-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 16.0px;\n",
"\n",
"}\n",
"#po604zz .plot-subtitle {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#po604zz .plot-caption {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#po604zz .hyperlink-element {\n",
"fill: #118ed8;\n",
"font-weight: normal;\n",
" font-style: normal;\n",
"}\n",
"#po604zz .legend-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#po604zz .legend-item {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#po604zz .axis-title-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#po604zz .axis-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dgErUlj .axis-tooltip-text-x {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#po604zz .axis-title-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#po604zz .axis-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dgErUlj .axis-tooltip-text-y {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#po604zz .facet-strip-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#po604zz .facet-strip-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dgErUlj .tooltip-text {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dgErUlj .tooltip-title {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dgErUlj .tooltip-label {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"\n",
" </style>\n",
" <g id=\"po604zz\">\n",
" <path fill-rule=\"evenodd\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" d=\"M0.0 0.0 L0.0 400.0 L500.0 400.0 L500.0 0.0 Z\">\n",
" </path>\n",
" <g transform=\"translate(29.5 6.5 ) \">\n",
" <g>\n",
" <g transform=\"translate(21.961210910936405 0.0 ) \">\n",
" <g>\n",
" <line x1=\"93.87421837322398\" y1=\"0.0\" x2=\"93.87421837322398\" y2=\"341.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"238.29609279356856\" y1=\"0.0\" x2=\"238.29609279356856\" y2=\"341.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(21.961210910936405 0.0 ) \">\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"326.1473113349943\" x2=\"332.1703111667925\" y2=\"326.1473113349943\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"287.31639741812\" x2=\"332.1703111667925\" y2=\"287.31639741812\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"248.4854835012457\" x2=\"332.1703111667925\" y2=\"248.4854835012457\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"209.65456958437144\" x2=\"332.1703111667925\" y2=\"209.65456958437144\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"170.82365566749715\" x2=\"332.1703111667925\" y2=\"170.82365566749715\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"131.99274175062288\" x2=\"332.1703111667925\" y2=\"131.99274175062288\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"93.16182783374859\" x2=\"332.1703111667925\" y2=\"93.16182783374859\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"54.330913916874295\" x2=\"332.1703111667925\" y2=\"54.330913916874295\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"15.5\" x2=\"332.1703111667925\" y2=\"15.5\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g clip-path=\"url(#c9TXaVf)\" clip-bounds-jfx=\"[rect (21.961210910936405, 0.0), (332.1703111667925, 341.0)]\">\n",
" <g transform=\"translate(21.961210910936405 0.0 ) \">\n",
" <g>\n",
" <g>\n",
" <rect x=\"28.88437488406892\" y=\"186.35602123424687\" height=\"57.27559802738958\" width=\"129.97968697831016\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"173.3062493044135\" y=\"190.2391126259343\" height=\"46.59709670024915\" width=\"129.97968697831013\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"rgb(76,76,76)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <line x1=\"28.88437488406892\" y1=\"210.11613513592982\" x2=\"158.86406186237906\" y2=\"210.11613513592982\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"3.3000000000000003\">\n",
" </line>\n",
" <line x1=\"173.3062493044135\" y1=\"210.11613513592982\" x2=\"303.2859362827236\" y2=\"210.11613513592982\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"3.3000000000000003\">\n",
" </line>\n",
" <line x1=\"93.87421837322398\" y1=\"243.63161926163644\" x2=\"93.87421837322398\" y2=\"325.5\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"61.37929662864645\" y1=\"325.5\" x2=\"126.36914011780152\" y2=\"325.5\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"93.87421837322398\" y1=\"186.35602123424687\" x2=\"93.87421837322398\" y2=\"100.92801061712345\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"61.37929662864645\" y1=\"100.92801061712345\" x2=\"126.36914011780152\" y2=\"100.92801061712345\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"238.29609279356856\" y1=\"236.83620932618345\" x2=\"238.29609279356856\" y2=\"306.7318543765572\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"205.80117104899102\" y1=\"306.7318543765572\" x2=\"270.7910145381461\" y2=\"306.7318543765572\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"238.29609279356856\" y1=\"190.2391126259343\" x2=\"238.29609279356856\" y2=\"124.22655896724802\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"205.80117104899102\" y1=\"124.22655896724802\" x2=\"270.7910145381461\" y2=\"124.22655896724802\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <g>\n",
" <g >\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"93.87421837322398\" cy=\"97.04491922543602\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"93.87421837322398\" cy=\"93.16182783374859\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"93.87421837322398\" cy=\"93.16182783374859\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"93.87421837322398\" cy=\"93.16182783374859\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"93.87421837322398\" cy=\"93.16182783374859\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"93.87421837322398\" cy=\"85.39564505037373\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"93.87421837322398\" cy=\"85.39564505037373\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"93.87421837322398\" cy=\"81.5125536586863\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"93.87421837322398\" cy=\"81.5125536586863\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"93.87421837322398\" cy=\"77.62946226699887\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"93.87421837322398\" cy=\"77.62946226699887\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"93.87421837322398\" cy=\"31.032365566749718\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"93.87421837322398\" cy=\"15.5\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"324.85307697414487\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"323.2349927912287\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"322.2642199433069\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"322.2642199433069\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"322.2642199433069\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"318.38112855161944\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"318.38112855161944\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"318.38112855161944\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"318.38112855161944\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"318.38112855161944\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"318.38112855161944\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"318.38112855161944\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"318.38112855161944\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"314.49803715993204\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"314.49803715993204\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"310.6149457682446\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"310.6149457682446\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"310.6149457682446\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"116.46037618387317\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"116.46037618387317\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"116.46037618387317\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"116.46037618387317\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"116.46037618387317\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"112.57728479218574\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"112.57728479218574\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"112.57728479218574\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"112.57728479218574\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"110.63573909634201\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"108.6941934004983\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"108.6941934004983\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"104.81110200881088\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"104.81110200881088\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"104.81110200881088\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"104.81110200881088\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"104.81110200881088\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"100.92801061712345\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"100.92801061712345\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"97.04491922543602\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"97.04491922543602\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"93.16182783374859\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"93.16182783374859\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"93.16182783374859\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"91.22028213790486\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"89.27873644206116\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"89.27873644206116\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"89.27873644206116\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"89.27873644206116\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"89.27873644206116\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"85.39564505037373\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"85.39564505037373\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"85.39564505037373\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"81.5125536586863\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"81.5125536586863\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"77.62946226699887\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"77.62946226699887\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"77.62946226699887\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"73.74637087531144\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"73.74637087531144\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"73.74637087531144\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"69.86327948362401\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"65.98018809193661\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"54.330913916874295\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"54.330913916874295\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"52.389368221030566\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"50.44782252518689\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"50.44782252518689\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#474747\" stroke=\"#474747\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"238.29609279356856\" cy=\"38.79854835012458\" r=\"3.3000000000000003\" />\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <defs>\n",
" <clipPath id=\"cXiwkbN\">\n",
" <rect x=\"21.961210910936405\" y=\"0.0\" width=\"332.1703111667925\" height=\"341.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" <defs>\n",
" <clipPath id=\"c9TXaVf\">\n",
" <rect x=\"21.961210910936405\" y=\"0.0\" width=\"332.1703111667925\" height=\"341.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" </g>\n",
" <g>\n",
" <g transform=\"translate(21.961210910936405 341.0 ) \">\n",
" <g transform=\"translate(93.87421837322398 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>Survived</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(238.29609279356856 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>Died</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <line x1=\"0.0\" y1=\"0.0\" x2=\"332.1703111667925\" y2=\"0.0\" stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" </g>\n",
" <g transform=\"translate(21.961210910936405 0.0 ) \">\n",
" <g transform=\"translate(0.0 326.1473113349943 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>0</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 287.31639741812 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>10</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 248.4854835012457 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>20</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 209.65456958437144 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>30</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 170.82365566749715 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>40</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 131.99274175062288 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>50</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 93.16182783374859 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>60</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 54.330913916874295 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>70</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 15.5 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>80</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(16.0 177.0 ) rotate(-90.0 ) \">\n",
" <text class=\"axis-title-y\" y=\"0.0\" text-anchor=\"middle\">\n",
" <tspan>age</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(217.54636649433263 393.0 ) \">\n",
" <text class=\"axis-title-x\" y=\"0.0\" text-anchor=\"middle\">\n",
" <tspan>survived</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(395.1315220777289 137.75 ) \">\n",
" <rect x=\"0.0\" y=\"0.0\" height=\"78.5\" width=\"104.8684779222711\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <g transform=\"translate(5.0 5.0 ) \">\n",
" <g transform=\"translate(0.0 12.0 ) \">\n",
" <text class=\"legend-title\" y=\"0.0\">\n",
" <tspan>x</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(0.0 22.5 ) \">\n",
" <g transform=\"\">\n",
" <g>\n",
" <g transform=\"translate(1.0 1.0 ) \">\n",
" <g>\n",
" <rect x=\"2.759999999999999\" y=\"4.695\" height=\"11.610000000000001\" width=\"15.480000000000002\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <line x1=\"2.759999999999999\" y1=\"10.5\" x2=\"18.240000000000002\" y2=\"10.5\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"10.5\" y1=\"16.305000000000003\" x2=\"10.5\" y2=\"20.175\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"10.5\" y1=\"0.8250000000000001\" x2=\"10.5\" y2=\"4.695\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"rgb(255,102,50)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(26.9903027277341 16.05 ) \">\n",
" <text class=\"legend-item\" y=\"0.0\">\n",
" <tspan>Survived</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 23.0 ) \">\n",
" <g>\n",
" <g transform=\"translate(1.0 1.0 ) \">\n",
" <g>\n",
" <rect x=\"2.759999999999999\" y=\"4.695\" height=\"11.610000000000001\" width=\"15.480000000000002\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"rgb(76,76,76)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <line x1=\"2.759999999999999\" y1=\"10.5\" x2=\"18.240000000000002\" y2=\"10.5\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"rgb(76,76,76)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"10.5\" y1=\"16.305000000000003\" x2=\"10.5\" y2=\"20.175\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"rgb(76,76,76)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"10.5\" y1=\"0.8250000000000001\" x2=\"10.5\" y2=\"4.695\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"rgb(76,76,76)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(26.9903027277341 16.05 ) \">\n",
" <text class=\"legend-item\" y=\"0.0\">\n",
" <tspan>Died</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <path fill=\"rgb(0,0,0)\" fill-opacity=\"0.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" d=\"M0.0 0.0 L0.0 400.0 L500.0 400.0 L500.0 0.0 Z\" pointer-events=\"none\">\n",
" </path>\n",
" </g>\n",
" <g id=\"dgErUlj\">\n",
" </g>\n",
"</svg>\n",
" <script>document.getElementById(\"5fc108e0-3f3e-4fae-97f5-1efd002b1dd6\").style.display = \"none\";</script>"
],
"application/plot+json": {
"output_type": "lets_plot_spec",
"output": {
"mapping": {},
"data": {},
"ggsize": {
"width": 500.0,
"height": 400.0
},
"kind": "plot",
"scales": [
{
"aesthetic": "x",
"name": "survived",
"limits": [
null,
null
]
},
{
"aesthetic": "y",
"name": "age",
"limits": [
null,
null
]
},
{
"aesthetic": "x",
"discrete": true
},
{
"aesthetic": "fill",
"values": [
"#ff6632",
"#4c4c4c"
],
"limits": [
"Survived",
"Died"
]
},
{
"aesthetic": "x",
"discrete": true
},
{
"aesthetic": "y",
"limits": [
null,
null
]
}
],
"layers": [
{
"mapping": {
"x": "x",
"ymin": "min",
"lower": "lower",
"middle": "middle",
"upper": "upper",
"ymax": "max",
"fill": "x"
},
"stat": "identity",
"data": {
"min": [
0.1667,
5.0
],
"middle": [
29.8811345124283,
29.8811345124283
],
"max": [
58.0,
52.0
],
"lower": [
21.25,
23.0
],
"upper": [
36.0,
35.0
],
"x": [
"Survived",
"Died"
]
},
"sampling": "none",
"inherit_aes": false,
"position": "identity",
"geom": "boxplot",
"data_meta": {
"series_annotations": [
{
"type": "str",
"column": "x"
},
{
"type": "float",
"column": "min"
},
{
"type": "float",
"column": "lower"
},
{
"type": "float",
"column": "middle"
},
{
"type": "float",
"column": "upper"
},
{
"type": "float",
"column": "max"
}
]
}
},
{
"mapping": {
"x": "x",
"y": "y"
},
"stat": "identity",
"data": {
"x": [
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Survived",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died",
"Died"
],
"y": [
59.0,
60.0,
60.0,
60.0,
60.0,
62.0,
62.0,
63.0,
63.0,
64.0,
64.0,
76.0,
80.0,
0.3333,
0.75,
1.0,
1.0,
1.0,
2.0,
2.0,
2.0,
2.0,
2.0,
2.0,
2.0,
2.0,
3.0,
3.0,
4.0,
4.0,
4.0,
54.0,
54.0,
54.0,
54.0,
54.0,
55.0,
55.0,
55.0,
55.0,
55.5,
56.0,
56.0,
57.0,
57.0,
57.0,
57.0,
57.0,
58.0,
58.0,
59.0,
59.0,
60.0,
60.0,
60.0,
60.5,
61.0,
61.0,
61.0,
61.0,
61.0,
62.0,
62.0,
62.0,
63.0,
63.0,
64.0,
64.0,
64.0,
65.0,
65.0,
65.0,
66.0,
67.0,
70.0,
70.0,
70.5,
71.0,
71.0,
74.0
]
},
"sampling": "none",
"inherit_aes": false,
"position": "identity",
"geom": "point",
"data_meta": {
"series_annotations": [
{
"type": "str",
"column": "x"
},
{
"type": "float",
"column": "y"
}
]
}
}
]
},
"apply_color_scheme": true,
"swing_enabled": true
}
},
"execution_count": 28,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 28
},
{
"cell_type": "markdown",
"metadata": {},
"source": "Seems like we have the same age distribution among survived and perished passengers."
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Categorical features with One Hot Encoding\n",
"\n",
"To prepare data for ML algorithms, we should replace all String values in categorical features with numbers.\n",
"There are a few ways of preprocessing categorical features, One Hot Encoding being one of them.\n",
"We will use the [`pivotMatches`](https://kotlin.github.io/dataframe/pivot.html#pivotmatches) operation to convert categorical columns into sets of nested `Boolean` columns per every unique value."
]
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:21:52.257217Z",
"start_time": "2025-05-28T10:21:51.724220Z"
}
},
"source": [
"val pivoted = df1.pivotMatches { pclass and sex and embarked }\n",
"pivoted.head()"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_37()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_37\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870816&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 5, columnsCount = 14&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;survived: Int&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;name: String&bsol;&quot;&gt;name&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;Allen, Miss. Elisabeth Walton&quot;,&quot;Allison, Master. Hudson Trevor&quot;,&quot;Allison, Miss. Helen Loraine&quot;,&quot;Allison, Mr. Hudson Joshua Creighton&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;Allison, Mrs. Hudson J C (Bessie Waldo Daniels)&bsol;&quot;&gt;Allison, Mrs. Hudson J C (Bessie Wald&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;...&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;age: Double&bsol;&quot;&gt;age&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;29.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.9167&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;30.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;25.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;sibsp: Double&bsol;&quot;&gt;sibsp&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;parch: Double&bsol;&quot;&gt;parch&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;ticket: String&bsol;&quot;&gt;ticket&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;24160&quot;,&quot;113781&quot;,&quot;113781&quot;,&quot;113781&quot;,&quot;113781&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;fare: Double&bsol;&quot;&gt;fare&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;211.3375&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;151.5500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;151.5500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;151.5500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;151.5500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;cabin: String&bsol;&quot;&gt;cabin&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;B5&quot;,&quot;C22 C26&quot;,&quot;C22 C26&quot;,&quot;C22 C26&quot;,&quot;C22 C26&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;boat: String?&bsol;&quot;&gt;boat&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;2&quot;,&quot;11&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;body: Int?&bsol;&quot;&gt;body&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;135&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;homedest: String&bsol;&quot;&gt;homedest&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;St Louis, MO&quot;,&quot;Montreal, PQ &sol; Chesterville, ON&quot;,&quot;Montreal, PQ &sol; Chesterville, ON&quot;,&quot;Montreal, PQ &sol; Chesterville, ON&quot;,&quot;Montreal, PQ &sol; Chesterville, ON&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;1: Boolean&bsol;&quot;&gt;1&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;true&quot;,&quot;true&quot;,&quot;true&quot;,&quot;true&quot;,&quot;true&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;2: Boolean&bsol;&quot;&gt;2&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;false&quot;,&quot;false&quot;,&quot;false&quot;,&quot;false&quot;,&quot;false&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;3: Boolean&bsol;&quot;&gt;3&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;false&quot;,&quot;false&quot;,&quot;false&quot;,&quot;false&quot;,&quot;false&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;pclass: DataRow&lt;*&gt;&bsol;&quot;&gt;pclass&lt;&sol;span&gt;&quot;, children: [11, 12, 13], rightAlign: false, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: true&bsol;n2: false&bsol;n3: false&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;true&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;2: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;3: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: true&bsol;n2: false&bsol;n3: false&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;true&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;2: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;3: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: true&bsol;n2: false&bsol;n3: false&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;true&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;2: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;3: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: true&bsol;n2: false&bsol;n3: false&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;true&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;2: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;3: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: true&bsol;n2: false&bsol;n3: false&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;true&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;2: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;3: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;other: Boolean&bsol;&quot;&gt;other&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;true&quot;,&quot;false&quot;,&quot;false&quot;,&quot;false&quot;,&quot;false&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;male: Boolean&bsol;&quot;&gt;male&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;false&quot;,&quot;true&quot;,&quot;false&quot;,&quot;true&quot;,&quot;false&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;female: Boolean&bsol;&quot;&gt;female&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;false&quot;,&quot;false&quot;,&quot;true&quot;,&quot;false&quot;,&quot;true&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;sex: DataRow&lt;*&gt;&bsol;&quot;&gt;sex&lt;&sol;span&gt;&quot;, children: [15, 16, 17], rightAlign: false, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;other: true&bsol;nmale: false&bsol;nfemale: false&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;other: &lt;&sol;span&gt;true&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;male: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;female:...&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;other: false&bsol;nmale: true&bsol;nfemale: false&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;other: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;male: &lt;&sol;span&gt;true&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;female:...&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;other: false&bsol;nmale: false&bsol;nfemale: true&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;other: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;male: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;female...&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;other: false&bsol;nmale: true&bsol;nfemale: false&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;other: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;male: &lt;&sol;span&gt;true&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;female:...&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;other: false&bsol;nmale: false&bsol;nfemale: true&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;other: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;male: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;female...&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;S: Boolean&bsol;&quot;&gt;S&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;true&quot;,&quot;false&quot;,&quot;true&quot;,&quot;true&quot;,&quot;true&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;AA: Boolean&bsol;&quot;&gt;AA&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;false&quot;,&quot;true&quot;,&quot;false&quot;,&quot;false&quot;,&quot;false&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;C: Boolean&bsol;&quot;&gt;C&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;false&quot;,&quot;false&quot;,&quot;false&quot;,&quot;false&quot;,&quot;false&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;Q: Boolean&bsol;&quot;&gt;Q&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;false&quot;,&quot;false&quot;,&quot;false&quot;,&quot;false&quot;,&quot;false&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;embarked: DataRow&lt;*&gt;&bsol;&quot;&gt;embarked&lt;&sol;span&gt;&quot;, children: [19, 20, 21, 22], rightAlign: false, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;S: true&bsol;nAA: false&bsol;nC: false&bsol;nQ: false&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;S: &lt;&sol;span&gt;true&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;AA: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;C: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;Q: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;...&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;S: false&bsol;nAA: true&bsol;nC: false&bsol;nQ: false&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;S: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;AA: &lt;&sol;span&gt;true&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;C: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;Q: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;...&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;S: true&bsol;nAA: false&bsol;nC: false&bsol;nQ: false&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;S: &lt;&sol;span&gt;true&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;AA: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;C: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;Q: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;...&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;S: true&bsol;nAA: false&bsol;nC: false&bsol;nQ: false&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;S: &lt;&sol;span&gt;true&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;AA: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;C: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;Q: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;...&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;S: true&bsol;nAA: false&bsol;nC: false&bsol;nQ: false&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;S: &lt;&sol;span&gt;true&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;AA: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;C: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;Q: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;...&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870816, rootId: -536870816, totalRows: 5 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870816) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_37() {\n",
" let elem = document.getElementById(\"iframe_out_37\");\n",
" resize_iframe_out_37(elem);\n",
" setInterval(resize_iframe_out_37, 5000, elem);\n",
" }\n",
" function resize_iframe_out_37(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870815\"><thead><tr><th style=\"text-align:left\">survived</th><th style=\"text-align:left\">name</th><th style=\"text-align:left\">age</th><th style=\"text-align:left\">sibsp</th><th style=\"text-align:left\">parch</th><th style=\"text-align:left\">ticket</th><th style=\"text-align:left\">fare</th><th style=\"text-align:left\">cabin</th><th style=\"text-align:left\">boat</th><th style=\"text-align:left\">body</th><th class=\"rightBorder\" style=\"text-align:left\">homedest</th><th class=\"leftBorder\" style=\"text-align:left\">pclass</th><th style=\"text-align:left\"></th><th class=\"rightBorder\" style=\"text-align:left\"></th><th class=\"leftBorder\" style=\"text-align:left\">sex</th><th style=\"text-align:left\"></th><th class=\"rightBorder\" style=\"text-align:left\"></th><th class=\"rightBorder leftBorder\" style=\"text-align:left\">embarked</th><th style=\"text-align:left\"></th><th style=\"text-align:left\"></th><th style=\"text-align:left\"></th></tr><tr><th class=\"bottomBorder\" style=\"text-align:left\"></th><th class=\"bottomBorder\" style=\"text-align:left\"></th><th class=\"bottomBorder\" style=\"text-align:left\"></th><th class=\"bottomBorder\" style=\"text-align:left\"></th><th class=\"bottomBorder\" style=\"text-align:left\"></th><th class=\"bottomBorder\" style=\"text-align:left\"></th><th class=\"bottomBorder\" style=\"text-align:left\"></th><th class=\"bottomBorder\" style=\"text-align:left\"></th><th class=\"bottomBorder\" style=\"text-align:left\"></th><th class=\"bottomBorder\" style=\"text-align:left\"></th><th class=\"bottomBorder rightBorder\" style=\"text-align:left\"></th><th class=\"bottomBorder leftBorder\" style=\"text-align:left\">1</th><th class=\"bottomBorder\" style=\"text-align:left\">2</th><th class=\"bottomBorder rightBorder\" style=\"text-align:left\">3</th><th class=\"bottomBorder leftBorder\" style=\"text-align:left\">other</th><th class=\"bottomBorder\" style=\"text-align:left\">male</th><th class=\"bottomBorder rightBorder\" style=\"text-align:left\">female</th><th class=\"bottomBorder rightBorder leftBorder\" style=\"text-align:left\">S</th><th class=\"bottomBorder\" style=\"text-align:left\">AA</th><th class=\"bottomBorder\" style=\"text-align:left\">C</th><th class=\"bottomBorder\" style=\"text-align:left\">Q</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Allen, Miss. Elisabeth Walton</td><td style=\"vertical-align:top\">29.000000</td><td style=\"vertical-align:top\">0.000000</td><td style=\"vertical-align:top\">0.000000</td><td style=\"vertical-align:top\">24160</td><td style=\"vertical-align:top\">211.337500</td><td style=\"vertical-align:top\">B5</td><td style=\"vertical-align:top\">2</td><td style=\"vertical-align:top\">null</td><td class=\"rightBorder\" style=\"vertical-align:top\">St Louis, MO</td><td class=\"leftBorder\" style=\"vertical-align:top\">true</td><td style=\"vertical-align:top\">false</td><td class=\"rightBorder\" style=\"vertical-align:top\">false</td><td class=\"leftBorder\" style=\"vertical-align:top\">true</td><td style=\"vertical-align:top\">false</td><td class=\"rightBorder\" style=\"vertical-align:top\">false</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">true</td><td style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">false</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Allison, Master. Hudson Trevor</td><td style=\"vertical-align:top\">0.916700</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">2.000000</td><td style=\"vertical-align:top\">113781</td><td style=\"vertical-align:top\">151.550000</td><td style=\"vertical-align:top\">C22 C26</td><td style=\"vertical-align:top\">11</td><td style=\"vertical-align:top\">null</td><td class=\"rightBorder\" style=\"vertical-align:top\">Montreal, PQ / Chesterville, ON</td><td class=\"leftBorder\" style=\"vertical-align:top\">true</td><td style=\"vertical-align:top\">false</td><td class=\"rightBorder\" style=\"vertical-align:top\">false</td><td class=\"leftBorder\" style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">true</td><td class=\"rightBorder\" style=\"vertical-align:top\">false</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">true</td><td style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">false</td></tr><tr><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Allison, Miss. Helen Loraine</td><td style=\"vertical-align:top\">2.000000</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">2.000000</td><td style=\"vertical-align:top\">113781</td><td style=\"vertical-align:top\">151.550000</td><td style=\"vertical-align:top\">C22 C26</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">null</td><td class=\"rightBorder\" style=\"vertical-align:top\">Montreal, PQ / Chesterville, ON</td><td class=\"leftBorder\" style=\"vertical-align:top\">true</td><td style=\"vertical-align:top\">false</td><td class=\"rightBorder\" style=\"vertical-align:top\">false</td><td class=\"leftBorder\" style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">false</td><td class=\"rightBorder\" style=\"vertical-align:top\">true</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">true</td><td style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">false</td></tr><tr><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Allison, Mr. Hudson Joshua Creighton</td><td style=\"vertical-align:top\">30.000000</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">2.000000</td><td style=\"vertical-align:top\">113781</td><td style=\"vertical-align:top\">151.550000</td><td style=\"vertical-align:top\">C22 C26</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">135</td><td class=\"rightBorder\" style=\"vertical-align:top\">Montreal, PQ / Chesterville, ON</td><td class=\"leftBorder\" style=\"vertical-align:top\">true</td><td style=\"vertical-align:top\">false</td><td class=\"rightBorder\" style=\"vertical-align:top\">false</td><td class=\"leftBorder\" style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">true</td><td class=\"rightBorder\" style=\"vertical-align:top\">false</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">true</td><td style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">false</td></tr><tr><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Allison, Mrs. Hudson J C (Bessie Wald<span class=\"structural\">...</span></td><td style=\"vertical-align:top\">25.000000</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">2.000000</td><td style=\"vertical-align:top\">113781</td><td style=\"vertical-align:top\">151.550000</td><td style=\"vertical-align:top\">C22 C26</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">null</td><td class=\"rightBorder\" style=\"vertical-align:top\">Montreal, PQ / Chesterville, ON</td><td class=\"leftBorder\" style=\"vertical-align:top\">true</td><td style=\"vertical-align:top\">false</td><td class=\"rightBorder\" style=\"vertical-align:top\">false</td><td class=\"leftBorder\" style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">false</td><td class=\"rightBorder\" style=\"vertical-align:top\">true</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">true</td><td style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">false</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870815\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"survived\",\"name\",\"age\",\"sibsp\",\"parch\",\"ticket\",\"fare\",\"cabin\",\"boat\",\"body\",\"homedest\",\"pclass\",\"sex\",\"embarked\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String?\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int?\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ColumnGroup\"},{\"kind\":\"ColumnGroup\"},{\"kind\":\"ColumnGroup\"}],\"nrow\":5,\"ncol\":14},\"kotlin_dataframe\":[{\"survived\":1,\"name\":\"Allen, Miss. Elisabeth Walton\",\"age\":29.0,\"sibsp\":0.0,\"parch\":0.0,\"ticket\":\"24160\",\"fare\":211.3375,\"cabin\":\"B5\",\"boat\":\"2\",\"body\":null,\"homedest\":\"St Louis, MO\",\"pclass\":{\"data\":{\"1\":true,\"2\":false,\"3\":false},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"2\",\"3\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}},\"sex\":{\"data\":{\"other\":true,\"male\":false,\"female\":false},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"other\",\"male\",\"female\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}},\"embarked\":{\"data\":{\"S\":true,\"AA\":false,\"C\":false,\"Q\":false},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"S\",\"AA\",\"C\",\"Q\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}}},{\"survived\":1,\"name\":\"Allison, Master. Hudson Trevor\",\"age\":0.9167,\"sibsp\":1.0,\"parch\":2.0,\"ticket\":\"113781\",\"fare\":151.55,\"cabin\":\"C22 C26\",\"boat\":\"11\",\"body\":null,\"homedest\":\"Montreal, PQ / Chesterville, ON\",\"pclass\":{\"data\":{\"1\":true,\"2\":false,\"3\":false},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"2\",\"3\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}},\"sex\":{\"data\":{\"other\":false,\"male\":true,\"female\":false},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"other\",\"male\",\"female\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}},\"embarked\":{\"data\":{\"S\":false,\"AA\":true,\"C\":false,\"Q\":false},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"S\",\"AA\",\"C\",\"Q\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}}},{\"survived\":0,\"name\":\"Allison, Miss. Helen Loraine\",\"age\":2.0,\"sibsp\":1.0,\"parch\":2.0,\"ticket\":\"113781\",\"fare\":151.55,\"cabin\":\"C22 C26\",\"boat\":null,\"body\":null,\"homedest\":\"Montreal, PQ / Chesterville, ON\",\"pclass\":{\"data\":{\"1\":true,\"2\":false,\"3\":false},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"2\",\"3\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}},\"sex\":{\"data\":{\"other\":false,\"male\":false,\"female\":true},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"other\",\"male\",\"female\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}},\"embarked\":{\"data\":{\"S\":true,\"AA\":false,\"C\":false,\"Q\":false},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"S\",\"AA\",\"C\",\"Q\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}}},{\"survived\":0,\"name\":\"Allison, Mr. Hudson Joshua Creighton\",\"age\":30.0,\"sibsp\":1.0,\"parch\":2.0,\"ticket\":\"113781\",\"fare\":151.55,\"cabin\":\"C22 C26\",\"boat\":null,\"body\":135,\"homedest\":\"Montreal, PQ / Chesterville, ON\",\"pclass\":{\"data\":{\"1\":true,\"2\":false,\"3\":false},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"2\",\"3\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}},\"sex\":{\"data\":{\"other\":false,\"male\":true,\"female\":false},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"other\",\"male\",\"female\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}},\"embarked\":{\"data\":{\"S\":true,\"AA\":false,\"C\":false,\"Q\":false},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"S\",\"AA\",\"C\",\"Q\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}}},{\"survived\":0,\"name\":\"Allison, Mrs. Hudson J C (Bessie Waldo Daniels)\",\"age\":25.0,\"sibsp\":1.0,\"parch\":2.0,\"ticket\":\"113781\",\"fare\":151.55,\"cabin\":\"C22 C26\",\"boat\":null,\"body\":null,\"homedest\":\"Montreal, PQ / Chesterville, ON\",\"pclass\":{\"data\":{\"1\":true,\"2\":false,\"3\":false},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"2\",\"3\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}},\"sex\":{\"data\":{\"other\":false,\"male\":false,\"female\":true},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"other\",\"male\",\"female\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}},\"embarked\":{\"data\":{\"S\":true,\"AA\":false,\"C\":false,\"Q\":false},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"S\",\"AA\",\"C\",\"Q\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}}}]}"
},
"execution_count": 30,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 30
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:21:53.836768Z",
"start_time": "2025-05-28T10:21:53.287280Z"
}
},
"source": [
"val df2 = pivoted\n",
" // feature extraction\n",
" .select { cols(survived, pclass, sibsp, parch, age, fare, sex, embarked) }\n",
" .convert { valueCols() }.toDouble()\n",
"\n",
"df2.head()"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_39()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_39\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870812&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 5, columnsCount = 8&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;survived: Double&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;1: Boolean&bsol;&quot;&gt;1&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;true&quot;,&quot;true&quot;,&quot;true&quot;,&quot;true&quot;,&quot;true&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;2: Boolean&bsol;&quot;&gt;2&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;false&quot;,&quot;false&quot;,&quot;false&quot;,&quot;false&quot;,&quot;false&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;3: Boolean&bsol;&quot;&gt;3&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;false&quot;,&quot;false&quot;,&quot;false&quot;,&quot;false&quot;,&quot;false&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;pclass: DataRow&lt;*&gt;&bsol;&quot;&gt;pclass&lt;&sol;span&gt;&quot;, children: [1, 2, 3], rightAlign: false, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: true&bsol;n2: false&bsol;n3: false&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;true&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;2: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;3: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: true&bsol;n2: false&bsol;n3: false&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;true&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;2: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;3: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: true&bsol;n2: false&bsol;n3: false&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;true&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;2: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;3: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: true&bsol;n2: false&bsol;n3: false&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;true&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;2: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;3: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;1: true&bsol;n2: false&bsol;n3: false&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;1: &lt;&sol;span&gt;true&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;2: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;3: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;sibsp: Double&bsol;&quot;&gt;sibsp&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;parch: Double&bsol;&quot;&gt;parch&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;age: Double&bsol;&quot;&gt;age&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;29.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.9167&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;30.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;25.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;fare: Double&bsol;&quot;&gt;fare&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;211.3375&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;151.5500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;151.5500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;151.5500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;151.5500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;other: Boolean&bsol;&quot;&gt;other&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;true&quot;,&quot;false&quot;,&quot;false&quot;,&quot;false&quot;,&quot;false&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;male: Boolean&bsol;&quot;&gt;male&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;false&quot;,&quot;true&quot;,&quot;false&quot;,&quot;true&quot;,&quot;false&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;female: Boolean&bsol;&quot;&gt;female&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;false&quot;,&quot;false&quot;,&quot;true&quot;,&quot;false&quot;,&quot;true&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;sex: DataRow&lt;*&gt;&bsol;&quot;&gt;sex&lt;&sol;span&gt;&quot;, children: [9, 10, 11], rightAlign: false, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;other: true&bsol;nmale: false&bsol;nfemale: false&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;other: &lt;&sol;span&gt;true&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;male: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;female:...&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;other: false&bsol;nmale: true&bsol;nfemale: false&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;other: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;male: &lt;&sol;span&gt;true&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;female:...&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;other: false&bsol;nmale: false&bsol;nfemale: true&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;other: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;male: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;female...&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;other: false&bsol;nmale: true&bsol;nfemale: false&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;other: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;male: &lt;&sol;span&gt;true&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;female:...&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;other: false&bsol;nmale: false&bsol;nfemale: true&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;other: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;male: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;female...&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;S: Boolean&bsol;&quot;&gt;S&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;true&quot;,&quot;false&quot;,&quot;true&quot;,&quot;true&quot;,&quot;true&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;AA: Boolean&bsol;&quot;&gt;AA&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;false&quot;,&quot;true&quot;,&quot;false&quot;,&quot;false&quot;,&quot;false&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;C: Boolean&bsol;&quot;&gt;C&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;false&quot;,&quot;false&quot;,&quot;false&quot;,&quot;false&quot;,&quot;false&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;Q: Boolean&bsol;&quot;&gt;Q&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;false&quot;,&quot;false&quot;,&quot;false&quot;,&quot;false&quot;,&quot;false&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;embarked: DataRow&lt;*&gt;&bsol;&quot;&gt;embarked&lt;&sol;span&gt;&quot;, children: [13, 14, 15, 16], rightAlign: false, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;S: true&bsol;nAA: false&bsol;nC: false&bsol;nQ: false&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;S: &lt;&sol;span&gt;true&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;AA: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;C: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;Q: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;...&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;S: false&bsol;nAA: true&bsol;nC: false&bsol;nQ: false&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;S: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;AA: &lt;&sol;span&gt;true&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;C: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;Q: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;...&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;S: true&bsol;nAA: false&bsol;nC: false&bsol;nQ: false&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;S: &lt;&sol;span&gt;true&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;AA: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;C: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;Q: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;...&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;S: true&bsol;nAA: false&bsol;nC: false&bsol;nQ: false&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;S: &lt;&sol;span&gt;true&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;AA: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;C: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;Q: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;...&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;S: true&bsol;nAA: false&bsol;nC: false&bsol;nQ: false&bsol;&quot;&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;{ &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;S: &lt;&sol;span&gt;true&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;AA: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;C: &lt;&sol;span&gt;false&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;, &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;Q: &lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;...&lt;&sol;span&gt;&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt; }&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870812, rootId: -536870812, totalRows: 5 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870812) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_39() {\n",
" let elem = document.getElementById(\"iframe_out_39\");\n",
" resize_iframe_out_39(elem);\n",
" setInterval(resize_iframe_out_39, 5000, elem);\n",
" }\n",
" function resize_iframe_out_39(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870811\"><thead><tr><th class=\"rightBorder\" style=\"text-align:left\">survived</th><th class=\"leftBorder\" style=\"text-align:left\">pclass</th><th style=\"text-align:left\"></th><th class=\"rightBorder\" style=\"text-align:left\"></th><th style=\"text-align:left\">sibsp</th><th style=\"text-align:left\">parch</th><th style=\"text-align:left\">age</th><th class=\"rightBorder\" style=\"text-align:left\">fare</th><th class=\"leftBorder\" style=\"text-align:left\">sex</th><th style=\"text-align:left\"></th><th class=\"rightBorder\" style=\"text-align:left\"></th><th class=\"rightBorder leftBorder\" style=\"text-align:left\">embarked</th><th style=\"text-align:left\"></th><th style=\"text-align:left\"></th><th style=\"text-align:left\"></th></tr><tr><th class=\"bottomBorder rightBorder\" style=\"text-align:left\"></th><th class=\"bottomBorder leftBorder\" style=\"text-align:left\">1</th><th class=\"bottomBorder\" style=\"text-align:left\">2</th><th class=\"bottomBorder rightBorder\" style=\"text-align:left\">3</th><th class=\"bottomBorder\" style=\"text-align:left\"></th><th class=\"bottomBorder\" style=\"text-align:left\"></th><th class=\"bottomBorder\" style=\"text-align:left\"></th><th class=\"bottomBorder rightBorder\" style=\"text-align:left\"></th><th class=\"bottomBorder leftBorder\" style=\"text-align:left\">other</th><th class=\"bottomBorder\" style=\"text-align:left\">male</th><th class=\"bottomBorder rightBorder\" style=\"text-align:left\">female</th><th class=\"bottomBorder rightBorder leftBorder\" style=\"text-align:left\">S</th><th class=\"bottomBorder\" style=\"text-align:left\">AA</th><th class=\"bottomBorder\" style=\"text-align:left\">C</th><th class=\"bottomBorder\" style=\"text-align:left\">Q</th></tr></thead><tbody><tr><td class=\"rightBorder\" style=\"vertical-align:top\">1.000000</td><td class=\"leftBorder\" style=\"vertical-align:top\">true</td><td style=\"vertical-align:top\">false</td><td class=\"rightBorder\" style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">0.000000</td><td style=\"vertical-align:top\">0.000000</td><td style=\"vertical-align:top\">29.000000</td><td class=\"rightBorder\" style=\"vertical-align:top\">211.337500</td><td class=\"leftBorder\" style=\"vertical-align:top\">true</td><td style=\"vertical-align:top\">false</td><td class=\"rightBorder\" style=\"vertical-align:top\">false</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">true</td><td style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">false</td></tr><tr><td class=\"rightBorder\" style=\"vertical-align:top\">1.000000</td><td class=\"leftBorder\" style=\"vertical-align:top\">true</td><td style=\"vertical-align:top\">false</td><td class=\"rightBorder\" style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">2.000000</td><td style=\"vertical-align:top\">0.916700</td><td class=\"rightBorder\" style=\"vertical-align:top\">151.550000</td><td class=\"leftBorder\" style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">true</td><td class=\"rightBorder\" style=\"vertical-align:top\">false</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">true</td><td style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">false</td></tr><tr><td class=\"rightBorder\" style=\"vertical-align:top\">0.000000</td><td class=\"leftBorder\" style=\"vertical-align:top\">true</td><td style=\"vertical-align:top\">false</td><td class=\"rightBorder\" style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">2.000000</td><td style=\"vertical-align:top\">2.000000</td><td class=\"rightBorder\" style=\"vertical-align:top\">151.550000</td><td class=\"leftBorder\" style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">false</td><td class=\"rightBorder\" style=\"vertical-align:top\">true</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">true</td><td style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">false</td></tr><tr><td class=\"rightBorder\" style=\"vertical-align:top\">0.000000</td><td class=\"leftBorder\" style=\"vertical-align:top\">true</td><td style=\"vertical-align:top\">false</td><td class=\"rightBorder\" style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">2.000000</td><td style=\"vertical-align:top\">30.000000</td><td class=\"rightBorder\" style=\"vertical-align:top\">151.550000</td><td class=\"leftBorder\" style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">true</td><td class=\"rightBorder\" style=\"vertical-align:top\">false</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">true</td><td style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">false</td></tr><tr><td class=\"rightBorder\" style=\"vertical-align:top\">0.000000</td><td class=\"leftBorder\" style=\"vertical-align:top\">true</td><td style=\"vertical-align:top\">false</td><td class=\"rightBorder\" style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">2.000000</td><td style=\"vertical-align:top\">25.000000</td><td class=\"rightBorder\" style=\"vertical-align:top\">151.550000</td><td class=\"leftBorder\" style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">false</td><td class=\"rightBorder\" style=\"vertical-align:top\">true</td><td class=\"rightBorder leftBorder\" style=\"vertical-align:top\">true</td><td style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">false</td><td style=\"vertical-align:top\">false</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870811\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"survived\",\"pclass\",\"sibsp\",\"parch\",\"age\",\"fare\",\"sex\",\"embarked\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ColumnGroup\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ColumnGroup\"},{\"kind\":\"ColumnGroup\"}],\"nrow\":5,\"ncol\":8},\"kotlin_dataframe\":[{\"survived\":1.0,\"pclass\":{\"data\":{\"1\":true,\"2\":false,\"3\":false},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"2\",\"3\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}},\"sibsp\":0.0,\"parch\":0.0,\"age\":29.0,\"fare\":211.3375,\"sex\":{\"data\":{\"other\":true,\"male\":false,\"female\":false},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"other\",\"male\",\"female\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}},\"embarked\":{\"data\":{\"S\":true,\"AA\":false,\"C\":false,\"Q\":false},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"S\",\"AA\",\"C\",\"Q\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}}},{\"survived\":1.0,\"pclass\":{\"data\":{\"1\":true,\"2\":false,\"3\":false},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"2\",\"3\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}},\"sibsp\":1.0,\"parch\":2.0,\"age\":0.9167,\"fare\":151.55,\"sex\":{\"data\":{\"other\":false,\"male\":true,\"female\":false},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"other\",\"male\",\"female\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}},\"embarked\":{\"data\":{\"S\":false,\"AA\":true,\"C\":false,\"Q\":false},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"S\",\"AA\",\"C\",\"Q\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}}},{\"survived\":0.0,\"pclass\":{\"data\":{\"1\":true,\"2\":false,\"3\":false},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"2\",\"3\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}},\"sibsp\":1.0,\"parch\":2.0,\"age\":2.0,\"fare\":151.55,\"sex\":{\"data\":{\"other\":false,\"male\":false,\"female\":true},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"other\",\"male\",\"female\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}},\"embarked\":{\"data\":{\"S\":true,\"AA\":false,\"C\":false,\"Q\":false},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"S\",\"AA\",\"C\",\"Q\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}}},{\"survived\":0.0,\"pclass\":{\"data\":{\"1\":true,\"2\":false,\"3\":false},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"2\",\"3\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}},\"sibsp\":1.0,\"parch\":2.0,\"age\":30.0,\"fare\":151.55,\"sex\":{\"data\":{\"other\":false,\"male\":true,\"female\":false},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"other\",\"male\",\"female\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}},\"embarked\":{\"data\":{\"S\":true,\"AA\":false,\"C\":false,\"Q\":false},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"S\",\"AA\",\"C\",\"Q\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}}},{\"survived\":0.0,\"pclass\":{\"data\":{\"1\":true,\"2\":false,\"3\":false},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"1\",\"2\",\"3\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}},\"sibsp\":1.0,\"parch\":2.0,\"age\":25.0,\"fare\":151.55,\"sex\":{\"data\":{\"other\":false,\"male\":false,\"female\":true},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"other\",\"male\",\"female\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}},\"embarked\":{\"data\":{\"S\":true,\"AA\":false,\"C\":false,\"Q\":false},\"metadata\":{\"kind\":\"ColumnGroup\",\"columns\":[\"S\",\"AA\",\"C\",\"Q\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Boolean\"}]}}}]}"
},
"execution_count": 31,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 31
},
{
"cell_type": "code",
"source": [
"df2.corr { survived and sibsp and parch and age and fare }.withItself()"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2025-05-28T10:22:12.540994Z",
"start_time": "2025-05-28T10:22:12.381666Z"
}
},
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_41()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_41\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870808&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 5, columnsCount = 6&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;column: String&bsol;&quot;&gt;column&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;survived&quot;,&quot;sibsp&quot;,&quot;parch&quot;,&quot;age&quot;,&quot;fare&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;survived: Double&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.027825&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.082660&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.050199&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.244208&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;sibsp: Double&bsol;&quot;&gt;sibsp&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.027825&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.373587&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.190747&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.160224&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;parch: Double&bsol;&quot;&gt;parch&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.082660&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.373587&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.130872&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.221522&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;age: Double&bsol;&quot;&gt;age&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.050199&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.190747&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.130872&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.171521&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;fare: Double&bsol;&quot;&gt;fare&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.244208&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.160224&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.221522&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.171521&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870808, rootId: -536870808, totalRows: 5 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870808) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_41() {\n",
" let elem = document.getElementById(\"iframe_out_41\");\n",
" resize_iframe_out_41(elem);\n",
" setInterval(resize_iframe_out_41, 5000, elem);\n",
" }\n",
" function resize_iframe_out_41(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870807\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">column</th><th class=\"bottomBorder\" style=\"text-align:left\">survived</th><th class=\"bottomBorder\" style=\"text-align:left\">sibsp</th><th class=\"bottomBorder\" style=\"text-align:left\">parch</th><th class=\"bottomBorder\" style=\"text-align:left\">age</th><th class=\"bottomBorder\" style=\"text-align:left\">fare</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">survived</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">-0.027825</td><td style=\"vertical-align:top\">0.082660</td><td style=\"vertical-align:top\">-0.050199</td><td style=\"vertical-align:top\">0.244208</td></tr><tr><td style=\"vertical-align:top\">sibsp</td><td style=\"vertical-align:top\">-0.027825</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">0.373587</td><td style=\"vertical-align:top\">-0.190747</td><td style=\"vertical-align:top\">0.160224</td></tr><tr><td style=\"vertical-align:top\">parch</td><td style=\"vertical-align:top\">0.082660</td><td style=\"vertical-align:top\">0.373587</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">-0.130872</td><td style=\"vertical-align:top\">0.221522</td></tr><tr><td style=\"vertical-align:top\">age</td><td style=\"vertical-align:top\">-0.050199</td><td style=\"vertical-align:top\">-0.190747</td><td style=\"vertical-align:top\">-0.130872</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">0.171521</td></tr><tr><td style=\"vertical-align:top\">fare</td><td style=\"vertical-align:top\">0.244208</td><td style=\"vertical-align:top\">0.160224</td><td style=\"vertical-align:top\">0.221522</td><td style=\"vertical-align:top\">0.171521</td><td style=\"vertical-align:top\">1.000000</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870807\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"column\",\"survived\",\"sibsp\",\"parch\",\"age\",\"fare\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"}],\"nrow\":5,\"ncol\":6},\"kotlin_dataframe\":[{\"column\":\"survived\",\"survived\":1.0,\"sibsp\":-0.02782511923058273,\"parch\":0.0826595703861011,\"age\":-0.050198983636982906,\"fare\":0.24420775279437662},{\"column\":\"sibsp\",\"survived\":-0.02782511923058273,\"sibsp\":1.0,\"parch\":0.3735871906264913,\"age\":-0.19074715633383899,\"fare\":0.16022419622116035},{\"column\":\"parch\",\"survived\":0.0826595703861011,\"sibsp\":0.3735871906264913,\"parch\":1.0,\"age\":-0.1308719630307398,\"fare\":0.2215218879995723},{\"column\":\"age\",\"survived\":-0.050198983636982906,\"sibsp\":-0.19074715633383899,\"parch\":-0.1308719630307398,\"age\":1.0,\"fare\":0.17152056539956614},{\"column\":\"fare\",\"survived\":0.24420775279437662,\"sibsp\":0.16022419622116035,\"parch\":0.2215218879995723,\"age\":0.17152056539956614,\"fare\":1.0}]}"
},
"execution_count": 32,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 32
},
{
"cell_type": "code",
"source": [
"val correlationTable = df2\n",
" .corr { survived and sibsp and parch and age and fare }.withItself()\n",
" .gather { allAfter(\"column\") }.into(\"row\", \"value\")\n",
"correlationTable"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2025-05-28T10:22:18.785973Z",
"start_time": "2025-05-28T10:22:18.261051Z"
}
},
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_43()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_43\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870804&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;... showing only top 20 of 25 rows&lt;&sol;p&gt;&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 25, columnsCount = 3&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;column: String&bsol;&quot;&gt;column&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;survived&quot;,&quot;survived&quot;,&quot;survived&quot;,&quot;survived&quot;,&quot;survived&quot;,&quot;sibsp&quot;,&quot;sibsp&quot;,&quot;sibsp&quot;,&quot;sibsp&quot;,&quot;sibsp&quot;,&quot;parch&quot;,&quot;parch&quot;,&quot;parch&quot;,&quot;parch&quot;,&quot;parch&quot;,&quot;age&quot;,&quot;age&quot;,&quot;age&quot;,&quot;age&quot;,&quot;age&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;row: String&bsol;&quot;&gt;row&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;survived&quot;,&quot;sibsp&quot;,&quot;parch&quot;,&quot;age&quot;,&quot;fare&quot;,&quot;survived&quot;,&quot;sibsp&quot;,&quot;parch&quot;,&quot;age&quot;,&quot;fare&quot;,&quot;survived&quot;,&quot;sibsp&quot;,&quot;parch&quot;,&quot;age&quot;,&quot;fare&quot;,&quot;survived&quot;,&quot;sibsp&quot;,&quot;parch&quot;,&quot;age&quot;,&quot;fare&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;value: Double&bsol;&quot;&gt;value&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.027825&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.082660&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.050199&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.244208&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.027825&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.373587&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.190747&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.160224&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.082660&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.373587&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.130872&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.221522&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.050199&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.190747&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.130872&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.000000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.171521&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870804, rootId: -536870804, totalRows: 25 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870804) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_43() {\n",
" let elem = document.getElementById(\"iframe_out_43\");\n",
" resize_iframe_out_43(elem);\n",
" setInterval(resize_iframe_out_43, 5000, elem);\n",
" }\n",
" function resize_iframe_out_43(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870803\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">column</th><th class=\"bottomBorder\" style=\"text-align:left\">row</th><th class=\"bottomBorder\" style=\"text-align:left\">value</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">survived</td><td style=\"vertical-align:top\">survived</td><td style=\"vertical-align:top\">1.000000</td></tr><tr><td style=\"vertical-align:top\">survived</td><td style=\"vertical-align:top\">sibsp</td><td style=\"vertical-align:top\">-0.027825</td></tr><tr><td style=\"vertical-align:top\">survived</td><td style=\"vertical-align:top\">parch</td><td style=\"vertical-align:top\">0.082660</td></tr><tr><td style=\"vertical-align:top\">survived</td><td style=\"vertical-align:top\">age</td><td style=\"vertical-align:top\">-0.050199</td></tr><tr><td style=\"vertical-align:top\">survived</td><td style=\"vertical-align:top\">fare</td><td style=\"vertical-align:top\">0.244208</td></tr><tr><td style=\"vertical-align:top\">sibsp</td><td style=\"vertical-align:top\">survived</td><td style=\"vertical-align:top\">-0.027825</td></tr><tr><td style=\"vertical-align:top\">sibsp</td><td style=\"vertical-align:top\">sibsp</td><td style=\"vertical-align:top\">1.000000</td></tr><tr><td style=\"vertical-align:top\">sibsp</td><td style=\"vertical-align:top\">parch</td><td style=\"vertical-align:top\">0.373587</td></tr><tr><td style=\"vertical-align:top\">sibsp</td><td style=\"vertical-align:top\">age</td><td style=\"vertical-align:top\">-0.190747</td></tr><tr><td style=\"vertical-align:top\">sibsp</td><td style=\"vertical-align:top\">fare</td><td style=\"vertical-align:top\">0.160224</td></tr><tr><td style=\"vertical-align:top\">parch</td><td style=\"vertical-align:top\">survived</td><td style=\"vertical-align:top\">0.082660</td></tr><tr><td style=\"vertical-align:top\">parch</td><td style=\"vertical-align:top\">sibsp</td><td style=\"vertical-align:top\">0.373587</td></tr><tr><td style=\"vertical-align:top\">parch</td><td style=\"vertical-align:top\">parch</td><td style=\"vertical-align:top\">1.000000</td></tr><tr><td style=\"vertical-align:top\">parch</td><td style=\"vertical-align:top\">age</td><td style=\"vertical-align:top\">-0.130872</td></tr><tr><td style=\"vertical-align:top\">parch</td><td style=\"vertical-align:top\">fare</td><td style=\"vertical-align:top\">0.221522</td></tr><tr><td style=\"vertical-align:top\">age</td><td style=\"vertical-align:top\">survived</td><td style=\"vertical-align:top\">-0.050199</td></tr><tr><td style=\"vertical-align:top\">age</td><td style=\"vertical-align:top\">sibsp</td><td style=\"vertical-align:top\">-0.190747</td></tr><tr><td style=\"vertical-align:top\">age</td><td style=\"vertical-align:top\">parch</td><td style=\"vertical-align:top\">-0.130872</td></tr><tr><td style=\"vertical-align:top\">age</td><td style=\"vertical-align:top\">age</td><td style=\"vertical-align:top\">1.000000</td></tr><tr><td style=\"vertical-align:top\">age</td><td style=\"vertical-align:top\">fare</td><td style=\"vertical-align:top\">0.171521</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870803\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"column\",\"row\",\"value\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"}],\"nrow\":25,\"ncol\":3},\"kotlin_dataframe\":[{\"column\":\"survived\",\"row\":\"survived\",\"value\":1.0},{\"column\":\"survived\",\"row\":\"sibsp\",\"value\":-0.02782511923058273},{\"column\":\"survived\",\"row\":\"parch\",\"value\":0.0826595703861011},{\"column\":\"survived\",\"row\":\"age\",\"value\":-0.050198983636982906},{\"column\":\"survived\",\"row\":\"fare\",\"value\":0.24420775279437662},{\"column\":\"sibsp\",\"row\":\"survived\",\"value\":-0.02782511923058273},{\"column\":\"sibsp\",\"row\":\"sibsp\",\"value\":1.0},{\"column\":\"sibsp\",\"row\":\"parch\",\"value\":0.3735871906264913},{\"column\":\"sibsp\",\"row\":\"age\",\"value\":-0.19074715633383899},{\"column\":\"sibsp\",\"row\":\"fare\",\"value\":0.16022419622116035},{\"column\":\"parch\",\"row\":\"survived\",\"value\":0.0826595703861011},{\"column\":\"parch\",\"row\":\"sibsp\",\"value\":0.3735871906264913},{\"column\":\"parch\",\"row\":\"parch\",\"value\":1.0},{\"column\":\"parch\",\"row\":\"age\",\"value\":-0.1308719630307398},{\"column\":\"parch\",\"row\":\"fare\",\"value\":0.2215218879995723},{\"column\":\"age\",\"row\":\"survived\",\"value\":-0.050198983636982906},{\"column\":\"age\",\"row\":\"sibsp\",\"value\":-0.19074715633383899},{\"column\":\"age\",\"row\":\"parch\",\"value\":-0.1308719630307398},{\"column\":\"age\",\"row\":\"age\",\"value\":1.0},{\"column\":\"age\",\"row\":\"fare\",\"value\":0.17152056539956614}]}"
},
"execution_count": 33,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 33
},
{
"cell_type": "code",
"source": [
"fun scaleContinuousColorGradientN() =\n",
" continuousColorGradientN(\n",
" gradientColors = listOf(\n",
" JetBrainsColors.orange,\n",
" JetBrainsColors.lightGrey,\n",
" JetBrainsColors.darkGrey,\n",
" ),\n",
" domainMin = -1.0,\n",
" domainMax = 1.0,\n",
" )"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2025-05-28T10:27:47.130780Z",
"start_time": "2025-05-28T10:27:47.068329Z"
}
},
"outputs": [],
"execution_count": 35
},
{
"cell_type": "code",
"source": [
"correlationTable.plot {\n",
" tiles {\n",
" x(row) { axis.name = \"\" }\n",
" y(column) { axis.name = \"\" }\n",
" fillColor(value) { scale = scaleContinuousColorGradientN() }\n",
" }\n",
"}"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2025-05-28T10:27:48.267717Z",
"start_time": "2025-05-28T10:27:47.970392Z"
}
},
"outputs": [
{
"data": {
"text/html": [
" <iframe src='about:blank' style='border:none !important;' width='600' height='400' srcdoc=\"&lt;html lang=&quot;en&quot;>\n",
" &lt;head>\n",
" &lt;meta charset=&quot;UTF-8&quot;>\n",
" &lt;style> html, body { margin: 0; overflow: hidden; } &lt;/style>\n",
" &lt;script type=&quot;text/javascript&quot; data-lets-plot-script=&quot;library&quot; src=&quot;https://cdn.jsdelivr.net/gh/JetBrains/lets-plot@v4.5.1/js-package/distr/lets-plot.min.js&quot;>&lt;/script>\n",
" &lt;/head>\n",
" &lt;body>\n",
" &lt;div id=&quot;tZzbA6&quot;>&lt;/div>\n",
" &lt;script type=&quot;text/javascript&quot; data-lets-plot-script=&quot;plot&quot;>\n",
" \n",
" (function() {\n",
" // ----------\n",
" \n",
" var plotSpec={\n",
"&quot;mapping&quot;:{\n",
"},\n",
"&quot;data&quot;:{\n",
"&quot;column&quot;:[&quot;survived&quot;,&quot;survived&quot;,&quot;survived&quot;,&quot;survived&quot;,&quot;survived&quot;,&quot;sibsp&quot;,&quot;sibsp&quot;,&quot;sibsp&quot;,&quot;sibsp&quot;,&quot;sibsp&quot;,&quot;parch&quot;,&quot;parch&quot;,&quot;parch&quot;,&quot;parch&quot;,&quot;parch&quot;,&quot;age&quot;,&quot;age&quot;,&quot;age&quot;,&quot;age&quot;,&quot;age&quot;,&quot;fare&quot;,&quot;fare&quot;,&quot;fare&quot;,&quot;fare&quot;,&quot;fare&quot;],\n",
"&quot;row&quot;:[&quot;survived&quot;,&quot;sibsp&quot;,&quot;parch&quot;,&quot;age&quot;,&quot;fare&quot;,&quot;survived&quot;,&quot;sibsp&quot;,&quot;parch&quot;,&quot;age&quot;,&quot;fare&quot;,&quot;survived&quot;,&quot;sibsp&quot;,&quot;parch&quot;,&quot;age&quot;,&quot;fare&quot;,&quot;survived&quot;,&quot;sibsp&quot;,&quot;parch&quot;,&quot;age&quot;,&quot;fare&quot;,&quot;survived&quot;,&quot;sibsp&quot;,&quot;parch&quot;,&quot;age&quot;,&quot;fare&quot;],\n",
"&quot;value&quot;:[1.0,-0.02782511923058273,0.0826595703861011,-0.050198983636982906,0.24420775279437662,-0.02782511923058273,1.0,0.3735871906264913,-0.19074715633383899,0.16022419622116035,0.0826595703861011,0.3735871906264913,1.0,-0.1308719630307398,0.2215218879995723,-0.050198983636982906,-0.19074715633383899,-0.1308719630307398,1.0,0.17152056539956614,0.24420775279437662,0.16022419622116035,0.2215218879995723,0.17152056539956614,1.0]\n",
"},\n",
"&quot;kind&quot;:&quot;plot&quot;,\n",
"&quot;scales&quot;:[{\n",
"&quot;aesthetic&quot;:&quot;x&quot;,\n",
"&quot;discrete&quot;:true,\n",
"&quot;name&quot;:&quot;&quot;\n",
"},{\n",
"&quot;aesthetic&quot;:&quot;y&quot;,\n",
"&quot;discrete&quot;:true,\n",
"&quot;name&quot;:&quot;&quot;\n",
"},{\n",
"&quot;aesthetic&quot;:&quot;fill&quot;,\n",
"&quot;scale_mapper_kind&quot;:&quot;color_gradientn&quot;,\n",
"&quot;limits&quot;:[-1.0,1.0],\n",
"&quot;colors&quot;:[&quot;#ff6632&quot;,&quot;#a6a6a6&quot;,&quot;#4c4c4c&quot;]\n",
"}],\n",
"&quot;layers&quot;:[{\n",
"&quot;mapping&quot;:{\n",
"&quot;x&quot;:&quot;row&quot;,\n",
"&quot;y&quot;:&quot;column&quot;,\n",
"&quot;fill&quot;:&quot;value&quot;\n",
"},\n",
"&quot;stat&quot;:&quot;identity&quot;,\n",
"&quot;sampling&quot;:&quot;none&quot;,\n",
"&quot;inherit_aes&quot;:false,\n",
"&quot;position&quot;:&quot;identity&quot;,\n",
"&quot;geom&quot;:&quot;tile&quot;,\n",
"&quot;data&quot;:{\n",
"}\n",
"}],\n",
"&quot;data_meta&quot;:{\n",
"&quot;series_annotations&quot;:[{\n",
"&quot;type&quot;:&quot;str&quot;,\n",
"&quot;column&quot;:&quot;row&quot;\n",
"},{\n",
"&quot;type&quot;:&quot;str&quot;,\n",
"&quot;column&quot;:&quot;column&quot;\n",
"},{\n",
"&quot;type&quot;:&quot;float&quot;,\n",
"&quot;column&quot;:&quot;value&quot;\n",
"}]\n",
"},\n",
"&quot;spec_id&quot;:&quot;20&quot;\n",
"};\n",
" var containerDiv = document.getElementById(&quot;tZzbA6&quot;);\n",
" \n",
" var toolbar = null;\n",
" var plotContainer = containerDiv; \n",
" \n",
" var options = {\n",
" sizing: {\n",
" width_mode: &quot;fixed&quot;,\n",
" height_mode: &quot;fixed&quot;,\n",
" width: 600.0,\n",
" height: 400.0\n",
" }\n",
" };\n",
" var fig = LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer, options);\n",
" if (toolbar) {\n",
" toolbar.bind(fig);\n",
" }\n",
" \n",
" // ----------\n",
" })();\n",
" \n",
" &lt;/script>\n",
" &lt;/body>\n",
"&lt;/html>\"></iframe> <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" display=\"block\" class=\"plt-container\" id=4d95df0f-a4bf-4cd2-b580-c44410a9ab18 width=\"100%\" height=\"100%\" style=\"max-width: 600.0px; max-height: 400.0px;\" viewBox=\"0 0 600.0 400.0\" preserveAspectRatio=\"xMinYMin meet\">\n",
" <style type=\"text/css\">\n",
" .plt-container {\n",
" font-family: Lucida Grande, sans-serif;\n",
" user-select: none;\n",
" -webkit-user-select: none;\n",
" -moz-user-select: none;\n",
" -ms-user-select: none;\n",
"}\n",
"text {\n",
" text-rendering: optimizeLegibility;\n",
"}\n",
"#pLmKsb8 .plot-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 16.0px;\n",
"\n",
"}\n",
"#pLmKsb8 .plot-subtitle {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pLmKsb8 .plot-caption {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pLmKsb8 .hyperlink-element {\n",
"fill: #118ed8;\n",
"font-weight: normal;\n",
" font-style: normal;\n",
"}\n",
"#pLmKsb8 .legend-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pLmKsb8 .legend-item {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pLmKsb8 .axis-title-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pLmKsb8 .axis-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dASyEfx .axis-tooltip-text-x {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pLmKsb8 .axis-title-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pLmKsb8 .axis-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dASyEfx .axis-tooltip-text-y {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pLmKsb8 .facet-strip-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pLmKsb8 .facet-strip-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dASyEfx .tooltip-text {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dASyEfx .tooltip-title {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dASyEfx .tooltip-label {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"\n",
" </style>\n",
" <g id=\"pLmKsb8\">\n",
" <path fill-rule=\"evenodd\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" d=\"M43.98188862250851 0.0 L43.98188862250851 400.0 L556.0181113774916 400.0 L556.0181113774916 0.0 Z\">\n",
" </path>\n",
" <g transform=\"translate(73.4818886225085 6.5 ) \">\n",
" <g>\n",
" <g transform=\"translate(64.03061335149923 0.0 ) \">\n",
" <g>\n",
" <line x1=\"44.2037037037037\" y1=\"0.0\" x2=\"44.2037037037037\" y2=\"341.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"107.35185185185185\" y1=\"0.0\" x2=\"107.35185185185185\" y2=\"341.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"170.5\" y1=\"0.0\" x2=\"170.5\" y2=\"341.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"233.64814814814812\" y1=\"0.0\" x2=\"233.64814814814812\" y2=\"341.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"296.7962962962963\" y1=\"0.0\" x2=\"296.7962962962963\" y2=\"341.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(64.03061335149923 0.0 ) \">\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"296.7962962962963\" x2=\"341.0\" y2=\"296.7962962962963\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"233.64814814814815\" x2=\"341.0\" y2=\"233.64814814814815\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"170.5\" x2=\"341.0\" y2=\"170.5\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"107.35185185185188\" x2=\"341.0\" y2=\"107.35185185185188\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"44.203703703703724\" x2=\"341.0\" y2=\"44.203703703703724\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g clip-path=\"url(#cAHRzHA)\" clip-bounds-jfx=\"[rect (64.03061335149923, 0.0), (341.0, 341.0)]\">\n",
" <g transform=\"translate(64.03061335149923 0.0 ) \">\n",
" <g>\n",
" <g>\n",
" <g>\n",
" <g >\n",
" <rect fill=\"#4c4c4c\" stroke=\"#ffffff\" stroke-width=\"0.0\" x=\"12.62962962962963\" y=\"265.22222222222223\" height=\"63.14814814814815\" width=\"63.14814814814814\" />\n",
" <rect fill=\"#aaa5a3\" stroke=\"#ffffff\" stroke-width=\"0.0\" x=\"75.77777777777777\" y=\"265.22222222222223\" height=\"63.14814814814815\" width=\"63.14814814814815\" />\n",
" <rect fill=\"#9e9e9e\" stroke=\"#ffffff\" stroke-width=\"0.0\" x=\"138.92592592592592\" y=\"265.22222222222223\" height=\"63.14814814814815\" width=\"63.148148148148124\" />\n",
" <rect fill=\"#ada3a0\" stroke=\"#ffffff\" stroke-width=\"0.0\" x=\"202.07407407407405\" y=\"265.22222222222223\" height=\"63.14814814814815\" width=\"63.14814814814818\" />\n",
" <rect fill=\"#8f8f8f\" stroke=\"#ffffff\" stroke-width=\"0.0\" x=\"265.22222222222223\" y=\"265.22222222222223\" height=\"63.14814814814815\" width=\"63.148148148148096\" />\n",
" <rect fill=\"#aaa5a3\" stroke=\"#ffffff\" stroke-width=\"0.0\" x=\"12.62962962962963\" y=\"202.07407407407408\" height=\"63.14814814814815\" width=\"63.14814814814814\" />\n",
" <rect fill=\"#4c4c4c\" stroke=\"#ffffff\" stroke-width=\"0.0\" x=\"75.77777777777777\" y=\"202.07407407407408\" height=\"63.14814814814815\" width=\"63.14814814814815\" />\n",
" <rect fill=\"#838383\" stroke=\"#ffffff\" stroke-width=\"0.0\" x=\"138.92592592592592\" y=\"202.07407407407408\" height=\"63.14814814814815\" width=\"63.148148148148124\" />\n",
" <rect fill=\"#be9c90\" stroke=\"#ffffff\" stroke-width=\"0.0\" x=\"202.07407407407405\" y=\"202.07407407407408\" height=\"63.14814814814815\" width=\"63.14814814814818\" />\n",
" <rect fill=\"#979797\" stroke=\"#ffffff\" stroke-width=\"0.0\" x=\"265.22222222222223\" y=\"202.07407407407408\" height=\"63.14814814814815\" width=\"63.148148148148096\" />\n",
" <rect fill=\"#9e9e9e\" stroke=\"#ffffff\" stroke-width=\"0.0\" x=\"12.62962962962963\" y=\"138.92592592592595\" height=\"63.148148148148124\" width=\"63.14814814814814\" />\n",
" <rect fill=\"#838383\" stroke=\"#ffffff\" stroke-width=\"0.0\" x=\"75.77777777777777\" y=\"138.92592592592595\" height=\"63.148148148148124\" width=\"63.14814814814815\" />\n",
" <rect fill=\"#4c4c4c\" stroke=\"#ffffff\" stroke-width=\"0.0\" x=\"138.92592592592592\" y=\"138.92592592592595\" height=\"63.148148148148124\" width=\"63.148148148148124\" />\n",
" <rect fill=\"#b79f97\" stroke=\"#ffffff\" stroke-width=\"0.0\" x=\"202.07407407407405\" y=\"138.92592592592595\" height=\"63.148148148148124\" width=\"63.14814814814818\" />\n",
" <rect fill=\"#919191\" stroke=\"#ffffff\" stroke-width=\"0.0\" x=\"265.22222222222223\" y=\"138.92592592592595\" height=\"63.148148148148124\" width=\"63.148148148148096\" />\n",
" <rect fill=\"#ada3a0\" stroke=\"#ffffff\" stroke-width=\"0.0\" x=\"12.62962962962963\" y=\"75.7777777777778\" height=\"63.14814814814815\" width=\"63.14814814814814\" />\n",
" <rect fill=\"#be9c90\" stroke=\"#ffffff\" stroke-width=\"0.0\" x=\"75.77777777777777\" y=\"75.7777777777778\" height=\"63.14814814814815\" width=\"63.14814814814815\" />\n",
" <rect fill=\"#b79f97\" stroke=\"#ffffff\" stroke-width=\"0.0\" x=\"138.92592592592592\" y=\"75.7777777777778\" height=\"63.14814814814815\" width=\"63.148148148148124\" />\n",
" <rect fill=\"#4c4c4c\" stroke=\"#ffffff\" stroke-width=\"0.0\" x=\"202.07407407407405\" y=\"75.7777777777778\" height=\"63.14814814814815\" width=\"63.14814814814818\" />\n",
" <rect fill=\"#969696\" stroke=\"#ffffff\" stroke-width=\"0.0\" x=\"265.22222222222223\" y=\"75.7777777777778\" height=\"63.14814814814815\" width=\"63.148148148148096\" />\n",
" <rect fill=\"#8f8f8f\" stroke=\"#ffffff\" stroke-width=\"0.0\" x=\"12.62962962962963\" y=\"12.629629629629676\" height=\"63.148148148148124\" width=\"63.14814814814814\" />\n",
" <rect fill=\"#979797\" stroke=\"#ffffff\" stroke-width=\"0.0\" x=\"75.77777777777777\" y=\"12.629629629629676\" height=\"63.148148148148124\" width=\"63.14814814814815\" />\n",
" <rect fill=\"#919191\" stroke=\"#ffffff\" stroke-width=\"0.0\" x=\"138.92592592592592\" y=\"12.629629629629676\" height=\"63.148148148148124\" width=\"63.148148148148124\" />\n",
" <rect fill=\"#969696\" stroke=\"#ffffff\" stroke-width=\"0.0\" x=\"202.07407407407405\" y=\"12.629629629629676\" height=\"63.148148148148124\" width=\"63.14814814814818\" />\n",
" <rect fill=\"#4c4c4c\" stroke=\"#ffffff\" stroke-width=\"0.0\" x=\"265.22222222222223\" y=\"12.629629629629676\" height=\"63.148148148148124\" width=\"63.148148148148096\" />\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <defs>\n",
" <clipPath id=\"cAHRzHA\">\n",
" <rect x=\"64.03061335149923\" y=\"0.0\" width=\"341.0\" height=\"341.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" </g>\n",
" <g>\n",
" <g transform=\"translate(64.03061335149923 341.0 ) \">\n",
" <g transform=\"translate(44.2037037037037 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>survived</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(107.35185185185185 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>sibsp</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(170.5 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>parch</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(233.64814814814812 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>age</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(296.7962962962963 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>fare</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <line x1=\"0.0\" y1=\"0.0\" x2=\"341.0\" y2=\"0.0\" stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" </g>\n",
" <g transform=\"translate(64.03061335149923 0.0 ) \">\n",
" <g transform=\"translate(0.0 296.7962962962963 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>survived</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 233.64814814814815 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>sibsp</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 170.5 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>parch</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 107.35185185185188 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>age</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 44.203703703703724 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>fare</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(59.98188862250851 177.0 ) rotate(-90.0 ) \">\n",
" <text class=\"axis-title-y\" y=\"0.0\" text-anchor=\"middle\">\n",
" <tspan></tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(308.0125019740077 393.0 ) \">\n",
" <text class=\"axis-title-x\" y=\"0.0\" text-anchor=\"middle\">\n",
" <tspan></tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(490.0125019740078 103.25 ) \">\n",
" <rect x=\"0.0\" y=\"0.0\" height=\"147.5\" width=\"66.00560940348372\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <g transform=\"translate(5.0 5.0 ) \">\n",
" <g transform=\"translate(0.0 12.0 ) \">\n",
" <text class=\"legend-title\" y=\"0.0\">\n",
" <tspan>value</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(0.0 22.5 ) \">\n",
" <g>\n",
" <rect x=\"0.0\" y=\"0.0\" height=\"115.0\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(80,80,80)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"7.55\" height=\"107.45\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(89,89,89)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"13.1\" height=\"101.9\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(97,97,97)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"18.65\" height=\"96.35\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(106,106,106)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"24.2\" height=\"90.8\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(115,115,115)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"29.75\" height=\"85.25\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(124,124,124)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"35.3\" height=\"79.7\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(133,133,133)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"40.849999999999994\" height=\"74.15\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(142,142,142)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"46.39999999999999\" height=\"68.60000000000001\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(152,152,152)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"51.94999999999999\" height=\"63.05000000000001\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(161,161,161)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"57.499999999999986\" height=\"57.500000000000014\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(173,163,160)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"63.04999999999998\" height=\"51.95000000000002\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(185,158,149)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"68.59999999999998\" height=\"46.40000000000002\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(196,153,137)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"74.14999999999998\" height=\"40.85000000000002\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(206,147,126)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"79.69999999999997\" height=\"35.300000000000026\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(215,141,115)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"85.24999999999997\" height=\"29.75000000000003\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(223,135,103)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"90.79999999999997\" height=\"24.20000000000003\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(231,129,92)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"96.34999999999997\" height=\"18.650000000000034\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(239,122,80)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"101.89999999999996\" height=\"13.100000000000037\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(245,114,69)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"107.44999999999996\" height=\"7.55000000000004\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(252,106,56)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <line x1=\"0.0\" y1=\"113.0\" x2=\"4.6\" y2=\"113.0\" stroke-width=\"1.0\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" <line x1=\"18.4\" y1=\"113.0\" x2=\"23.0\" y2=\"113.0\" stroke-width=\"1.0\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" <g transform=\"translate(26.9903027277341 117.55 ) \">\n",
" <text class=\"legend-item\" y=\"0.0\">\n",
" <tspan>-1.0</tspan>\n",
" </text>\n",
" </g>\n",
" <line x1=\"0.0\" y1=\"85.25\" x2=\"4.6\" y2=\"85.25\" stroke-width=\"1.0\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" <line x1=\"18.4\" y1=\"85.25\" x2=\"23.0\" y2=\"85.25\" stroke-width=\"1.0\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" <g transform=\"translate(26.9903027277341 89.8 ) \">\n",
" <text class=\"legend-item\" y=\"0.0\">\n",
" <tspan>-0.5</tspan>\n",
" </text>\n",
" </g>\n",
" <line x1=\"0.0\" y1=\"57.5\" x2=\"4.6\" y2=\"57.5\" stroke-width=\"1.0\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" <line x1=\"18.4\" y1=\"57.5\" x2=\"23.0\" y2=\"57.5\" stroke-width=\"1.0\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" <g transform=\"translate(26.9903027277341 62.05 ) \">\n",
" <text class=\"legend-item\" y=\"0.0\">\n",
" <tspan>0.0</tspan>\n",
" </text>\n",
" </g>\n",
" <line x1=\"0.0\" y1=\"29.75\" x2=\"4.6\" y2=\"29.75\" stroke-width=\"1.0\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" <line x1=\"18.4\" y1=\"29.75\" x2=\"23.0\" y2=\"29.75\" stroke-width=\"1.0\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" <g transform=\"translate(26.9903027277341 34.3 ) \">\n",
" <text class=\"legend-item\" y=\"0.0\">\n",
" <tspan>0.5</tspan>\n",
" </text>\n",
" </g>\n",
" <line x1=\"0.0\" y1=\"2.0\" x2=\"4.6\" y2=\"2.0\" stroke-width=\"1.0\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" <line x1=\"18.4\" y1=\"2.0\" x2=\"23.0\" y2=\"2.0\" stroke-width=\"1.0\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" <g transform=\"translate(26.9903027277341 6.549999999999999 ) \">\n",
" <text class=\"legend-item\" y=\"0.0\">\n",
" <tspan>1.0</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <path fill=\"rgb(0,0,0)\" fill-opacity=\"0.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" d=\"M43.98188862250851 0.0 L43.98188862250851 400.0 L556.0181113774916 400.0 L556.0181113774916 0.0 Z\" pointer-events=\"none\">\n",
" </path>\n",
" </g>\n",
" <g id=\"dASyEfx\">\n",
" </g>\n",
"</svg>\n",
" <script>document.getElementById(\"4d95df0f-a4bf-4cd2-b580-c44410a9ab18\").style.display = \"none\";</script>"
],
"application/plot+json": {
"output_type": "lets_plot_spec",
"output": {
"mapping": {},
"data": {
"column": [
"survived",
"survived",
"survived",
"survived",
"survived",
"sibsp",
"sibsp",
"sibsp",
"sibsp",
"sibsp",
"parch",
"parch",
"parch",
"parch",
"parch",
"age",
"age",
"age",
"age",
"age",
"fare",
"fare",
"fare",
"fare",
"fare"
],
"row": [
"survived",
"sibsp",
"parch",
"age",
"fare",
"survived",
"sibsp",
"parch",
"age",
"fare",
"survived",
"sibsp",
"parch",
"age",
"fare",
"survived",
"sibsp",
"parch",
"age",
"fare",
"survived",
"sibsp",
"parch",
"age",
"fare"
],
"value": [
1.0,
-0.02782511923058273,
0.0826595703861011,
-0.050198983636982906,
0.24420775279437662,
-0.02782511923058273,
1.0,
0.3735871906264913,
-0.19074715633383899,
0.16022419622116035,
0.0826595703861011,
0.3735871906264913,
1.0,
-0.1308719630307398,
0.2215218879995723,
-0.050198983636982906,
-0.19074715633383899,
-0.1308719630307398,
1.0,
0.17152056539956614,
0.24420775279437662,
0.16022419622116035,
0.2215218879995723,
0.17152056539956614,
1.0
]
},
"kind": "plot",
"scales": [
{
"aesthetic": "x",
"discrete": true,
"name": ""
},
{
"aesthetic": "y",
"discrete": true,
"name": ""
},
{
"aesthetic": "fill",
"scale_mapper_kind": "color_gradientn",
"limits": [
-1.0,
1.0
],
"colors": [
"#ff6632",
"#a6a6a6",
"#4c4c4c"
]
}
],
"layers": [
{
"mapping": {
"x": "row",
"y": "column",
"fill": "value"
},
"stat": "identity",
"sampling": "none",
"inherit_aes": false,
"position": "identity",
"geom": "tile"
}
],
"data_meta": {
"series_annotations": [
{
"type": "str",
"column": "row"
},
{
"type": "str",
"column": "column"
},
{
"type": "float",
"column": "value"
}
]
}
},
"apply_color_scheme": true,
"swing_enabled": true
}
},
"execution_count": 36,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 36
},
{
"cell_type": "code",
"source": [
"correlationTable.plot {\n",
" points {\n",
" size(value) {\n",
" legend {\n",
" breaks(emptyList())\n",
" }\n",
" }\n",
" symbol = Symbol.SQUARE\n",
" x(row) {\n",
" axis.name = \"\"\n",
" }\n",
" y(column) {\n",
" axis.name = \"\"\n",
" }\n",
" color(value) { scale = scaleContinuousColorGradientN() }\n",
" }\n",
" layout {\n",
" style {\n",
" panel.grid {\n",
" majorLine {\n",
" blank = true\n",
" }\n",
" }\n",
" }\n",
" size = 500 to 350\n",
" }\n",
"}"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2025-05-28T10:28:36.815484Z",
"start_time": "2025-05-28T10:28:36.534198Z"
}
},
"outputs": [
{
"data": {
"text/html": [
" <iframe src='about:blank' style='border:none !important;' width='500' height='350' srcdoc=\"&lt;html lang=&quot;en&quot;>\n",
" &lt;head>\n",
" &lt;meta charset=&quot;UTF-8&quot;>\n",
" &lt;style> html, body { margin: 0; overflow: hidden; } &lt;/style>\n",
" &lt;script type=&quot;text/javascript&quot; data-lets-plot-script=&quot;library&quot; src=&quot;https://cdn.jsdelivr.net/gh/JetBrains/lets-plot@v4.5.1/js-package/distr/lets-plot.min.js&quot;>&lt;/script>\n",
" &lt;/head>\n",
" &lt;body>\n",
" &lt;div id=&quot;e0Jw9j&quot;>&lt;/div>\n",
" &lt;script type=&quot;text/javascript&quot; data-lets-plot-script=&quot;plot&quot;>\n",
" \n",
" (function() {\n",
" // ----------\n",
" \n",
" var plotSpec={\n",
"&quot;mapping&quot;:{\n",
"},\n",
"&quot;data&quot;:{\n",
"&quot;column&quot;:[&quot;survived&quot;,&quot;survived&quot;,&quot;survived&quot;,&quot;survived&quot;,&quot;survived&quot;,&quot;sibsp&quot;,&quot;sibsp&quot;,&quot;sibsp&quot;,&quot;sibsp&quot;,&quot;sibsp&quot;,&quot;parch&quot;,&quot;parch&quot;,&quot;parch&quot;,&quot;parch&quot;,&quot;parch&quot;,&quot;age&quot;,&quot;age&quot;,&quot;age&quot;,&quot;age&quot;,&quot;age&quot;,&quot;fare&quot;,&quot;fare&quot;,&quot;fare&quot;,&quot;fare&quot;,&quot;fare&quot;],\n",
"&quot;row&quot;:[&quot;survived&quot;,&quot;sibsp&quot;,&quot;parch&quot;,&quot;age&quot;,&quot;fare&quot;,&quot;survived&quot;,&quot;sibsp&quot;,&quot;parch&quot;,&quot;age&quot;,&quot;fare&quot;,&quot;survived&quot;,&quot;sibsp&quot;,&quot;parch&quot;,&quot;age&quot;,&quot;fare&quot;,&quot;survived&quot;,&quot;sibsp&quot;,&quot;parch&quot;,&quot;age&quot;,&quot;fare&quot;,&quot;survived&quot;,&quot;sibsp&quot;,&quot;parch&quot;,&quot;age&quot;,&quot;fare&quot;],\n",
"&quot;value&quot;:[1.0,-0.02782511923058273,0.0826595703861011,-0.050198983636982906,0.24420775279437662,-0.02782511923058273,1.0,0.3735871906264913,-0.19074715633383899,0.16022419622116035,0.0826595703861011,0.3735871906264913,1.0,-0.1308719630307398,0.2215218879995723,-0.050198983636982906,-0.19074715633383899,-0.1308719630307398,1.0,0.17152056539956614,0.24420775279437662,0.16022419622116035,0.2215218879995723,0.17152056539956614,1.0]\n",
"},\n",
"&quot;ggsize&quot;:{\n",
"&quot;width&quot;:500.0,\n",
"&quot;height&quot;:350.0\n",
"},\n",
"&quot;kind&quot;:&quot;plot&quot;,\n",
"&quot;scales&quot;:[{\n",
"&quot;aesthetic&quot;:&quot;size&quot;,\n",
"&quot;breaks&quot;:[],\n",
"&quot;limits&quot;:[null,null]\n",
"},{\n",
"&quot;aesthetic&quot;:&quot;x&quot;,\n",
"&quot;discrete&quot;:true,\n",
"&quot;name&quot;:&quot;&quot;\n",
"},{\n",
"&quot;aesthetic&quot;:&quot;y&quot;,\n",
"&quot;discrete&quot;:true,\n",
"&quot;name&quot;:&quot;&quot;\n",
"},{\n",
"&quot;aesthetic&quot;:&quot;color&quot;,\n",
"&quot;scale_mapper_kind&quot;:&quot;color_gradientn&quot;,\n",
"&quot;limits&quot;:[-1.0,1.0],\n",
"&quot;colors&quot;:[&quot;#ff6632&quot;,&quot;#a6a6a6&quot;,&quot;#4c4c4c&quot;]\n",
"}],\n",
"&quot;layers&quot;:[{\n",
"&quot;mapping&quot;:{\n",
"&quot;size&quot;:&quot;value&quot;,\n",
"&quot;x&quot;:&quot;row&quot;,\n",
"&quot;y&quot;:&quot;column&quot;,\n",
"&quot;color&quot;:&quot;value&quot;\n",
"},\n",
"&quot;stat&quot;:&quot;identity&quot;,\n",
"&quot;shape&quot;:15.0,\n",
"&quot;sampling&quot;:&quot;none&quot;,\n",
"&quot;inherit_aes&quot;:false,\n",
"&quot;position&quot;:&quot;identity&quot;,\n",
"&quot;geom&quot;:&quot;point&quot;,\n",
"&quot;data&quot;:{\n",
"}\n",
"}],\n",
"&quot;theme&quot;:{\n",
"&quot;axis_ontop&quot;:false,\n",
"&quot;axis_ontop_y&quot;:false,\n",
"&quot;axis_ontop_x&quot;:false,\n",
"&quot;panel_grid_major&quot;:{\n",
"&quot;blank&quot;:true\n",
"}\n",
"},\n",
"&quot;data_meta&quot;:{\n",
"&quot;series_annotations&quot;:[{\n",
"&quot;type&quot;:&quot;float&quot;,\n",
"&quot;column&quot;:&quot;value&quot;\n",
"},{\n",
"&quot;type&quot;:&quot;str&quot;,\n",
"&quot;column&quot;:&quot;row&quot;\n",
"},{\n",
"&quot;type&quot;:&quot;str&quot;,\n",
"&quot;column&quot;:&quot;column&quot;\n",
"}]\n",
"},\n",
"&quot;spec_id&quot;:&quot;23&quot;\n",
"};\n",
" var containerDiv = document.getElementById(&quot;e0Jw9j&quot;);\n",
" \n",
" var toolbar = null;\n",
" var plotContainer = containerDiv; \n",
" \n",
" var options = {\n",
" sizing: {\n",
" width_mode: &quot;fixed&quot;,\n",
" height_mode: &quot;fixed&quot;,\n",
" width: 500.0,\n",
" height: 350.0\n",
" }\n",
" };\n",
" var fig = LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer, options);\n",
" if (toolbar) {\n",
" toolbar.bind(fig);\n",
" }\n",
" \n",
" // ----------\n",
" })();\n",
" \n",
" &lt;/script>\n",
" &lt;/body>\n",
"&lt;/html>\"></iframe> <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" display=\"block\" class=\"plt-container\" id=459c60f3-ee7d-46d8-a1d8-18154ba37491 width=\"100%\" height=\"100%\" style=\"max-width: 500.0px; max-height: 350.0px;\" viewBox=\"0 0 500.0 350.0\" preserveAspectRatio=\"xMinYMin meet\">\n",
" <style type=\"text/css\">\n",
" .plt-container {\n",
" font-family: Lucida Grande, sans-serif;\n",
" user-select: none;\n",
" -webkit-user-select: none;\n",
" -moz-user-select: none;\n",
" -ms-user-select: none;\n",
"}\n",
"text {\n",
" text-rendering: optimizeLegibility;\n",
"}\n",
"#ptWA12M .plot-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 16.0px;\n",
"\n",
"}\n",
"#ptWA12M .plot-subtitle {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#ptWA12M .plot-caption {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#ptWA12M .hyperlink-element {\n",
"fill: #118ed8;\n",
"font-weight: normal;\n",
" font-style: normal;\n",
"}\n",
"#ptWA12M .legend-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#ptWA12M .legend-item {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#ptWA12M .axis-title-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#ptWA12M .axis-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#d9JqEr8 .axis-tooltip-text-x {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#ptWA12M .axis-title-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#ptWA12M .axis-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#d9JqEr8 .axis-tooltip-text-y {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#ptWA12M .facet-strip-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#ptWA12M .facet-strip-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#d9JqEr8 .tooltip-text {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#d9JqEr8 .tooltip-title {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#d9JqEr8 .tooltip-label {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
" font-style: normal;font-family: Lucida Grande, sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"\n",
" </style>\n",
" <g id=\"ptWA12M\">\n",
" <path fill-rule=\"evenodd\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" d=\"M0.0 0.0 L0.0 350.0 L500.0 350.0 L500.0 0.0 Z\">\n",
" </path>\n",
" <g transform=\"translate(29.5 6.5 ) \">\n",
" <g>\n",
" <g transform=\"translate(64.03061335149923 0.0 ) \">\n",
" <g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(64.03061335149923 0.0 ) \">\n",
" <g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(64.03061335149923 291.0 ) \">\n",
" <g transform=\"translate(14.952898965682591 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>survived</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(89.71739379409554 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>sibsp</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(164.48188862250848 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>parch</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(239.24638345092143 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>age</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(314.0108782793344 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 7.0 ) \">\n",
" <text class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>fare</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <line x1=\"0.0\" y1=\"0.0\" x2=\"328.963777245017\" y2=\"0.0\" stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" </g>\n",
" <g transform=\"translate(64.03061335149923 0.0 ) \">\n",
" <g transform=\"translate(0.0 277.77272727272725 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>survived</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 211.63636363636363 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>sibsp</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 145.5 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>parch</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 79.36363636363637 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>age</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 13.227272727272748 ) \">\n",
" <g transform=\"translate(-3.0 0.0 ) \">\n",
" <text class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>fare</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g clip-path=\"url(#cvMV2AR)\" clip-bounds-jfx=\"[rect (64.03061335149923, 0.0), (328.963777245017, 291.0)]\">\n",
" <g transform=\"translate(64.03061335149923 0.0 ) \">\n",
" <g>\n",
" <g>\n",
" <g>\n",
" <g >\n",
" <rect fill=\"#4c4c4c\" stroke=\"#4c4c4c\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" x=\"4.452898965682591\" y=\"267.27272727272725\" height=\"21.0\" width=\"21.0\" transform=\"rotate(0.0 14.952898965682591 277.77272727272725 ) \" />\n",
" <rect fill=\"#aaa5a3\" stroke=\"#aaa5a3\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" x=\"86.98598347652329\" y=\"275.041316955155\" height=\"5.4628206351445\" width=\"5.4628206351445\" transform=\"rotate(0.0 89.71739379409554 277.77272727272725 ) \" />\n",
" <rect fill=\"#9e9e9e\" stroke=\"#9e9e9e\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" x=\"160.91540412377114\" y=\"274.2062427739899\" height=\"7.132968997474705\" width=\"7.132968997474705\" transform=\"rotate(0.0 164.48188862250848 277.77272727272725 ) \" />\n",
" <rect fill=\"#ada3a0\" stroke=\"#ada3a0\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" x=\"236.68408105738368\" y=\"275.21042487918953\" height=\"5.124604787075497\" width=\"5.124604787075497\" transform=\"rotate(0.0 239.24638345092143 277.77272727272725 ) \" />\n",
" <rect fill=\"#8f8f8f\" stroke=\"#8f8f8f\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" x=\"309.2233674410079\" y=\"272.98521643440074\" height=\"9.575021676652975\" width=\"9.575021676652975\" transform=\"rotate(0.0 314.0108782793344 277.77272727272725 ) \" />\n",
" <rect fill=\"#aaa5a3\" stroke=\"#aaa5a3\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" x=\"12.221488648110341\" y=\"208.90495331879137\" height=\"5.4628206351445\" width=\"5.4628206351445\" transform=\"rotate(0.0 14.952898965682591 211.63636363636363 ) \" />\n",
" <rect fill=\"#4c4c4c\" stroke=\"#4c4c4c\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" x=\"79.21739379409554\" y=\"201.13636363636363\" height=\"21.0\" width=\"21.0\" transform=\"rotate(0.0 89.71739379409554 211.63636363636363 ) \" />\n",
" <rect fill=\"#838383\" stroke=\"#838383\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" x=\"158.71649181208855\" y=\"205.8709668259437\" height=\"11.530793620839884\" width=\"11.530793620839884\" transform=\"rotate(0.0 164.48188862250848 211.63636363636363 ) \" />\n",
" <rect fill=\"#be9c90\" stroke=\"#be9c90\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" x=\"237.74638345092143\" y=\"210.13636363636363\" height=\"3.0\" width=\"3.0\" transform=\"rotate(0.0 239.24638345092143 211.63636363636363 ) \" />\n",
" <rect fill=\"#979797\" stroke=\"#979797\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" x=\"309.85813864758893\" y=\"207.48362400461815\" height=\"8.305479263490941\" width=\"8.305479263490941\" transform=\"rotate(0.0 314.0108782793344 211.63636363636363 ) \" />\n",
" <rect fill=\"#9e9e9e\" stroke=\"#9e9e9e\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" x=\"11.386414466945238\" y=\"141.93351550126266\" height=\"7.132968997474705\" width=\"7.132968997474705\" transform=\"rotate(0.0 14.952898965682591 145.5 ) \" />\n",
" <rect fill=\"#838383\" stroke=\"#838383\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" x=\"83.9519969836756\" y=\"139.73460318958007\" height=\"11.530793620839884\" width=\"11.530793620839884\" transform=\"rotate(0.0 89.71739379409554 145.5 ) \" />\n",
" <rect fill=\"#4c4c4c\" stroke=\"#4c4c4c\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" x=\"153.98188862250848\" y=\"135.0\" height=\"21.0\" width=\"21.0\" transform=\"rotate(0.0 164.48188862250848 145.5 ) \" />\n",
" <rect fill=\"#b79f97\" stroke=\"#b79f97\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" x=\"237.29382999583947\" y=\"143.54744654491805\" height=\"3.9051069101639118\" width=\"3.9051069101639118\" transform=\"rotate(0.0 239.24638345092143 145.5 ) \" />\n",
" <rect fill=\"#919191\" stroke=\"#919191\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" x=\"309.3948335512289\" y=\"140.88395527189448\" height=\"9.232089456211046\" width=\"9.232089456211046\" transform=\"rotate(0.0 314.0108782793344 145.5 ) \" />\n",
" <rect fill=\"#ada3a0\" stroke=\"#ada3a0\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" x=\"12.390596572144842\" y=\"76.80133397009863\" height=\"5.124604787075497\" width=\"5.124604787075497\" transform=\"rotate(0.0 14.952898965682591 79.36363636363637 ) \" />\n",
" <rect fill=\"#be9c90\" stroke=\"#be9c90\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" x=\"88.21739379409554\" y=\"77.86363636363637\" height=\"3.0\" width=\"3.0\" transform=\"rotate(0.0 89.71739379409554 79.36363636363637 ) \" />\n",
" <rect fill=\"#b79f97\" stroke=\"#b79f97\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" x=\"162.52933516742652\" y=\"77.41108290855442\" height=\"3.9051069101639118\" width=\"3.9051069101639118\" transform=\"rotate(0.0 164.48188862250848 79.36363636363637 ) \" />\n",
" <rect fill=\"#4c4c4c\" stroke=\"#4c4c4c\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" x=\"228.74638345092143\" y=\"68.86363636363637\" height=\"21.0\" width=\"21.0\" transform=\"rotate(0.0 239.24638345092143 79.36363636363637 ) \" />\n",
" <rect fill=\"#969696\" stroke=\"#969696\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" x=\"309.77275753030904\" y=\"75.125515614611\" height=\"8.476241498050749\" width=\"8.476241498050749\" transform=\"rotate(0.0 314.0108782793344 79.36363636363637 ) \" />\n",
" <rect fill=\"#8f8f8f\" stroke=\"#8f8f8f\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" x=\"10.165388127356103\" y=\"8.439761888946261\" height=\"9.575021676652975\" width=\"9.575021676652975\" transform=\"rotate(0.0 14.952898965682591 13.227272727272748 ) \" />\n",
" <rect fill=\"#979797\" stroke=\"#979797\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" x=\"85.56465416235007\" y=\"9.074533095527277\" height=\"8.305479263490941\" width=\"8.305479263490941\" transform=\"rotate(0.0 89.71739379409554 13.227272727272748 ) \" />\n",
" <rect fill=\"#919191\" stroke=\"#919191\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" x=\"159.86584389440296\" y=\"8.611227999167225\" height=\"9.232089456211046\" width=\"9.232089456211046\" transform=\"rotate(0.0 164.48188862250848 13.227272727272748 ) \" />\n",
" <rect fill=\"#969696\" stroke=\"#969696\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" x=\"235.00826270189606\" y=\"8.989151978247374\" height=\"8.476241498050749\" width=\"8.476241498050749\" transform=\"rotate(0.0 239.24638345092143 13.227272727272748 ) \" />\n",
" <rect fill=\"#4c4c4c\" stroke=\"#4c4c4c\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" x=\"303.5108782793344\" y=\"2.727272727272748\" height=\"21.0\" width=\"21.0\" transform=\"rotate(0.0 314.0108782793344 13.227272727272748 ) \" />\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <defs>\n",
" <clipPath id=\"cvMV2AR\">\n",
" <rect x=\"64.03061335149923\" y=\"0.0\" width=\"328.963777245017\" height=\"291.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" </g>\n",
" <g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(16.0 152.0 ) rotate(-90.0 ) \">\n",
" <text class=\"axis-title-y\" y=\"0.0\" text-anchor=\"middle\">\n",
" <tspan></tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(258.0125019740077 343.0 ) \">\n",
" <text class=\"axis-title-x\" y=\"0.0\" text-anchor=\"middle\">\n",
" <tspan></tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(433.99439059651627 78.25 ) \">\n",
" <rect x=\"0.0\" y=\"0.0\" height=\"147.5\" width=\"66.00560940348372\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <g transform=\"translate(5.0 5.0 ) \">\n",
" <g transform=\"translate(0.0 12.0 ) \">\n",
" <text class=\"legend-title\" y=\"0.0\">\n",
" <tspan>value</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(0.0 22.5 ) \">\n",
" <g>\n",
" <rect x=\"0.0\" y=\"0.0\" height=\"115.0\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(80,80,80)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"7.55\" height=\"107.45\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(89,89,89)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"13.1\" height=\"101.9\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(97,97,97)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"18.65\" height=\"96.35\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(106,106,106)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"24.2\" height=\"90.8\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(115,115,115)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"29.75\" height=\"85.25\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(124,124,124)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"35.3\" height=\"79.7\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(133,133,133)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"40.849999999999994\" height=\"74.15\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(142,142,142)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"46.39999999999999\" height=\"68.60000000000001\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(152,152,152)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"51.94999999999999\" height=\"63.05000000000001\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(161,161,161)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"57.499999999999986\" height=\"57.500000000000014\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(173,163,160)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"63.04999999999998\" height=\"51.95000000000002\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(185,158,149)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"68.59999999999998\" height=\"46.40000000000002\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(196,153,137)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"74.14999999999998\" height=\"40.85000000000002\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(206,147,126)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"79.69999999999997\" height=\"35.300000000000026\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(215,141,115)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"85.24999999999997\" height=\"29.75000000000003\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(223,135,103)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"90.79999999999997\" height=\"24.20000000000003\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(231,129,92)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"96.34999999999997\" height=\"18.650000000000034\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(239,122,80)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"101.89999999999996\" height=\"13.100000000000037\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(245,114,69)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <rect x=\"0.0\" y=\"107.44999999999996\" height=\"7.55000000000004\" width=\"23.0\" stroke-width=\"0.0\" fill=\"rgb(252,106,56)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <line x1=\"0.0\" y1=\"113.0\" x2=\"4.6\" y2=\"113.0\" stroke-width=\"1.0\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" <line x1=\"18.4\" y1=\"113.0\" x2=\"23.0\" y2=\"113.0\" stroke-width=\"1.0\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" <g transform=\"translate(26.9903027277341 117.55 ) \">\n",
" <text class=\"legend-item\" y=\"0.0\">\n",
" <tspan>-1.0</tspan>\n",
" </text>\n",
" </g>\n",
" <line x1=\"0.0\" y1=\"85.25\" x2=\"4.6\" y2=\"85.25\" stroke-width=\"1.0\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" <line x1=\"18.4\" y1=\"85.25\" x2=\"23.0\" y2=\"85.25\" stroke-width=\"1.0\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" <g transform=\"translate(26.9903027277341 89.8 ) \">\n",
" <text class=\"legend-item\" y=\"0.0\">\n",
" <tspan>-0.5</tspan>\n",
" </text>\n",
" </g>\n",
" <line x1=\"0.0\" y1=\"57.5\" x2=\"4.6\" y2=\"57.5\" stroke-width=\"1.0\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" <line x1=\"18.4\" y1=\"57.5\" x2=\"23.0\" y2=\"57.5\" stroke-width=\"1.0\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" <g transform=\"translate(26.9903027277341 62.05 ) \">\n",
" <text class=\"legend-item\" y=\"0.0\">\n",
" <tspan>0.0</tspan>\n",
" </text>\n",
" </g>\n",
" <line x1=\"0.0\" y1=\"29.75\" x2=\"4.6\" y2=\"29.75\" stroke-width=\"1.0\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" <line x1=\"18.4\" y1=\"29.75\" x2=\"23.0\" y2=\"29.75\" stroke-width=\"1.0\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" <g transform=\"translate(26.9903027277341 34.3 ) \">\n",
" <text class=\"legend-item\" y=\"0.0\">\n",
" <tspan>0.5</tspan>\n",
" </text>\n",
" </g>\n",
" <line x1=\"0.0\" y1=\"2.0\" x2=\"4.6\" y2=\"2.0\" stroke-width=\"1.0\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" <line x1=\"18.4\" y1=\"2.0\" x2=\"23.0\" y2=\"2.0\" stroke-width=\"1.0\" stroke=\"rgb(255,255,255)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" <g transform=\"translate(26.9903027277341 6.549999999999999 ) \">\n",
" <text class=\"legend-item\" y=\"0.0\">\n",
" <tspan>1.0</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <path fill=\"rgb(0,0,0)\" fill-opacity=\"0.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" d=\"M0.0 0.0 L0.0 350.0 L500.0 350.0 L500.0 0.0 Z\" pointer-events=\"none\">\n",
" </path>\n",
" </g>\n",
" <g id=\"d9JqEr8\">\n",
" </g>\n",
"</svg>\n",
" <script>document.getElementById(\"459c60f3-ee7d-46d8-a1d8-18154ba37491\").style.display = \"none\";</script>"
],
"application/plot+json": {
"output_type": "lets_plot_spec",
"output": {
"mapping": {},
"data": {
"column": [
"survived",
"survived",
"survived",
"survived",
"survived",
"sibsp",
"sibsp",
"sibsp",
"sibsp",
"sibsp",
"parch",
"parch",
"parch",
"parch",
"parch",
"age",
"age",
"age",
"age",
"age",
"fare",
"fare",
"fare",
"fare",
"fare"
],
"row": [
"survived",
"sibsp",
"parch",
"age",
"fare",
"survived",
"sibsp",
"parch",
"age",
"fare",
"survived",
"sibsp",
"parch",
"age",
"fare",
"survived",
"sibsp",
"parch",
"age",
"fare",
"survived",
"sibsp",
"parch",
"age",
"fare"
],
"value": [
1.0,
-0.02782511923058273,
0.0826595703861011,
-0.050198983636982906,
0.24420775279437662,
-0.02782511923058273,
1.0,
0.3735871906264913,
-0.19074715633383899,
0.16022419622116035,
0.0826595703861011,
0.3735871906264913,
1.0,
-0.1308719630307398,
0.2215218879995723,
-0.050198983636982906,
-0.19074715633383899,
-0.1308719630307398,
1.0,
0.17152056539956614,
0.24420775279437662,
0.16022419622116035,
0.2215218879995723,
0.17152056539956614,
1.0
]
},
"ggsize": {
"width": 500.0,
"height": 350.0
},
"kind": "plot",
"scales": [
{
"aesthetic": "size",
"breaks": [],
"limits": [
null,
null
]
},
{
"aesthetic": "x",
"discrete": true,
"name": ""
},
{
"aesthetic": "y",
"discrete": true,
"name": ""
},
{
"aesthetic": "color",
"scale_mapper_kind": "color_gradientn",
"limits": [
-1.0,
1.0
],
"colors": [
"#ff6632",
"#a6a6a6",
"#4c4c4c"
]
}
],
"layers": [
{
"mapping": {
"size": "value",
"x": "row",
"y": "column",
"color": "value"
},
"stat": "identity",
"shape": 15.0,
"sampling": "none",
"inherit_aes": false,
"position": "identity",
"geom": "point"
}
],
"theme": {
"axis_ontop": false,
"axis_ontop_y": false,
"axis_ontop_x": false,
"panel_grid_major": {
"blank": true
}
},
"data_meta": {
"series_annotations": [
{
"type": "float",
"column": "value"
},
{
"type": "str",
"column": "row"
},
{
"type": "str",
"column": "column"
}
]
}
},
"apply_color_scheme": true,
"swing_enabled": true
}
},
"execution_count": 37,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 37
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Creation of new features\n",
"\n",
"We suggest combining both the **Sibsp** and **parch** features into a single new feature named **FamilyNumber** by simply summing them up."
]
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:29:35.998766Z",
"start_time": "2025-05-28T10:29:35.802141Z"
}
},
"source": [
"val familyDF = df1\n",
" .add(\"familyNumber\") { sibsp + parch }\n",
"\n",
"familyDF.head()"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_45()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_45\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870800&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 5, columnsCount = 15&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;pclass: Int&bsol;&quot;&gt;pclass&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;survived: Int&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;name: String&bsol;&quot;&gt;name&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;Allen, Miss. Elisabeth Walton&quot;,&quot;Allison, Master. Hudson Trevor&quot;,&quot;Allison, Miss. Helen Loraine&quot;,&quot;Allison, Mr. Hudson Joshua Creighton&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;Allison, Mrs. Hudson J C (Bessie Waldo Daniels)&bsol;&quot;&gt;Allison, Mrs. Hudson J C (Bessie Wald&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;...&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;sex: String&bsol;&quot;&gt;sex&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;other&quot;,&quot;male&quot;,&quot;female&quot;,&quot;male&quot;,&quot;female&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;age: Double&bsol;&quot;&gt;age&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;29.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.9167&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;30.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;25.0000&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;sibsp: Double&bsol;&quot;&gt;sibsp&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;parch: Double&bsol;&quot;&gt;parch&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;ticket: String&bsol;&quot;&gt;ticket&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;24160&quot;,&quot;113781&quot;,&quot;113781&quot;,&quot;113781&quot;,&quot;113781&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;fare: Double&bsol;&quot;&gt;fare&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;211.3375&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;151.5500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;151.5500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;151.5500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;151.5500&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;cabin: String&bsol;&quot;&gt;cabin&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;B5&quot;,&quot;C22 C26&quot;,&quot;C22 C26&quot;,&quot;C22 C26&quot;,&quot;C22 C26&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;embarked: String&bsol;&quot;&gt;embarked&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;S&quot;,&quot;AA&quot;,&quot;S&quot;,&quot;S&quot;,&quot;S&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;boat: String?&bsol;&quot;&gt;boat&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;2&quot;,&quot;11&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;body: Int?&bsol;&quot;&gt;body&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;135&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;null&bsol;&quot;&gt;null&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;homedest: String&bsol;&quot;&gt;homedest&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;St Louis, MO&quot;,&quot;Montreal, PQ &sol; Chesterville, ON&quot;,&quot;Montreal, PQ &sol; Chesterville, ON&quot;,&quot;Montreal, PQ &sol; Chesterville, ON&quot;,&quot;Montreal, PQ &sol; Chesterville, ON&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;familyNumber: Double&bsol;&quot;&gt;familyNumber&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;3.0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870800, rootId: -536870800, totalRows: 5 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870800) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_45() {\n",
" let elem = document.getElementById(\"iframe_out_45\");\n",
" resize_iframe_out_45(elem);\n",
" setInterval(resize_iframe_out_45, 5000, elem);\n",
" }\n",
" function resize_iframe_out_45(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870799\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">pclass</th><th class=\"bottomBorder\" style=\"text-align:left\">survived</th><th class=\"bottomBorder\" style=\"text-align:left\">name</th><th class=\"bottomBorder\" style=\"text-align:left\">sex</th><th class=\"bottomBorder\" style=\"text-align:left\">age</th><th class=\"bottomBorder\" style=\"text-align:left\">sibsp</th><th class=\"bottomBorder\" style=\"text-align:left\">parch</th><th class=\"bottomBorder\" style=\"text-align:left\">ticket</th><th class=\"bottomBorder\" style=\"text-align:left\">fare</th><th class=\"bottomBorder\" style=\"text-align:left\">cabin</th><th class=\"bottomBorder\" style=\"text-align:left\">embarked</th><th class=\"bottomBorder\" style=\"text-align:left\">boat</th><th class=\"bottomBorder\" style=\"text-align:left\">body</th><th class=\"bottomBorder\" style=\"text-align:left\">homedest</th><th class=\"bottomBorder\" style=\"text-align:left\">familyNumber</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Allen, Miss. Elisabeth Walton</td><td style=\"vertical-align:top\">other</td><td style=\"vertical-align:top\">29.000000</td><td style=\"vertical-align:top\">0.000000</td><td style=\"vertical-align:top\">0.000000</td><td style=\"vertical-align:top\">24160</td><td style=\"vertical-align:top\">211.337500</td><td style=\"vertical-align:top\">B5</td><td style=\"vertical-align:top\">S</td><td style=\"vertical-align:top\">2</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">St Louis, MO</td><td style=\"vertical-align:top\">0.000000</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Allison, Master. Hudson Trevor</td><td style=\"vertical-align:top\">male</td><td style=\"vertical-align:top\">0.916700</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">2.000000</td><td style=\"vertical-align:top\">113781</td><td style=\"vertical-align:top\">151.550000</td><td style=\"vertical-align:top\">C22 C26</td><td style=\"vertical-align:top\">AA</td><td style=\"vertical-align:top\">11</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">Montreal, PQ / Chesterville, ON</td><td style=\"vertical-align:top\">3.000000</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Allison, Miss. Helen Loraine</td><td style=\"vertical-align:top\">female</td><td style=\"vertical-align:top\">2.000000</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">2.000000</td><td style=\"vertical-align:top\">113781</td><td style=\"vertical-align:top\">151.550000</td><td style=\"vertical-align:top\">C22 C26</td><td style=\"vertical-align:top\">S</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">Montreal, PQ / Chesterville, ON</td><td style=\"vertical-align:top\">3.000000</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Allison, Mr. Hudson Joshua Creighton</td><td style=\"vertical-align:top\">male</td><td style=\"vertical-align:top\">30.000000</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">2.000000</td><td style=\"vertical-align:top\">113781</td><td style=\"vertical-align:top\">151.550000</td><td style=\"vertical-align:top\">C22 C26</td><td style=\"vertical-align:top\">S</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">135</td><td style=\"vertical-align:top\">Montreal, PQ / Chesterville, ON</td><td style=\"vertical-align:top\">3.000000</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Allison, Mrs. Hudson J C (Bessie Wald<span class=\"structural\">...</span></td><td style=\"vertical-align:top\">female</td><td style=\"vertical-align:top\">25.000000</td><td style=\"vertical-align:top\">1.000000</td><td style=\"vertical-align:top\">2.000000</td><td style=\"vertical-align:top\">113781</td><td style=\"vertical-align:top\">151.550000</td><td style=\"vertical-align:top\">C22 C26</td><td style=\"vertical-align:top\">S</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">null</td><td style=\"vertical-align:top\">Montreal, PQ / Chesterville, ON</td><td style=\"vertical-align:top\">3.000000</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870799\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"pclass\",\"survived\",\"name\",\"sex\",\"age\",\"sibsp\",\"parch\",\"ticket\",\"fare\",\"cabin\",\"embarked\",\"boat\",\"body\",\"homedest\",\"familyNumber\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String?\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int?\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"}],\"nrow\":5,\"ncol\":15},\"kotlin_dataframe\":[{\"pclass\":1,\"survived\":1,\"name\":\"Allen, Miss. Elisabeth Walton\",\"sex\":\"other\",\"age\":29.0,\"sibsp\":0.0,\"parch\":0.0,\"ticket\":\"24160\",\"fare\":211.3375,\"cabin\":\"B5\",\"embarked\":\"S\",\"boat\":\"2\",\"body\":null,\"homedest\":\"St Louis, MO\",\"familyNumber\":0.0},{\"pclass\":1,\"survived\":1,\"name\":\"Allison, Master. Hudson Trevor\",\"sex\":\"male\",\"age\":0.9167,\"sibsp\":1.0,\"parch\":2.0,\"ticket\":\"113781\",\"fare\":151.55,\"cabin\":\"C22 C26\",\"embarked\":\"AA\",\"boat\":\"11\",\"body\":null,\"homedest\":\"Montreal, PQ / Chesterville, ON\",\"familyNumber\":3.0},{\"pclass\":1,\"survived\":0,\"name\":\"Allison, Miss. Helen Loraine\",\"sex\":\"female\",\"age\":2.0,\"sibsp\":1.0,\"parch\":2.0,\"ticket\":\"113781\",\"fare\":151.55,\"cabin\":\"C22 C26\",\"embarked\":\"S\",\"boat\":null,\"body\":null,\"homedest\":\"Montreal, PQ / Chesterville, ON\",\"familyNumber\":3.0},{\"pclass\":1,\"survived\":0,\"name\":\"Allison, Mr. Hudson Joshua Creighton\",\"sex\":\"male\",\"age\":30.0,\"sibsp\":1.0,\"parch\":2.0,\"ticket\":\"113781\",\"fare\":151.55,\"cabin\":\"C22 C26\",\"embarked\":\"S\",\"boat\":null,\"body\":135,\"homedest\":\"Montreal, PQ / Chesterville, ON\",\"familyNumber\":3.0},{\"pclass\":1,\"survived\":0,\"name\":\"Allison, Mrs. Hudson J C (Bessie Waldo Daniels)\",\"sex\":\"female\",\"age\":25.0,\"sibsp\":1.0,\"parch\":2.0,\"ticket\":\"113781\",\"fare\":151.55,\"cabin\":\"C22 C26\",\"embarked\":\"S\",\"boat\":null,\"body\":null,\"homedest\":\"Montreal, PQ / Chesterville, ON\",\"familyNumber\":3.0}]}"
},
"execution_count": 38,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 38
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:30:07.106789Z",
"start_time": "2025-05-28T10:30:07.043468Z"
}
},
"source": [
"familyDF.corr { familyNumber }.with { survived }"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_49()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_49\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870792&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 1, columnsCount = 2&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;column: String&bsol;&quot;&gt;column&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;familyNumber&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;survived: Double&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.026876&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870792, rootId: -536870792, totalRows: 1 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870792) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_49() {\n",
" let elem = document.getElementById(\"iframe_out_49\");\n",
" resize_iframe_out_49(elem);\n",
" setInterval(resize_iframe_out_49, 5000, elem);\n",
" }\n",
" function resize_iframe_out_49(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870791\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">column</th><th class=\"bottomBorder\" style=\"text-align:left\">survived</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">familyNumber</td><td style=\"vertical-align:top\">0.026876</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870791\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"column\",\"survived\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"}],\"nrow\":1,\"ncol\":2},\"kotlin_dataframe\":[{\"column\":\"familyNumber\",\"survived\":0.02687643412533192}]}"
},
"execution_count": 40,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 40
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:30:09.716646Z",
"start_time": "2025-05-28T10:30:09.606851Z"
}
},
"source": [
"familyDF.corr { familyNumber }.with { age }"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_51()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_51\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870788&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 1, columnsCount = 2&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;column: String&bsol;&quot;&gt;column&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;familyNumber&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;age: Double&bsol;&quot;&gt;age&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.196996&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870788, rootId: -536870788, totalRows: 1 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870788) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_51() {\n",
" let elem = document.getElementById(\"iframe_out_51\");\n",
" resize_iframe_out_51(elem);\n",
" setInterval(resize_iframe_out_51, 5000, elem);\n",
" }\n",
" function resize_iframe_out_51(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870787\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">column</th><th class=\"bottomBorder\" style=\"text-align:left\">age</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">familyNumber</td><td style=\"vertical-align:top\">-0.196996</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870787\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"column\",\"age\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"}],\"nrow\":1,\"ncol\":2},\"kotlin_dataframe\":[{\"column\":\"familyNumber\",\"age\":-0.19699624168458799}]}"
},
"execution_count": 41,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 41
},
{
"cell_type": "markdown",
"metadata": {},
"source": "It looks like the new feature has no influence on the **survived** column, but it has a strong negative correlation with **age**."
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Titles\n",
"Let's try to extract something from the names. A lot of strings in the name column contain special titles, like Done, Mr, Mrs and so on."
]
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:30:39.277144Z",
"start_time": "2025-05-28T10:30:38.969832Z"
}
},
"source": [
"val titledDF = df\n",
" .select { survived and name }\n",
" .add(\"title\") {\n",
" name.split(\".\")[0].split(\",\")[1].trim()\n",
" }\n",
"titledDF.head(100)"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_53()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_53\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870784&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;... showing only top 20 of 100 rows&lt;&sol;p&gt;&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 100, columnsCount = 3&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;survived: Int&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;name: String&bsol;&quot;&gt;name&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;Allen, Miss. Elisabeth Walton&quot;,&quot;Allison, Master. Hudson Trevor&quot;,&quot;Allison, Miss. Helen Loraine&quot;,&quot;Allison, Mr. Hudson Joshua Creighton&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;Allison, Mrs. Hudson J C (Bessie Waldo Daniels)&bsol;&quot;&gt;Allison, Mrs. Hudson J C (Bessie Wald&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;...&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;Anderson, Mr. Harry&quot;,&quot;Andrews, Miss. Kornelia Theodosia&quot;,&quot;Andrews, Mr. Thomas Jr&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;Appleton, Mrs. Edward Dale (Charlotte Lamson)&bsol;&quot;&gt;Appleton, Mrs. Edward Dale (Charlotte&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;...&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;Artagaveytia, Mr. Ramon&quot;,&quot;Astor, Col. John Jacob&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;Astor, Mrs. John Jacob (Madeleine Talmadge Force)&bsol;&quot;&gt;Astor, Mrs. John Jacob (Madeleine Tal&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;...&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;Aubart, Mme. Leontine Pauline&quot;,&quot;Barber, Miss. Ellen &amp;#34;Nellie&amp;#34;&quot;,&quot;Barkworth, Mr. Algernon Henry Wilson&quot;,&quot;Baumann, Mr. John D&quot;,&quot;Baxter, Mr. Quigg Edmond&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;Baxter, Mrs. James (Helene DeLaudeniere Chaput)&bsol;&quot;&gt;Baxter, Mrs. James (Helene DeLaudenie&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;...&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;Bazzani, Miss. Albina&quot;,&quot;Beattie, Mr. Thomson&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;title: String&bsol;&quot;&gt;title&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;Miss&quot;,&quot;Master&quot;,&quot;Miss&quot;,&quot;Mr&quot;,&quot;Mrs&quot;,&quot;Mr&quot;,&quot;Miss&quot;,&quot;Mr&quot;,&quot;Mrs&quot;,&quot;Mr&quot;,&quot;Col&quot;,&quot;Mrs&quot;,&quot;Mme&quot;,&quot;Miss&quot;,&quot;Mr&quot;,&quot;Mr&quot;,&quot;Mr&quot;,&quot;Mrs&quot;,&quot;Miss&quot;,&quot;Mr&quot;] }, \n",
"], id: -536870784, rootId: -536870784, totalRows: 100 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870784) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_53() {\n",
" let elem = document.getElementById(\"iframe_out_53\");\n",
" resize_iframe_out_53(elem);\n",
" setInterval(resize_iframe_out_53, 5000, elem);\n",
" }\n",
" function resize_iframe_out_53(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870783\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">survived</th><th class=\"bottomBorder\" style=\"text-align:left\">name</th><th class=\"bottomBorder\" style=\"text-align:left\">title</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Allen, Miss. Elisabeth Walton</td><td style=\"vertical-align:top\">Miss</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Allison, Master. Hudson Trevor</td><td style=\"vertical-align:top\">Master</td></tr><tr><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Allison, Miss. Helen Loraine</td><td style=\"vertical-align:top\">Miss</td></tr><tr><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Allison, Mr. Hudson Joshua Creighton</td><td style=\"vertical-align:top\">Mr</td></tr><tr><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Allison, Mrs. Hudson J C (Bessie Wald<span class=\"structural\">...</span></td><td style=\"vertical-align:top\">Mrs</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Anderson, Mr. Harry</td><td style=\"vertical-align:top\">Mr</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Andrews, Miss. Kornelia Theodosia</td><td style=\"vertical-align:top\">Miss</td></tr><tr><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Andrews, Mr. Thomas Jr</td><td style=\"vertical-align:top\">Mr</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Appleton, Mrs. Edward Dale (Charlotte<span class=\"structural\">...</span></td><td style=\"vertical-align:top\">Mrs</td></tr><tr><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Artagaveytia, Mr. Ramon</td><td style=\"vertical-align:top\">Mr</td></tr><tr><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Astor, Col. John Jacob</td><td style=\"vertical-align:top\">Col</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Astor, Mrs. John Jacob (Madeleine Tal<span class=\"structural\">...</span></td><td style=\"vertical-align:top\">Mrs</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Aubart, Mme. Leontine Pauline</td><td style=\"vertical-align:top\">Mme</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Barber, Miss. Ellen &#34;Nellie&#34;</td><td style=\"vertical-align:top\">Miss</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Barkworth, Mr. Algernon Henry Wilson</td><td style=\"vertical-align:top\">Mr</td></tr><tr><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Baumann, Mr. John D</td><td style=\"vertical-align:top\">Mr</td></tr><tr><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Baxter, Mr. Quigg Edmond</td><td style=\"vertical-align:top\">Mr</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Baxter, Mrs. James (Helene DeLaudenie<span class=\"structural\">...</span></td><td style=\"vertical-align:top\">Mrs</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Bazzani, Miss. Albina</td><td style=\"vertical-align:top\">Miss</td></tr><tr><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Beattie, Mr. Thomson</td><td style=\"vertical-align:top\">Mr</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870783\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"survived\",\"name\",\"title\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"}],\"nrow\":100,\"ncol\":3},\"kotlin_dataframe\":[{\"survived\":1,\"name\":\"Allen, Miss. Elisabeth Walton\",\"title\":\"Miss\"},{\"survived\":1,\"name\":\"Allison, Master. Hudson Trevor\",\"title\":\"Master\"},{\"survived\":0,\"name\":\"Allison, Miss. Helen Loraine\",\"title\":\"Miss\"},{\"survived\":0,\"name\":\"Allison, Mr. Hudson Joshua Creighton\",\"title\":\"Mr\"},{\"survived\":0,\"name\":\"Allison, Mrs. Hudson J C (Bessie Waldo Daniels)\",\"title\":\"Mrs\"},{\"survived\":1,\"name\":\"Anderson, Mr. Harry\",\"title\":\"Mr\"},{\"survived\":1,\"name\":\"Andrews, Miss. Kornelia Theodosia\",\"title\":\"Miss\"},{\"survived\":0,\"name\":\"Andrews, Mr. Thomas Jr\",\"title\":\"Mr\"},{\"survived\":1,\"name\":\"Appleton, Mrs. Edward Dale (Charlotte Lamson)\",\"title\":\"Mrs\"},{\"survived\":0,\"name\":\"Artagaveytia, Mr. Ramon\",\"title\":\"Mr\"},{\"survived\":0,\"name\":\"Astor, Col. John Jacob\",\"title\":\"Col\"},{\"survived\":1,\"name\":\"Astor, Mrs. John Jacob (Madeleine Talmadge Force)\",\"title\":\"Mrs\"},{\"survived\":1,\"name\":\"Aubart, Mme. Leontine Pauline\",\"title\":\"Mme\"},{\"survived\":1,\"name\":\"Barber, Miss. Ellen \\\"Nellie\\\"\",\"title\":\"Miss\"},{\"survived\":1,\"name\":\"Barkworth, Mr. Algernon Henry Wilson\",\"title\":\"Mr\"},{\"survived\":0,\"name\":\"Baumann, Mr. John D\",\"title\":\"Mr\"},{\"survived\":0,\"name\":\"Baxter, Mr. Quigg Edmond\",\"title\":\"Mr\"},{\"survived\":1,\"name\":\"Baxter, Mrs. James (Helene DeLaudeniere Chaput)\",\"title\":\"Mrs\"},{\"survived\":1,\"name\":\"Bazzani, Miss. Albina\",\"title\":\"Miss\"},{\"survived\":0,\"name\":\"Beattie, Mr. Thomson\",\"title\":\"Mr\"}]}"
},
"execution_count": 42,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 42
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:31:05.817959Z",
"start_time": "2025-05-28T10:31:05.769398Z"
}
},
"source": [
"titledDF.valueCounts { title }"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_55()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_55\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870780&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 18, columnsCount = 2&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;title: String&bsol;&quot;&gt;title&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;Mr&quot;,&quot;Miss&quot;,&quot;Mrs&quot;,&quot;Master&quot;,&quot;Dr&quot;,&quot;Rev&quot;,&quot;Col&quot;,&quot;Major&quot;,&quot;Mlle&quot;,&quot;Ms&quot;,&quot;Mme&quot;,&quot;Capt&quot;,&quot;Lady&quot;,&quot;Sir&quot;,&quot;Dona&quot;,&quot;Jonkheer&quot;,&quot;the Countess&quot;,&quot;Don&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;count: Int&bsol;&quot;&gt;count&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;757&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;260&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;197&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;61&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;8&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;8&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;4&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;2&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870780, rootId: -536870780, totalRows: 18 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870780) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_55() {\n",
" let elem = document.getElementById(\"iframe_out_55\");\n",
" resize_iframe_out_55(elem);\n",
" setInterval(resize_iframe_out_55, 5000, elem);\n",
" }\n",
" function resize_iframe_out_55(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870779\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">title</th><th class=\"bottomBorder\" style=\"text-align:left\">count</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">Mr</td><td style=\"vertical-align:top\">757</td></tr><tr><td style=\"vertical-align:top\">Miss</td><td style=\"vertical-align:top\">260</td></tr><tr><td style=\"vertical-align:top\">Mrs</td><td style=\"vertical-align:top\">197</td></tr><tr><td style=\"vertical-align:top\">Master</td><td style=\"vertical-align:top\">61</td></tr><tr><td style=\"vertical-align:top\">Dr</td><td style=\"vertical-align:top\">8</td></tr><tr><td style=\"vertical-align:top\">Rev</td><td style=\"vertical-align:top\">8</td></tr><tr><td style=\"vertical-align:top\">Col</td><td style=\"vertical-align:top\">4</td></tr><tr><td style=\"vertical-align:top\">Major</td><td style=\"vertical-align:top\">2</td></tr><tr><td style=\"vertical-align:top\">Mlle</td><td style=\"vertical-align:top\">2</td></tr><tr><td style=\"vertical-align:top\">Ms</td><td style=\"vertical-align:top\">2</td></tr><tr><td style=\"vertical-align:top\">Mme</td><td style=\"vertical-align:top\">1</td></tr><tr><td style=\"vertical-align:top\">Capt</td><td style=\"vertical-align:top\">1</td></tr><tr><td style=\"vertical-align:top\">Lady</td><td style=\"vertical-align:top\">1</td></tr><tr><td style=\"vertical-align:top\">Sir</td><td style=\"vertical-align:top\">1</td></tr><tr><td style=\"vertical-align:top\">Dona</td><td style=\"vertical-align:top\">1</td></tr><tr><td style=\"vertical-align:top\">Jonkheer</td><td style=\"vertical-align:top\">1</td></tr><tr><td style=\"vertical-align:top\">the Countess</td><td style=\"vertical-align:top\">1</td></tr><tr><td style=\"vertical-align:top\">Don</td><td style=\"vertical-align:top\">1</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870779\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"title\",\"count\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}],\"nrow\":18,\"ncol\":2},\"kotlin_dataframe\":[{\"title\":\"Mr\",\"count\":757},{\"title\":\"Miss\",\"count\":260},{\"title\":\"Mrs\",\"count\":197},{\"title\":\"Master\",\"count\":61},{\"title\":\"Dr\",\"count\":8},{\"title\":\"Rev\",\"count\":8},{\"title\":\"Col\",\"count\":4},{\"title\":\"Major\",\"count\":2},{\"title\":\"Mlle\",\"count\":2},{\"title\":\"Ms\",\"count\":2},{\"title\":\"Mme\",\"count\":1},{\"title\":\"Capt\",\"count\":1},{\"title\":\"Lady\",\"count\":1},{\"title\":\"Sir\",\"count\":1},{\"title\":\"Dona\",\"count\":1},{\"title\":\"Jonkheer\",\"count\":1},{\"title\":\"the Countess\",\"count\":1},{\"title\":\"Don\",\"count\":1}]}"
},
"execution_count": 43,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 43
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The new **Title** column contains some rare titles and some titles with typos.\n",
"Let's clean the data and merge all rare titles into one category."
]
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:33:12.945456Z",
"start_time": "2025-05-28T10:33:12.784091Z"
}
},
"source": [
"val rareTitles = listOf(\n",
" \"Dona\", \"Lady\", \"the Countess\", \"Capt\", \"Col\", \"Don\",\n",
" \"Dr\", \"Major\", \"Rev\", \"Sir\", \"Jonkheer\",\n",
")\n",
"\n",
"val cleanedTitledDF = titledDF.update { title }.with {\n",
" when {\n",
" it == \"Mlle\" -> \"Miss\"\n",
" it == \"Ms\" -> \"Miss\"\n",
" it == \"Mme\" -> \"Mrs\"\n",
" it in rareTitles -> \"Rare Title\"\n",
" else -> it\n",
" }\n",
"}"
],
"outputs": [],
"execution_count": 44
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:33:24.948520Z",
"start_time": "2025-05-28T10:33:24.852076Z"
}
},
"source": [
"cleanedTitledDF.valueCounts { title }"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_57()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_57\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870776&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 5, columnsCount = 2&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;title: String&bsol;&quot;&gt;title&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;Mr&quot;,&quot;Miss&quot;,&quot;Mrs&quot;,&quot;Master&quot;,&quot;Rare Title&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;count: Int&bsol;&quot;&gt;count&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;757&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;264&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;198&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;61&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;29&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870776, rootId: -536870776, totalRows: 5 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870776) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_57() {\n",
" let elem = document.getElementById(\"iframe_out_57\");\n",
" resize_iframe_out_57(elem);\n",
" setInterval(resize_iframe_out_57, 5000, elem);\n",
" }\n",
" function resize_iframe_out_57(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870775\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">title</th><th class=\"bottomBorder\" style=\"text-align:left\">count</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">Mr</td><td style=\"vertical-align:top\">757</td></tr><tr><td style=\"vertical-align:top\">Miss</td><td style=\"vertical-align:top\">264</td></tr><tr><td style=\"vertical-align:top\">Mrs</td><td style=\"vertical-align:top\">198</td></tr><tr><td style=\"vertical-align:top\">Master</td><td style=\"vertical-align:top\">61</td></tr><tr><td style=\"vertical-align:top\">Rare Title</td><td style=\"vertical-align:top\">29</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870775\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"title\",\"count\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}],\"nrow\":5,\"ncol\":2},\"kotlin_dataframe\":[{\"title\":\"Mr\",\"count\":757},{\"title\":\"Miss\",\"count\":264},{\"title\":\"Mrs\",\"count\":198},{\"title\":\"Master\",\"count\":61},{\"title\":\"Rare Title\",\"count\":29}]}"
},
"execution_count": 45,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 45
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Now it looks awesome, and we have only five different titles!\n",
"Let's see how it correlates with the survival rate."
]
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:33:57.317737Z",
"start_time": "2025-05-28T10:33:56.945450Z"
}
},
"source": [
"val correlations = cleanedTitledDF\n",
" .pivotMatches { title }\n",
" .corr { title }.with { survived }\n",
"correlations"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_59()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_59\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870772&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 5, columnsCount = 2&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;title: String&bsol;&quot;&gt;title&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;Miss&quot;,&quot;Master&quot;,&quot;Mr&quot;,&quot;Mrs&quot;,&quot;Rare Title&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;survived: Double&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.306069&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.057318&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.528775&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.352536&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.000915&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870772, rootId: -536870772, totalRows: 5 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870772) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_59() {\n",
" let elem = document.getElementById(\"iframe_out_59\");\n",
" resize_iframe_out_59(elem);\n",
" setInterval(resize_iframe_out_59, 5000, elem);\n",
" }\n",
" function resize_iframe_out_59(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870771\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">title</th><th class=\"bottomBorder\" style=\"text-align:left\">survived</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">Miss</td><td style=\"vertical-align:top\">0.306069</td></tr><tr><td style=\"vertical-align:top\">Master</td><td style=\"vertical-align:top\">0.057318</td></tr><tr><td style=\"vertical-align:top\">Mr</td><td style=\"vertical-align:top\">-0.528775</td></tr><tr><td style=\"vertical-align:top\">Mrs</td><td style=\"vertical-align:top\">0.352536</td></tr><tr><td style=\"vertical-align:top\">Rare Title</td><td style=\"vertical-align:top\">-0.000915</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870771\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"title\",\"survived\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"}],\"nrow\":5,\"ncol\":2},\"kotlin_dataframe\":[{\"title\":\"Miss\",\"survived\":0.30606871573905226},{\"title\":\"Master\",\"survived\":0.0573179698378937},{\"title\":\"Mr\",\"survived\":-0.5287747518050332},{\"title\":\"Mrs\",\"survived\":0.3525356336629826},{\"title\":\"Rare Title\",\"survived\":-9.149409567074339E-4}]}"
},
"execution_count": 46,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 46
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:34:08.120556Z",
"start_time": "2025-05-28T10:34:07.954473Z"
}
},
"source": [
"correlations\n",
" .update { title }.with { it.substringAfter('_') }\n",
" .filter { title != \"survived\" }"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_61()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_61\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870768&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 5, columnsCount = 2&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;title: String&bsol;&quot;&gt;title&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;Miss&quot;,&quot;Master&quot;,&quot;Mr&quot;,&quot;Mrs&quot;,&quot;Rare Title&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;survived: Double&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.306069&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.057318&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.528775&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.352536&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.000915&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870768, rootId: -536870768, totalRows: 5 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870768) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_61() {\n",
" let elem = document.getElementById(\"iframe_out_61\");\n",
" resize_iframe_out_61(elem);\n",
" setInterval(resize_iframe_out_61, 5000, elem);\n",
" }\n",
" function resize_iframe_out_61(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870767\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">title</th><th class=\"bottomBorder\" style=\"text-align:left\">survived</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">Miss</td><td style=\"vertical-align:top\">0.306069</td></tr><tr><td style=\"vertical-align:top\">Master</td><td style=\"vertical-align:top\">0.057318</td></tr><tr><td style=\"vertical-align:top\">Mr</td><td style=\"vertical-align:top\">-0.528775</td></tr><tr><td style=\"vertical-align:top\">Mrs</td><td style=\"vertical-align:top\">0.352536</td></tr><tr><td style=\"vertical-align:top\">Rare Title</td><td style=\"vertical-align:top\">-0.000915</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870767\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"title\",\"survived\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"}],\"nrow\":5,\"ncol\":2},\"kotlin_dataframe\":[{\"title\":\"Miss\",\"survived\":0.30606871573905226},{\"title\":\"Master\",\"survived\":0.0573179698378937},{\"title\":\"Mr\",\"survived\":-0.5287747518050332},{\"title\":\"Mrs\",\"survived\":0.3525356336629826},{\"title\":\"Rare Title\",\"survived\":-9.149409567074339E-4}]}"
},
"execution_count": 47,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 47
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The women with the title **Miss** and **Mrs** had the same chances of survival,\n",
"but this cannot be said for the men.\n",
"\n",
"If you had the title **Mr**, you were in bad luck on Titanic.\n",
"\n",
"**Rare title** is really rare and doesn't play a big role."
]
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:35:33.581752Z",
"start_time": "2025-05-28T10:35:33.343580Z"
}
},
"source": [
"val groupedCleanedTitledDF = cleanedTitledDF\n",
" .valueCounts { title and survived }\n",
" .sortBy { title and survived }\n",
"groupedCleanedTitledDF"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_63()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_63\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870764&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 10, columnsCount = 3&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;title: String&bsol;&quot;&gt;title&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;Master&quot;,&quot;Master&quot;,&quot;Miss&quot;,&quot;Miss&quot;,&quot;Mr&quot;,&quot;Mr&quot;,&quot;Mrs&quot;,&quot;Mrs&quot;,&quot;Rare Title&quot;,&quot;Rare Title&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;survived: Int&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;count: Int&bsol;&quot;&gt;count&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;30&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;31&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;85&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;179&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;634&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;123&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;42&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;156&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;18&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;11&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870764, rootId: -536870764, totalRows: 10 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870764) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_63() {\n",
" let elem = document.getElementById(\"iframe_out_63\");\n",
" resize_iframe_out_63(elem);\n",
" setInterval(resize_iframe_out_63, 5000, elem);\n",
" }\n",
" function resize_iframe_out_63(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870763\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">title</th><th class=\"bottomBorder\" style=\"text-align:left\">survived</th><th class=\"bottomBorder\" style=\"text-align:left\">count</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">Master</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">30</td></tr><tr><td style=\"vertical-align:top\">Master</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">31</td></tr><tr><td style=\"vertical-align:top\">Miss</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">85</td></tr><tr><td style=\"vertical-align:top\">Miss</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">179</td></tr><tr><td style=\"vertical-align:top\">Mr</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">634</td></tr><tr><td style=\"vertical-align:top\">Mr</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">123</td></tr><tr><td style=\"vertical-align:top\">Mrs</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">42</td></tr><tr><td style=\"vertical-align:top\">Mrs</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">156</td></tr><tr><td style=\"vertical-align:top\">Rare Title</td><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">18</td></tr><tr><td style=\"vertical-align:top\">Rare Title</td><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">11</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870763\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"title\",\"survived\",\"count\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}],\"nrow\":10,\"ncol\":3},\"kotlin_dataframe\":[{\"title\":\"Master\",\"survived\":0,\"count\":30},{\"title\":\"Master\",\"survived\":1,\"count\":31},{\"title\":\"Miss\",\"survived\":0,\"count\":85},{\"title\":\"Miss\",\"survived\":1,\"count\":179},{\"title\":\"Mr\",\"survived\":0,\"count\":634},{\"title\":\"Mr\",\"survived\":1,\"count\":123},{\"title\":\"Mrs\",\"survived\":0,\"count\":42},{\"title\":\"Mrs\",\"survived\":1,\"count\":156},{\"title\":\"Rare Title\",\"survived\":0,\"count\":18},{\"title\":\"Rare Title\",\"survived\":1,\"count\":11}]}"
},
"execution_count": 48,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 48
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Surname analysis\n",
"It's alluring to dig deeper into families, and home destinations and we could start analyzing these from the surnames that can be easily extracted from the **Name** feature."
]
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:39:01.897503Z",
"start_time": "2025-05-28T10:39:01.606417Z"
}
},
"source": [
"val surnameDF = df1\n",
" .select { survived and name }\n",
" .add(\"surname\") {\n",
" name.split(\".\")[0].split(\",\")[0].trim()\n",
" }\n",
"surnameDF.head()"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_65()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_65\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870760&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 5, columnsCount = 3&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;survived: Int&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;1&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;name: String&bsol;&quot;&gt;name&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;Allen, Miss. Elisabeth Walton&quot;,&quot;Allison, Master. Hudson Trevor&quot;,&quot;Allison, Miss. Helen Loraine&quot;,&quot;Allison, Mr. Hudson Joshua Creighton&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;Allison, Mrs. Hudson J C (Bessie Waldo Daniels)&bsol;&quot;&gt;Allison, Mrs. Hudson J C (Bessie Wald&lt;span class=&bsol;&quot;structural&bsol;&quot;&gt;...&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;surname: String&bsol;&quot;&gt;surname&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;Allen&quot;,&quot;Allison&quot;,&quot;Allison&quot;,&quot;Allison&quot;,&quot;Allison&quot;] }, \n",
"], id: -536870760, rootId: -536870760, totalRows: 5 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870760) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_65() {\n",
" let elem = document.getElementById(\"iframe_out_65\");\n",
" resize_iframe_out_65(elem);\n",
" setInterval(resize_iframe_out_65, 5000, elem);\n",
" }\n",
" function resize_iframe_out_65(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870759\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">survived</th><th class=\"bottomBorder\" style=\"text-align:left\">name</th><th class=\"bottomBorder\" style=\"text-align:left\">surname</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Allen, Miss. Elisabeth Walton</td><td style=\"vertical-align:top\">Allen</td></tr><tr><td style=\"vertical-align:top\">1</td><td style=\"vertical-align:top\">Allison, Master. Hudson Trevor</td><td style=\"vertical-align:top\">Allison</td></tr><tr><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Allison, Miss. Helen Loraine</td><td style=\"vertical-align:top\">Allison</td></tr><tr><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Allison, Mr. Hudson Joshua Creighton</td><td style=\"vertical-align:top\">Allison</td></tr><tr><td style=\"vertical-align:top\">0</td><td style=\"vertical-align:top\">Allison, Mrs. Hudson J C (Bessie Wald<span class=\"structural\">...</span></td><td style=\"vertical-align:top\">Allison</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870759\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"survived\",\"name\",\"surname\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"}],\"nrow\":5,\"ncol\":3},\"kotlin_dataframe\":[{\"survived\":1,\"name\":\"Allen, Miss. Elisabeth Walton\",\"surname\":\"Allen\"},{\"survived\":1,\"name\":\"Allison, Master. Hudson Trevor\",\"surname\":\"Allison\"},{\"survived\":0,\"name\":\"Allison, Miss. Helen Loraine\",\"surname\":\"Allison\"},{\"survived\":0,\"name\":\"Allison, Mr. Hudson Joshua Creighton\",\"surname\":\"Allison\"},{\"survived\":0,\"name\":\"Allison, Mrs. Hudson J C (Bessie Waldo Daniels)\",\"surname\":\"Allison\"}]}"
},
"execution_count": 49,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 49
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:39:06.494112Z",
"start_time": "2025-05-28T10:39:06.382904Z"
}
},
"source": [
"surnameDF.valueCounts { surname }"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_67()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_67\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870756&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;... showing only top 20 of 875 rows&lt;&sol;p&gt;&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 875, columnsCount = 2&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;surname: String&bsol;&quot;&gt;surname&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;Andersson&quot;,&quot;Sage&quot;,&quot;Asplund&quot;,&quot;Goodwin&quot;,&quot;Davies&quot;,&quot;Brown&quot;,&quot;Carter&quot;,&quot;Fortune&quot;,&quot;Smith&quot;,&quot;Ford&quot;,&quot;Johnson&quot;,&quot;Panula&quot;,&quot;Rice&quot;,&quot;Skoog&quot;,&quot;Ryerson&quot;,&quot;Williams&quot;,&quot;Kelly&quot;,&quot;Lefebre&quot;,&quot;Palsson&quot;,&quot;Thomas&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;count: Int&bsol;&quot;&gt;count&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;11&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;11&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;8&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;8&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;7&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;6&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;6&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;6&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;6&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;6&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;6&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;6&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;6&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;6&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;5&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;5&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;5&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;5&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;5&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;5&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870756, rootId: -536870756, totalRows: 875 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870756) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_67() {\n",
" let elem = document.getElementById(\"iframe_out_67\");\n",
" resize_iframe_out_67(elem);\n",
" setInterval(resize_iframe_out_67, 5000, elem);\n",
" }\n",
" function resize_iframe_out_67(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870755\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">surname</th><th class=\"bottomBorder\" style=\"text-align:left\">count</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">Andersson</td><td style=\"vertical-align:top\">11</td></tr><tr><td style=\"vertical-align:top\">Sage</td><td style=\"vertical-align:top\">11</td></tr><tr><td style=\"vertical-align:top\">Asplund</td><td style=\"vertical-align:top\">8</td></tr><tr><td style=\"vertical-align:top\">Goodwin</td><td style=\"vertical-align:top\">8</td></tr><tr><td style=\"vertical-align:top\">Davies</td><td style=\"vertical-align:top\">7</td></tr><tr><td style=\"vertical-align:top\">Brown</td><td style=\"vertical-align:top\">6</td></tr><tr><td style=\"vertical-align:top\">Carter</td><td style=\"vertical-align:top\">6</td></tr><tr><td style=\"vertical-align:top\">Fortune</td><td style=\"vertical-align:top\">6</td></tr><tr><td style=\"vertical-align:top\">Smith</td><td style=\"vertical-align:top\">6</td></tr><tr><td style=\"vertical-align:top\">Ford</td><td style=\"vertical-align:top\">6</td></tr><tr><td style=\"vertical-align:top\">Johnson</td><td style=\"vertical-align:top\">6</td></tr><tr><td style=\"vertical-align:top\">Panula</td><td style=\"vertical-align:top\">6</td></tr><tr><td style=\"vertical-align:top\">Rice</td><td style=\"vertical-align:top\">6</td></tr><tr><td style=\"vertical-align:top\">Skoog</td><td style=\"vertical-align:top\">6</td></tr><tr><td style=\"vertical-align:top\">Ryerson</td><td style=\"vertical-align:top\">5</td></tr><tr><td style=\"vertical-align:top\">Williams</td><td style=\"vertical-align:top\">5</td></tr><tr><td style=\"vertical-align:top\">Kelly</td><td style=\"vertical-align:top\">5</td></tr><tr><td style=\"vertical-align:top\">Lefebre</td><td style=\"vertical-align:top\">5</td></tr><tr><td style=\"vertical-align:top\">Palsson</td><td style=\"vertical-align:top\">5</td></tr><tr><td style=\"vertical-align:top\">Thomas</td><td style=\"vertical-align:top\">5</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870755\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"surname\",\"count\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}],\"nrow\":875,\"ncol\":2},\"kotlin_dataframe\":[{\"surname\":\"Andersson\",\"count\":11},{\"surname\":\"Sage\",\"count\":11},{\"surname\":\"Asplund\",\"count\":8},{\"surname\":\"Goodwin\",\"count\":8},{\"surname\":\"Davies\",\"count\":7},{\"surname\":\"Brown\",\"count\":6},{\"surname\":\"Carter\",\"count\":6},{\"surname\":\"Fortune\",\"count\":6},{\"surname\":\"Smith\",\"count\":6},{\"surname\":\"Ford\",\"count\":6},{\"surname\":\"Johnson\",\"count\":6},{\"surname\":\"Panula\",\"count\":6},{\"surname\":\"Rice\",\"count\":6},{\"surname\":\"Skoog\",\"count\":6},{\"surname\":\"Ryerson\",\"count\":5},{\"surname\":\"Williams\",\"count\":5},{\"surname\":\"Kelly\",\"count\":5},{\"surname\":\"Lefebre\",\"count\":5},{\"surname\":\"Palsson\",\"count\":5},{\"surname\":\"Thomas\",\"count\":5}]}"
},
"execution_count": 50,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 50
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:39:10.135306Z",
"start_time": "2025-05-28T10:39:10.058231Z"
}
},
"source": [
"surnameDF.surname.countDistinct()"
],
"outputs": [
{
"data": {
"text/plain": [
"875"
]
},
"execution_count": 51,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 51
},
{
"cell_type": "code",
"metadata": {
"ExecuteTime": {
"end_time": "2025-05-28T10:39:15.528427Z",
"start_time": "2025-05-28T10:39:14.865640Z"
}
},
"source": [
"val firstSymbol by column<String>()\n",
"\n",
"df1\n",
" .add(firstSymbol) {\n",
" name.split(\".\")[0].split(\",\")[0].trim().first().toString()\n",
" }\n",
" .pivotMatches(firstSymbol)\n",
" .corr { firstSymbol }.with { survived }"
],
"outputs": [
{
"data": {
"text/html": [
" <iframe onload=\"o_resize_iframe_out_69()\" style=\"width:100%;\" class=\"result_container\" id=\"iframe_out_69\" frameBorder=\"0\" srcdoc=\" &lt;html theme='dark'&gt;\n",
" &lt;head&gt;\n",
" &lt;style type=&quot;text&sol;css&quot;&gt;\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody &gt; tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover &gt; td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"&sol;* formatting *&sol;\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
":root {\n",
" --scroll-bg: #f5f5f5;\n",
" --scroll-fg: #b3b3b3;\n",
"}\n",
":root[theme=&quot;dark&quot;], :root [data-jp-theme-light=&quot;false&quot;]{\n",
" --scroll-bg: #3c3c3c;\n",
" --scroll-fg: #97e1fb;\n",
"}\n",
"body {\n",
" scrollbar-color: var(--scroll-fg) var(--scroll-bg);\n",
"}\n",
"body::-webkit-scrollbar {\n",
" width: 10px; &sol;* Mostly for vertical scrollbars *&sol;\n",
" height: 10px; &sol;* Mostly for horizontal scrollbars *&sol;\n",
"}\n",
"body::-webkit-scrollbar-thumb {\n",
" background-color: var(--scroll-fg);\n",
"}\n",
"body::-webkit-scrollbar-track {\n",
" background-color: var(--scroll-bg);\n",
"}\n",
" &lt;&sol;style&gt;\n",
" &lt;&sol;head&gt;\n",
" &lt;body&gt;\n",
" &lt;table class=&quot;dataframe&quot; id=&quot;df_-536870752&quot;&gt;&lt;&sol;table&gt;\n",
"\n",
"&lt;p class=&quot;dataframe_description&quot;&gt;... showing only top 20 of 27 rows&lt;&sol;p&gt;&lt;p class=&quot;dataframe_description&quot;&gt;DataFrame: rowsCount = 27, columnsCount = 2&lt;&sol;p&gt;\n",
"\n",
" &lt;&sol;body&gt;\n",
" &lt;script&gt;\n",
" (function () {\n",
" window.DataFrame = window.DataFrame || new (function () {\n",
" this.addTable = function (df) {\n",
" let cols = df.cols;\n",
" for (let i = 0; i &lt; cols.length; i++) {\n",
" for (let c of cols[i].children) {\n",
" cols[c].parent = i;\n",
" }\n",
" }\n",
" df.nrow = 0\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" if (df.cols[i].values.length &gt; df.nrow) df.nrow = df.cols[i].values.length\n",
" }\n",
" if (df.id === df.rootId) {\n",
" df.expandedFrames = new Set()\n",
" df.childFrames = {}\n",
" const table = this.getTableElement(df.id)\n",
" table.df = df\n",
" for (let i = 0; i &lt; df.cols.length; i++) {\n",
" let col = df.cols[i]\n",
" if (col.parent === undefined &amp;&amp; col.children.length &gt; 0) col.expanded = true\n",
" }\n",
" } else {\n",
" const rootDf = this.getTableData(df.rootId)\n",
" rootDf.childFrames[df.id] = df\n",
" }\n",
" }\n",
"\n",
" this.computeRenderData = function (df) {\n",
" let result = []\n",
" let pos = 0\n",
" for (let col = 0; col &lt; df.cols.length; col++) {\n",
" if (df.cols[col].parent === undefined)\n",
" pos += this.computeRenderDataRec(df.cols, col, pos, 0, result, false, false)\n",
" }\n",
" for (let i = 0; i &lt; result.length; i++) {\n",
" let row = result[i]\n",
" for (let j = 0; j &lt; row.length; j++) {\n",
" let cell = row[j]\n",
" if (j === 0)\n",
" cell.leftBd = false\n",
" if (j &lt; row.length - 1) {\n",
" let nextData = row[j + 1]\n",
" if (nextData.leftBd) cell.rightBd = true\n",
" else if (cell.rightBd) nextData.leftBd = true\n",
" } else cell.rightBd = false\n",
" }\n",
" }\n",
" return result\n",
" }\n",
"\n",
" this.computeRenderDataRec = function (cols, colId, pos, depth, result, leftBorder, rightBorder) {\n",
" if (result.length === depth) {\n",
" const array = [];\n",
" if (pos &gt; 0) {\n",
" let j = 0\n",
" for (let i = 0; j &lt; pos; i++) {\n",
" let c = result[depth - 1][i]\n",
" j += c.span\n",
" let copy = Object.assign({empty: true}, c)\n",
" array.push(copy)\n",
" }\n",
" }\n",
" result.push(array)\n",
" }\n",
" const col = cols[colId];\n",
" let size = 0;\n",
" if (col.expanded) {\n",
" let childPos = pos\n",
" for (let i = 0; i &lt; col.children.length; i++) {\n",
" let child = col.children[i]\n",
" let childLeft = i === 0 &amp;&amp; (col.children.length &gt; 1 || leftBorder)\n",
" let childRight = i === col.children.length - 1 &amp;&amp; (col.children.length &gt; 1 || rightBorder)\n",
" let childSize = this.computeRenderDataRec(cols, child, childPos, depth + 1, result, childLeft, childRight)\n",
" childPos += childSize\n",
" size += childSize\n",
" }\n",
" } else {\n",
" for (let i = depth + 1; i &lt; result.length; i++)\n",
" result[i].push({id: colId, span: 1, leftBd: leftBorder, rightBd: rightBorder, empty: true})\n",
" size = 1\n",
" }\n",
" let left = leftBorder\n",
" let right = rightBorder\n",
" if (size &gt; 1) {\n",
" left = true\n",
" right = true\n",
" }\n",
" result[depth].push({id: colId, span: size, leftBd: left, rightBd: right})\n",
" return size\n",
" }\n",
"\n",
" this.getTableElement = function (id) {\n",
" return document.getElementById(&quot;df_&quot; + id)\n",
" }\n",
"\n",
" this.getTableData = function (id) {\n",
" return this.getTableElement(id).df\n",
" }\n",
"\n",
" this.createExpander = function (isExpanded) {\n",
" const svgNs = &quot;http:&sol;&sol;www.w3.org&sol;2000&sol;svg&quot;\n",
" let svg = document.createElementNS(svgNs, &quot;svg&quot;)\n",
" svg.classList.add(&quot;expanderSvg&quot;)\n",
" let path = document.createElementNS(svgNs, &quot;path&quot;)\n",
" if (isExpanded) {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;0 -2 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 4 4 4 -4 -1 -1 -3 3Z&quot;)\n",
" } else {\n",
" svg.setAttribute(&quot;viewBox&quot;, &quot;-2 0 8 8&quot;)\n",
" path.setAttribute(&quot;d&quot;, &quot;M1 0 l-1 1 3 3 -3 3 1 1 4 -4Z&quot;)\n",
" }\n",
" path.setAttribute(&quot;fill&quot;, &quot;currentColor&quot;)\n",
" svg.appendChild(path)\n",
" return svg\n",
" }\n",
"\n",
" this.renderTable = function (id) {\n",
"\n",
" let table = this.getTableElement(id)\n",
"\n",
" if (table === null) return\n",
"\n",
" table.innerHTML = &quot;&quot;\n",
"\n",
" let df = table.df\n",
" let rootDf = df.rootId === df.id ? df : this.getTableData(df.rootId)\n",
"\n",
" &sol;&sol; header\n",
" let header = document.createElement(&quot;thead&quot;)\n",
" table.appendChild(header)\n",
"\n",
" let renderData = this.computeRenderData(df)\n",
" for (let j = 0; j &lt; renderData.length; j++) {\n",
" let rowData = renderData[j]\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" let isLastRow = j === renderData.length - 1\n",
" header.appendChild(tr);\n",
" for (let i = 0; i &lt; rowData.length; i++) {\n",
" let cell = rowData[i]\n",
" let th = document.createElement(&quot;th&quot;);\n",
" th.setAttribute(&quot;colspan&quot;, cell.span)\n",
" let colId = cell.id\n",
" let col = df.cols[colId];\n",
" if (!cell.empty) {\n",
" if (col.children.length === 0) {\n",
" th.innerHTML = col.name\n",
" } else {\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" col.expanded = !col.expanded\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(col.expanded))\n",
" link.innerHTML += col.name\n",
" th.appendChild(link)\n",
" }\n",
" }\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (isLastRow)\n",
" classes += &quot; bottomBorder&quot;\n",
" if (classes.length &gt; 0)\n",
" th.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(th)\n",
" }\n",
" }\n",
"\n",
" &sol;&sol; body\n",
" let body = document.createElement(&quot;tbody&quot;)\n",
" table.appendChild(body)\n",
"\n",
" let columns = renderData.pop()\n",
" for (let row = 0; row &lt; df.nrow; row++) {\n",
" let tr = document.createElement(&quot;tr&quot;);\n",
" body.appendChild(tr)\n",
" for (let i = 0; i &lt; columns.length; i++) {\n",
" let cell = columns[i]\n",
" let td = document.createElement(&quot;td&quot;);\n",
" let colId = cell.id\n",
" let col = df.cols[colId]\n",
" let classes = (cell.leftBd ? &quot; leftBorder&quot; : &quot;&quot;) + (cell.rightBd ? &quot; rightBorder&quot; : &quot;&quot;)\n",
" if (col.rightAlign)\n",
" classes += &quot; rightAlign&quot;\n",
" if (classes.length &gt; 0)\n",
" td.setAttribute(&quot;class&quot;, classes)\n",
" tr.appendChild(td)\n",
" let value = col.values[row]\n",
" if (value.frameId !== undefined) {\n",
" let frameId = value.frameId\n",
" let expanded = rootDf.expandedFrames.has(frameId)\n",
" let link = document.createElement(&quot;a&quot;)\n",
" link.className = &quot;expander&quot;\n",
" let that = this\n",
" link.onclick = function () {\n",
" if (rootDf.expandedFrames.has(frameId))\n",
" rootDf.expandedFrames.delete(frameId)\n",
" else rootDf.expandedFrames.add(frameId)\n",
" that.renderTable(id)\n",
" }\n",
" link.appendChild(this.createExpander(expanded))\n",
" link.innerHTML += value.value\n",
" if (expanded) {\n",
" td.appendChild(link)\n",
" td.appendChild(document.createElement(&quot;p&quot;))\n",
" const childTable = document.createElement(&quot;table&quot;)\n",
" childTable.className = &quot;dataframe&quot;\n",
" childTable.id = &quot;df_&quot; + frameId\n",
" let childDf = rootDf.childFrames[frameId]\n",
" childTable.df = childDf\n",
" td.appendChild(childTable)\n",
" this.renderTable(frameId)\n",
" if (childDf.nrow !== childDf.totalRows) {\n",
" const footer = document.createElement(&quot;p&quot;)\n",
" footer.innerText = `... showing only top ${childDf.nrow} of ${childDf.totalRows} rows`\n",
" td.appendChild(footer)\n",
" }\n",
" } else {\n",
" td.appendChild(link)\n",
" }\n",
" } else if (value.style !== undefined) {\n",
" td.innerHTML = value.value\n",
" td.setAttribute(&quot;style&quot;, value.style)\n",
" } else td.innerHTML = value\n",
" this.nodeScriptReplace(td)\n",
" }\n",
" }\n",
" }\n",
"\n",
" this.nodeScriptReplace = function (node) {\n",
" if (this.nodeScriptIs(node) === true) {\n",
" node.parentNode.replaceChild(this.nodeScriptClone(node), node);\n",
" } else {\n",
" let i = -1, children = node.childNodes;\n",
" while (++i &lt; children.length) {\n",
" this.nodeScriptReplace(children[i]);\n",
" }\n",
" }\n",
"\n",
" return node;\n",
" }\n",
"\n",
" this.nodeScriptClone = function (node) {\n",
" let script = document.createElement(&quot;script&quot;);\n",
" script.text = node.innerHTML;\n",
"\n",
" let i = -1, attrs = node.attributes, attr;\n",
" while (++i &lt; attrs.length) {\n",
" script.setAttribute((attr = attrs[i]).name, attr.value);\n",
" }\n",
" return script;\n",
" }\n",
"\n",
" this.nodeScriptIs = function (node) {\n",
" return node.tagName === 'SCRIPT';\n",
" }\n",
" })()\n",
"\n",
" window.call_DataFrame = function (f) {\n",
" return f();\n",
" };\n",
"\n",
" let funQueue = window[&quot;kotlinQueues&quot;] &amp;&amp; window[&quot;kotlinQueues&quot;][&quot;DataFrame&quot;];\n",
" if (funQueue) {\n",
" funQueue.forEach(function (f) {\n",
" f();\n",
" });\n",
" funQueue = [];\n",
" }\n",
"})()\n",
"\n",
"&sol;*&lt;!--*&sol;\n",
"call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: &quot;&lt;span title=&bsol;&quot;firstSymbol: String&bsol;&quot;&gt;firstSymbol&lt;&sol;span&gt;&quot;, children: [], rightAlign: false, values: [&quot;A&quot;,&quot;B&quot;,&quot;C&quot;,&quot;D&quot;,&quot;E&quot;,&quot;F&quot;,&quot;G&quot;,&quot;H&quot;,&quot;I&quot;,&quot;J&quot;,&quot;K&quot;,&quot;L&quot;,&quot;M&quot;,&quot;N&quot;,&quot;O&quot;,&quot;P&quot;,&quot;R&quot;,&quot;S&quot;,&quot;T&quot;,&quot;U&quot;] }, \n",
"{ name: &quot;&lt;span title=&bsol;&quot;survived: Double&bsol;&quot;&gt;survived&lt;&sol;span&gt;&quot;, children: [], rightAlign: true, values: [&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.017914&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.050554&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.009037&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.051711&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.034629&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.000400&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.044483&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.042187&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.008329&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.026790&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.014219&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.021071&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.019041&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.028698&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.000128&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.058996&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.021941&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.020043&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;0.052264&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;,&quot;&lt;span class=&bsol;&quot;formatted&bsol;&quot; title=&bsol;&quot;&bsol;&quot;&gt;&lt;span class=&bsol;&quot;numbers&bsol;&quot;&gt;-0.021737&lt;&sol;span&gt;&lt;&sol;span&gt;&quot;] }, \n",
"], id: -536870752, rootId: -536870752, totalRows: 27 } ) });\n",
"&sol;*--&gt;*&sol;\n",
"\n",
"call_DataFrame(function() { DataFrame.renderTable(-536870752) });\n",
"\n",
"\n",
" &lt;&sol;script&gt;\n",
" &lt;&sol;html&gt;\"></iframe>\n",
" <script>\n",
" function o_resize_iframe_out_69() {\n",
" let elem = document.getElementById(\"iframe_out_69\");\n",
" resize_iframe_out_69(elem);\n",
" setInterval(resize_iframe_out_69, 5000, elem);\n",
" }\n",
" function resize_iframe_out_69(el) {\n",
" let h = el.contentWindow.document.body.scrollHeight;\n",
" el.height = h === 0 ? 0 : h + 41;\n",
" }\n",
" </script> <html theme='dark'>\n",
" <head>\n",
" <style type=\"text/css\">\n",
" :root {\n",
" --background: #fff;\n",
" --background-odd: #f5f5f5;\n",
" --background-hover: #d9edfd;\n",
" --header-text-color: #474747;\n",
" --text-color: #848484;\n",
" --text-color-dark: #000;\n",
" --text-color-medium: #737373;\n",
" --text-color-pale: #b3b3b3;\n",
" --inner-border-color: #aaa;\n",
" --bold-border-color: #000;\n",
" --link-color: #296eaa;\n",
" --link-color-pale: #296eaa;\n",
" --link-hover: #1a466c;\n",
"}\n",
"\n",
":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
" --background: #303030;\n",
" --background-odd: #3c3c3c;\n",
" --background-hover: #464646;\n",
" --header-text-color: #dddddd;\n",
" --text-color: #b3b3b3;\n",
" --text-color-dark: #dddddd;\n",
" --text-color-medium: #b2b2b2;\n",
" --text-color-pale: #737373;\n",
" --inner-border-color: #707070;\n",
" --bold-border-color: #777777;\n",
" --link-color: #008dc0;\n",
" --link-color-pale: #97e1fb;\n",
" --link-hover: #00688e;\n",
"}\n",
"\n",
"p.dataframe_description {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe {\n",
" font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
" font-size: 12px;\n",
" background-color: var(--background);\n",
" color: var(--text-color-dark);\n",
" border: none;\n",
" border-collapse: collapse;\n",
"}\n",
"\n",
"table.dataframe th, td {\n",
" padding: 6px;\n",
" border: 1px solid transparent;\n",
" text-align: left;\n",
"}\n",
"\n",
"table.dataframe th {\n",
" background-color: var(--background);\n",
" color: var(--header-text-color);\n",
"}\n",
"\n",
"table.dataframe td {\n",
" vertical-align: top;\n",
" white-space: nowrap;\n",
"}\n",
"\n",
"table.dataframe th.bottomBorder {\n",
" border-bottom-color: var(--bold-border-color);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(odd) {\n",
" background: var(--background-odd);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:nth-child(even) {\n",
" background: var(--background);\n",
"}\n",
"\n",
"table.dataframe tbody > tr:hover {\n",
" background: var(--background-hover);\n",
"}\n",
"\n",
"table.dataframe a {\n",
" cursor: pointer;\n",
" color: var(--link-color);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"table.dataframe tr:hover > td a {\n",
" color: var(--link-color-pale);\n",
"}\n",
"\n",
"table.dataframe a:hover {\n",
" color: var(--link-hover);\n",
" text-decoration: underline;\n",
"}\n",
"\n",
"table.dataframe img {\n",
" max-width: fit-content;\n",
"}\n",
"\n",
"table.dataframe th.complex {\n",
" background-color: var(--background);\n",
" border: 1px solid var(--background);\n",
"}\n",
"\n",
"table.dataframe .leftBorder {\n",
" border-left-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightBorder {\n",
" border-right-color: var(--inner-border-color);\n",
"}\n",
"\n",
"table.dataframe .rightAlign {\n",
" text-align: right;\n",
"}\n",
"\n",
"table.dataframe .expanderSvg {\n",
" width: 8px;\n",
" height: 8px;\n",
" margin-right: 3px;\n",
"}\n",
"\n",
"table.dataframe .expander {\n",
" display: flex;\n",
" align-items: center;\n",
"}\n",
"\n",
"/* formatting */\n",
"\n",
"table.dataframe .null {\n",
" color: var(--text-color-pale);\n",
"}\n",
"\n",
"table.dataframe .structural {\n",
" color: var(--text-color-medium);\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .dataFrameCaption {\n",
" font-weight: bold;\n",
"}\n",
"\n",
"table.dataframe .numbers {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe td:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"table.dataframe tr:hover .formatted .structural, .null {\n",
" color: var(--text-color-dark);\n",
"}\n",
"\n",
"\n",
" </style>\n",
" </head>\n",
" <body>\n",
" <table class=\"dataframe\" id=\"static_df_-536870751\"><thead><tr><th class=\"bottomBorder\" style=\"text-align:left\">firstSymbol</th><th class=\"bottomBorder\" style=\"text-align:left\">survived</th></tr></thead><tbody><tr><td style=\"vertical-align:top\">A</td><td style=\"vertical-align:top\">-0.017914</td></tr><tr><td style=\"vertical-align:top\">B</td><td style=\"vertical-align:top\">0.050554</td></tr><tr><td style=\"vertical-align:top\">C</td><td style=\"vertical-align:top\">0.009037</td></tr><tr><td style=\"vertical-align:top\">D</td><td style=\"vertical-align:top\">0.051711</td></tr><tr><td style=\"vertical-align:top\">E</td><td style=\"vertical-align:top\">-0.034629</td></tr><tr><td style=\"vertical-align:top\">F</td><td style=\"vertical-align:top\">0.000400</td></tr><tr><td style=\"vertical-align:top\">G</td><td style=\"vertical-align:top\">-0.044483</td></tr><tr><td style=\"vertical-align:top\">H</td><td style=\"vertical-align:top\">0.042187</td></tr><tr><td style=\"vertical-align:top\">I</td><td style=\"vertical-align:top\">-0.008329</td></tr><tr><td style=\"vertical-align:top\">J</td><td style=\"vertical-align:top\">-0.026790</td></tr><tr><td style=\"vertical-align:top\">K</td><td style=\"vertical-align:top\">-0.014219</td></tr><tr><td style=\"vertical-align:top\">L</td><td style=\"vertical-align:top\">-0.021071</td></tr><tr><td style=\"vertical-align:top\">M</td><td style=\"vertical-align:top\">0.019041</td></tr><tr><td style=\"vertical-align:top\">N</td><td style=\"vertical-align:top\">0.028698</td></tr><tr><td style=\"vertical-align:top\">O</td><td style=\"vertical-align:top\">0.000128</td></tr><tr><td style=\"vertical-align:top\">P</td><td style=\"vertical-align:top\">-0.058996</td></tr><tr><td style=\"vertical-align:top\">R</td><td style=\"vertical-align:top\">-0.021941</td></tr><tr><td style=\"vertical-align:top\">S</td><td style=\"vertical-align:top\">-0.020043</td></tr><tr><td style=\"vertical-align:top\">T</td><td style=\"vertical-align:top\">0.052264</td></tr><tr><td style=\"vertical-align:top\">U</td><td style=\"vertical-align:top\">-0.021737</td></tr></tbody></table>\n",
" </body>\n",
" <script>\n",
" document.getElementById(\"static_df_-536870751\").style.display = \"none\";\n",
" </script>\n",
" </html>"
],
"application/kotlindataframe+json": "{\"$version\":\"2.1.1\",\"metadata\":{\"columns\":[\"firstSymbol\",\"survived\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Double\"}],\"nrow\":27,\"ncol\":2},\"kotlin_dataframe\":[{\"firstSymbol\":\"A\",\"survived\":-0.01791352622509756},{\"firstSymbol\":\"B\",\"survived\":0.050553943254341316},{\"firstSymbol\":\"C\",\"survived\":0.009037371118975828},{\"firstSymbol\":\"D\",\"survived\":0.05171064357839075},{\"firstSymbol\":\"E\",\"survived\":-0.03462861880002389},{\"firstSymbol\":\"F\",\"survived\":4.002707178710613E-4},{\"firstSymbol\":\"G\",\"survived\":-0.044483069276203296},{\"firstSymbol\":\"H\",\"survived\":0.04218724210575963},{\"firstSymbol\":\"I\",\"survived\":-0.008329183461658642},{\"firstSymbol\":\"J\",\"survived\":-0.026790134975567197},{\"firstSymbol\":\"K\",\"survived\":-0.014218719831367379},{\"firstSymbol\":\"L\",\"survived\":-0.021070982850893608},{\"firstSymbol\":\"M\",\"survived\":0.019040748971095155},{\"firstSymbol\":\"N\",\"survived\":0.02869766040895532},{\"firstSymbol\":\"O\",\"survived\":1.2837933079428644E-4},{\"firstSymbol\":\"P\",\"survived\":-0.05899571294487214},{\"firstSymbol\":\"R\",\"survived\":-0.021940537137738973},{\"firstSymbol\":\"S\",\"survived\":-0.020042889901563117},{\"firstSymbol\":\"T\",\"survived\":0.05226413426840335},{\"firstSymbol\":\"U\",\"survived\":-0.0217373635753353}]}"
},
"execution_count": 52,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 52
},
{
"metadata": {},
"cell_type": "code",
"outputs": [],
"execution_count": null,
"source": ""
}
],
"metadata": {
"kernelspec": {
"display_name": "Kotlin",
"language": "kotlin",
"name": "kotlin"
},
"language_info": {
"codemirror_mode": "text/x-kotlin",
"file_extension": ".kt",
"mimetype": "text/x-kotlin",
"name": "kotlin",
"nbconvert_exporter": "",
"pygments_lexer": "kotlin",
"version": "1.8.20-Beta"
},
"ktnbPluginMetadata": {
"projectLibraries": []
}
},
"nbformat": 4,
"nbformat_minor": 1
}