Files
greater_tables_project/tests/tables.html
T
2025-03-17 08:10:04 +00:00

3194 lines
162 KiB
HTML

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
<meta charset="utf-8">
<meta name="generator" content="quarto-1.6.36">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<meta name="author" content="Stephen J. Mildenhall">
<meta name="dcterms.date" content="2025-03-14">
<title>All Tables Test - New TestDFGenerator test_suite</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
div.column{flex: auto; overflow-x: auto;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
ul.task-list li input[type="checkbox"] {
width: 0.8em;
margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
vertical-align: middle;
}
/* CSS for syntax highlighting */
pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.sourceCode { overflow: visible; }
code.sourceCode > span { color: inherit; text-decoration: inherit; }
div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; }
@media screen {
div.sourceCode { overflow: auto; }
}
@media print {
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; }
}
pre.numberSource code
{ counter-reset: source-line 0; }
pre.numberSource code > span
{ position: relative; left: -4em; counter-increment: source-line; }
pre.numberSource code > span > a:first-child::before
{ content: counter(source-line);
position: relative; left: -1em; text-align: right; vertical-align: baseline;
border: none; display: inline-block;
-webkit-touch-callout: none; -webkit-user-select: none;
-khtml-user-select: none; -moz-user-select: none;
-ms-user-select: none; user-select: none;
padding: 0 4px; width: 4em;
}
pre.numberSource { margin-left: 3em; padding-left: 4px; }
div.sourceCode
{ }
@media screen {
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js" integrity="sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg==" crossorigin="anonymous"></script><script src="tables_files/libs/clipboard/clipboard.min.js"></script>
<script src="tables_files/libs/quarto-html/quarto.js"></script>
<script src="tables_files/libs/quarto-html/popper.min.js"></script>
<script src="tables_files/libs/quarto-html/tippy.umd.min.js"></script>
<script src="tables_files/libs/quarto-html/anchor.min.js"></script>
<link href="tables_files/libs/quarto-html/tippy.css" rel="stylesheet">
<link href="tables_files/libs/quarto-html/quarto-syntax-highlighting-01c78b5cd655e4cd89133cf59d535862.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<script src="tables_files/libs/bootstrap/bootstrap.min.js"></script>
<link href="tables_files/libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
<link href="tables_files/libs/bootstrap/bootstrap-fcfb2e27d9f44eaf269ffcda1f840c64.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light">
<style>html{ scroll-behavior: smooth; }</style>
<link rel="icon" href="img/favicon.ico" type="image/x-icon">
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" integrity="sha512-c3Nl8+7g4LMSTdrm621y7kf9v3SDPnhxLNhcjFJbKECVnmZHTdo+IRO05sNLTH/D3vA6u1X32ehoLC7WFVdheg==" crossorigin="anonymous"></script>
<script type="application/javascript">define('jquery', [],function() {return window.jQuery;})</script>
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=es6"></script>
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js" type="text/javascript"></script>
<script type="text/javascript">
const typesetMath = (el) => {
if (window.MathJax) {
// MathJax Typeset
window.MathJax.typeset([el]);
} else if (window.katex) {
// KaTeX Render
var mathElements = el.getElementsByClassName("math");
var macros = [];
for (var i = 0; i < mathElements.length; i++) {
var texText = mathElements[i].firstChild;
if (mathElements[i].tagName == "SPAN") {
window.katex.render(texText.data, mathElements[i], {
displayMode: mathElements[i].classList.contains('display'),
throwOnError: false,
macros: macros,
fleqn: false
});
}
}
}
}
window.Quarto = {
typesetMath
};
</script>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div id="quarto-content" class="page-columns page-rows-contents page-layout-article">
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
<nav id="TOC" role="doc-toc" class="toc-active">
<h2 id="toc-title">In this chapter:</h2>
<ul>
<li><a href="#a-hard-rules-table" id="toc-a-hard-rules-table" class="nav-link active" data-scroll-target="#a-hard-rules-table"><span class="header-section-number">1</span> A Hard-Rules table</a></li>
<li><a href="#a-table-with-tex-content" id="toc-a-table-with-tex-content" class="nav-link" data-scroll-target="#a-table-with-tex-content"><span class="header-section-number">2</span> A Table with TeX Content</a></li>
<li><a href="#greater_tables-test-suite" id="toc-greater_tables-test-suite" class="nav-link" data-scroll-target="#greater_tables-test-suite"><span class="header-section-number">3</span> Greater_tables Test Suite</a>
<ul class="collapse">
<li><a href="#test-table-basic" id="toc-test-table-basic" class="nav-link" data-scroll-target="#test-table-basic"><span class="header-section-number">3.1</span> Test Table: basic</a></li>
<li><a href="#test-table-timeseries" id="toc-test-table-timeseries" class="nav-link" data-scroll-target="#test-table-timeseries"><span class="header-section-number">3.2</span> Test Table: timeseries</a></li>
<li><a href="#test-table-multiindex" id="toc-test-table-multiindex" class="nav-link" data-scroll-target="#test-table-multiindex"><span class="header-section-number">3.3</span> Test Table: multiindex</a></li>
<li><a href="#test-table-multicolumns" id="toc-test-table-multicolumns" class="nav-link" data-scroll-target="#test-table-multicolumns"><span class="header-section-number">3.4</span> Test Table: multicolumns</a></li>
<li><a href="#test-table-complex" id="toc-test-table-complex" class="nav-link" data-scroll-target="#test-table-complex"><span class="header-section-number">3.5</span> Test Table: complex</a></li>
</ul></li>
<li><a href="#other-input-formats" id="toc-other-input-formats" class="nav-link" data-scroll-target="#other-input-formats"><span class="header-section-number">4</span> Other input formats</a>
<ul class="collapse">
<li><a href="#markown" id="toc-markown" class="nav-link" data-scroll-target="#markown"><span class="header-section-number">4.1</span> Markown</a></li>
<li><a href="#list-of-lists" id="toc-list-of-lists" class="nav-link" data-scroll-target="#list-of-lists"><span class="header-section-number">4.2</span> List of lists</a></li>
</ul></li>
</ul>
<div class="quarto-alternate-formats"><h2>Other Formats</h2><ul><li><a href="tables.pdf"><i class="bi bi-file-pdf"></i>PDF</a></li></ul></div></nav>
</div>
<main class="content" id="quarto-document-content">
<header id="title-block-header" class="quarto-title-block default">
<div class="quarto-title">
<h1 class="title">All Tables Test - New TestDFGenerator test_suite</h1>
</div>
<div class="quarto-title-meta">
<div>
<div class="quarto-title-meta-heading">Author</div>
<div class="quarto-title-meta-contents">
<p>Stephen J. Mildenhall <a href="mailto:mynl@me.com" class="quarto-title-author-email"><i class="bi bi-envelope"></i></a> <a href="https://orcid.org/0000-0001-6956-0098" class="quarto-title-author-orcid"> <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo1N0NEMjA4MDI1MjA2ODExOTk0QzkzNTEzRjZEQTg1NyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozM0NDOEJGNEZGNTcxMUUxODdBOEVCODg2RjdCQ0QwOSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozM0NDOEJGM0ZGNTcxMUUxODdBOEVCODg2RjdCQ0QwOSIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkZDN0YxMTc0MDcyMDY4MTE5NUZFRDc5MUM2MUUwNEREIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjU3Q0QyMDgwMjUyMDY4MTE5OTRDOTM1MTNGNkRBODU3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+84NovQAAAR1JREFUeNpiZEADy85ZJgCpeCB2QJM6AMQLo4yOL0AWZETSqACk1gOxAQN+cAGIA4EGPQBxmJA0nwdpjjQ8xqArmczw5tMHXAaALDgP1QMxAGqzAAPxQACqh4ER6uf5MBlkm0X4EGayMfMw/Pr7Bd2gRBZogMFBrv01hisv5jLsv9nLAPIOMnjy8RDDyYctyAbFM2EJbRQw+aAWw/LzVgx7b+cwCHKqMhjJFCBLOzAR6+lXX84xnHjYyqAo5IUizkRCwIENQQckGSDGY4TVgAPEaraQr2a4/24bSuoExcJCfAEJihXkWDj3ZAKy9EJGaEo8T0QSxkjSwORsCAuDQCD+QILmD1A9kECEZgxDaEZhICIzGcIyEyOl2RkgwAAhkmC+eAm0TAAAAABJRU5ErkJggg=="></a></p>
</div>
</div>
<div>
<div class="quarto-title-meta-heading">Published</div>
<div class="quarto-title-meta-contents">
<p class="date">March 14, 2025</p>
</div>
</div>
</div>
</header>
<div id="setup" class="cell" data-execution_count="1">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb1"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="im">from</span> IPython.display <span class="im">import</span> HTML, display</span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> matplotlib <span class="im">as</span> mpl</span>
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> matplotlib.dates <span class="im">as</span> mdates</span>
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> matplotlib.pyplot <span class="im">as</span> plt</span>
<span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> numpy <span class="im">as</span> np</span>
<span id="cb1-6"><a href="#cb1-6" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> pandas <span class="im">as</span> pd</span>
<span id="cb1-7"><a href="#cb1-7" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb1-8"><a href="#cb1-8" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> greater_tables <span class="im">as</span> gter</span>
<span id="cb1-9"><a href="#cb1-9" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> greater_tables.utilities <span class="im">as</span> gtu</span>
<span id="cb1-10"><a href="#cb1-10" aria-hidden="true" tabindex="-1"></a><span class="im">from</span> greater_tables <span class="im">import</span> GT, sGT</span>
<span id="cb1-11"><a href="#cb1-11" aria-hidden="true" tabindex="-1"></a>gter.logger.setLevel(gter.logging.WARNING)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
</div>
<p>…code build completed.</p>
<section id="a-hard-rules-table" class="level1" data-number="1">
<h1 data-number="1"><span class="header-section-number">1</span> A Hard-Rules table</h1>
<p>Second level index has mixed types. Range of magnitudes. Picking out years.</p>
<div class="cell" data-execution_count="2">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb2"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>level_1 <span class="op">=</span> [<span class="st">"A"</span>, <span class="st">"A"</span>, <span class="st">"B"</span>, <span class="st">"B"</span>, <span class="st">'C'</span>]</span>
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a>level_2 <span class="op">=</span> [<span class="st">'Int'</span>, <span class="st">'Float'</span>, <span class="st">'Float'</span>, <span class="dv">3</span>, <span class="st">'Longer Text'</span>]</span>
<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb2-4"><a href="#cb2-4" aria-hidden="true" tabindex="-1"></a>multi_index <span class="op">=</span> pd.MultiIndex.from_arrays([level_1, level_2],</span>
<span id="cb2-5"><a href="#cb2-5" aria-hidden="true" tabindex="-1"></a> names<span class="op">=</span>[<span class="st">"Level 1"</span>, <span class="st">"Level 2"</span>])</span>
<span id="cb2-6"><a href="#cb2-6" aria-hidden="true" tabindex="-1"></a>start <span class="op">=</span> pd.Timestamp.today().normalize() <span class="co"># Today's date, normalized to midnight</span></span>
<span id="cb2-7"><a href="#cb2-7" aria-hidden="true" tabindex="-1"></a>end <span class="op">=</span> pd.Timestamp(<span class="ss">f"</span><span class="sc">{</span>start<span class="sc">.</span>year<span class="sc">}</span><span class="ss">-12-31"</span>) <span class="co"># End of the year</span></span>
<span id="cb2-8"><a href="#cb2-8" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb2-9"><a href="#cb2-9" aria-hidden="true" tabindex="-1"></a>hard <span class="op">=</span> pd.DataFrame(</span>
<span id="cb2-10"><a href="#cb2-10" aria-hidden="true" tabindex="-1"></a>{<span class="st">'years!'</span>: np.arange(<span class="dv">2000</span>, <span class="dv">2025</span>, dtype<span class="op">=</span><span class="bu">int</span>),</span>
<span id="cb2-11"><a href="#cb2-11" aria-hidden="true" tabindex="-1"></a><span class="st">'a'</span>: np.array(np.<span class="bu">round</span>(np.linspace(<span class="op">-</span><span class="dv">100000</span>, <span class="dv">100000</span>, <span class="dv">25</span>), <span class="dv">0</span>), dtype<span class="op">=</span><span class="bu">int</span>),</span>
<span id="cb2-12"><a href="#cb2-12" aria-hidden="true" tabindex="-1"></a><span class="st">'b'</span>: <span class="fl">9.3</span> <span class="op">**</span> np.linspace(<span class="op">-</span><span class="dv">12</span>, <span class="dv">12</span>, <span class="dv">25</span>),</span>
<span id="cb2-13"><a href="#cb2-13" aria-hidden="true" tabindex="-1"></a><span class="st">'c'</span>: np.linspace(<span class="op">-</span><span class="dv">1601</span>, <span class="dv">4000</span>, <span class="dv">25</span>),</span>
<span id="cb2-14"><a href="#cb2-14" aria-hidden="true" tabindex="-1"></a><span class="st">'d'</span>: pd.date_range(start<span class="op">=</span>start, end<span class="op">=</span>end, periods<span class="op">=</span><span class="dv">25</span>),</span>
<span id="cb2-15"><a href="#cb2-15" aria-hidden="true" tabindex="-1"></a><span class="st">'e'</span>: (<span class="st">'once upon a time, risk is hard to define, not in Kansas anymore, '</span></span>
<span id="cb2-16"><a href="#cb2-16" aria-hidden="true" tabindex="-1"></a> <span class="st">'neutrinos are hard to detect, '</span></span>
<span id="cb2-17"><a href="#cb2-17" aria-hidden="true" tabindex="-1"></a> <span class="st">'Adam Smith is the father of economics'</span>.split(<span class="st">','</span>) <span class="op">*</span> <span class="dv">5</span>)</span>
<span id="cb2-18"><a href="#cb2-18" aria-hidden="true" tabindex="-1"></a>}).set_index(<span class="st">'years!'</span>)</span>
<span id="cb2-19"><a href="#cb2-19" aria-hidden="true" tabindex="-1"></a><span class="co"># hard = hard.head()</span></span>
<span id="cb2-20"><a href="#cb2-20" aria-hidden="true" tabindex="-1"></a>hard.columns <span class="op">=</span> multi_index</span>
<span id="cb2-21"><a href="#cb2-21" aria-hidden="true" tabindex="-1"></a>hard</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div id="tbl-hard-rules" class="cell quarto-float quarto-figure quarto-figure-left anchored" data-execution_count="2">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-hard-rules-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;1: Default display output (Quarto generated caption)
</figcaption>
<div aria-describedby="tbl-hard-rules-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output cell-output-display" data-execution_count="2">
<div>
<table class="dataframe table table-sm table-striped small">
<thead>
<tr>
<th>Level 1</th>
<th colspan="2" halign="left">A</th>
<th colspan="2" halign="left">B</th>
<th>C</th>
</tr>
<tr>
<th>Level 2</th>
<th>Int</th>
<th>Float</th>
<th>Float</th>
<th>3</th>
<th>Longer Text</th>
</tr>
<tr>
<th>years!</th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<th>2000</th>
<td>-100000</td>
<td>2.388937e-12</td>
<td>-1601.000</td>
<td>2025-03-14 00:00:00</td>
<td>once upon a time</td>
</tr>
<tr>
<th>2001</th>
<td>-91667</td>
<td>2.221711e-11</td>
<td>-1367.625</td>
<td>2025-03-26 04:00:00</td>
<td>risk is hard to define</td>
</tr>
<tr>
<th>2002</th>
<td>-83333</td>
<td>2.066191e-10</td>
<td>-1134.250</td>
<td>2025-04-07 08:00:00</td>
<td>not in Kansas anymore</td>
</tr>
<tr>
<th>2003</th>
<td>-75000</td>
<td>1.921558e-09</td>
<td>-900.875</td>
<td>2025-04-19 12:00:00</td>
<td>neutrinos are hard to detect</td>
</tr>
<tr>
<th>2004</th>
<td>-66667</td>
<td>1.787049e-08</td>
<td>-667.500</td>
<td>2025-05-01 16:00:00</td>
<td>Adam Smith is the father of economics</td>
</tr>
<tr>
<th>2005</th>
<td>-58333</td>
<td>1.661955e-07</td>
<td>-434.125</td>
<td>2025-05-13 20:00:00</td>
<td>once upon a time</td>
</tr>
<tr>
<th>2006</th>
<td>-50000</td>
<td>1.545619e-06</td>
<td>-200.750</td>
<td>2025-05-26 00:00:00</td>
<td>risk is hard to define</td>
</tr>
<tr>
<th>2007</th>
<td>-41667</td>
<td>1.437425e-05</td>
<td>32.625</td>
<td>2025-06-07 04:00:00</td>
<td>not in Kansas anymore</td>
</tr>
<tr>
<th>2008</th>
<td>-33333</td>
<td>1.336805e-04</td>
<td>266.000</td>
<td>2025-06-19 08:00:00</td>
<td>neutrinos are hard to detect</td>
</tr>
<tr>
<th>2009</th>
<td>-25000</td>
<td>1.243229e-03</td>
<td>499.375</td>
<td>2025-07-01 12:00:00</td>
<td>Adam Smith is the father of economics</td>
</tr>
<tr>
<th>2010</th>
<td>-16667</td>
<td>1.156203e-02</td>
<td>732.750</td>
<td>2025-07-13 16:00:00</td>
<td>once upon a time</td>
</tr>
<tr>
<th>2011</th>
<td>-8333</td>
<td>1.075269e-01</td>
<td>966.125</td>
<td>2025-07-25 20:00:00</td>
<td>risk is hard to define</td>
</tr>
<tr>
<th>2012</th>
<td>0</td>
<td>1.000000e+00</td>
<td>1199.500</td>
<td>2025-08-07 00:00:00</td>
<td>not in Kansas anymore</td>
</tr>
<tr>
<th>2013</th>
<td>8333</td>
<td>9.300000e+00</td>
<td>1432.875</td>
<td>2025-08-19 04:00:00</td>
<td>neutrinos are hard to detect</td>
</tr>
<tr>
<th>2014</th>
<td>16667</td>
<td>8.649000e+01</td>
<td>1666.250</td>
<td>2025-08-31 08:00:00</td>
<td>Adam Smith is the father of economics</td>
</tr>
<tr>
<th>2015</th>
<td>25000</td>
<td>8.043570e+02</td>
<td>1899.625</td>
<td>2025-09-12 12:00:00</td>
<td>once upon a time</td>
</tr>
<tr>
<th>2016</th>
<td>33333</td>
<td>7.480520e+03</td>
<td>2133.000</td>
<td>2025-09-24 16:00:00</td>
<td>risk is hard to define</td>
</tr>
<tr>
<th>2017</th>
<td>41667</td>
<td>6.956884e+04</td>
<td>2366.375</td>
<td>2025-10-06 20:00:00</td>
<td>not in Kansas anymore</td>
</tr>
<tr>
<th>2018</th>
<td>50000</td>
<td>6.469902e+05</td>
<td>2599.750</td>
<td>2025-10-19 00:00:00</td>
<td>neutrinos are hard to detect</td>
</tr>
<tr>
<th>2019</th>
<td>58333</td>
<td>6.017009e+06</td>
<td>2833.125</td>
<td>2025-10-31 04:00:00</td>
<td>Adam Smith is the father of economics</td>
</tr>
<tr>
<th>2020</th>
<td>66667</td>
<td>5.595818e+07</td>
<td>3066.500</td>
<td>2025-11-12 08:00:00</td>
<td>once upon a time</td>
</tr>
<tr>
<th>2021</th>
<td>75000</td>
<td>5.204111e+08</td>
<td>3299.875</td>
<td>2025-11-24 12:00:00</td>
<td>risk is hard to define</td>
</tr>
<tr>
<th>2022</th>
<td>83333</td>
<td>4.839823e+09</td>
<td>3533.250</td>
<td>2025-12-06 16:00:00</td>
<td>not in Kansas anymore</td>
</tr>
<tr>
<th>2023</th>
<td>91667</td>
<td>4.501035e+10</td>
<td>3766.625</td>
<td>2025-12-18 20:00:00</td>
<td>neutrinos are hard to detect</td>
</tr>
<tr>
<th>2024</th>
<td>100000</td>
<td>4.185963e+11</td>
<td>4000.000</td>
<td>2025-12-31 00:00:00</td>
<td>Adam Smith is the father of economics</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</figure>
</div>
</div>
<p><a href="#tbl-hard-rules" class="quarto-xref">Table&nbsp;1</a> shows the default output and <a href="#tbl-hard-rules-2" class="quarto-xref">Table&nbsp;2</a> the <code>sGT</code> format output.</p>
<div class="cell" data-execution_count="3">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb3"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a>sGT(hard, <span class="st">'A table with varied columns.'</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div id="tbl-hard-rules-2" class="cell quarto-float quarto-figure quarto-figure-left anchored" data-execution_count="3">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-hard-rules-2-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;2: Greater Tables output (Quarto generated caption)
</figcaption>
<div aria-describedby="tbl-hard-rules-2-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output cell-output-display" data-execution_count="3">
<div class="greater-table">
<style>#T26QLX72DD3UK { border-collapse: collapse; font-family: "Roboto", "Open Sans Condensed", "Arial", 'Segoe UI', sans-serif; font-size: 0.8em; width: auto; margin: 10px auto; border: none; overflow: auto; margin-left: auto; margin-right: auto; } #T26QLX72DD3UK caption { padding: 2px 10px 1px 10px; font-size: 0.88em; text-align: center; font-weight: normal; caption-side: top; } #T26QLX72DD3UK thead { border-top: 1px solid #000; border-bottom: 1px solid #000; font-size: 0.88em; } #T26QLX72DD3UK tbody { border-bottom: 1px solid #000; } #T26QLX72DD3UK th { vertical-align: bottom; padding: 2px 10px 2px 10px; } #T26QLX72DD3UK td { padding: 1px 10px 1px 10px; vertical-align: top; } #T26QLX72DD3UK .grt-hrule-0 { border-top: 0px solid #000; } #T26QLX72DD3UK .grt-hrule-1 { border-top: 0px solid #000; } #T26QLX72DD3UK .grt-hrule-2 { border-top: 0px solid #000; } #T26QLX72DD3UK .grt-bhrule-0 { border-bottom: 1.5px solid #000; } #T26QLX72DD3UK .grt-bhrule-1 { border-bottom: 1px solid #000; } #T26QLX72DD3UK .grt-vrule-index { border-left: 1.5px solid #000; } #T26QLX72DD3UK .grt-vrule-0 { border-left: 1.5px solid #000; } #T26QLX72DD3UK .grt-vrule-1 { border-left: 1px solid #000; } #T26QLX72DD3UK .grt-vrule-2 { border-left: 0.5px solid #000; } #T26QLX72DD3UK .grt-left { text-align: left; } #T26QLX72DD3UK .grt-center { text-align: center; } #T26QLX72DD3UK .grt-right { text-align: right; font-variant-numeric: tabular-nums; } #T26QLX72DD3UK .grt-head { font-family: "Times New Roman", 'Courier New'; font-size: 0.88em; } #T26QLX72DD3UK .grt-bold { font-weight: bold; }</style>
<table id="T26QLX72DD3UK">
<caption>A table with varied columns.</caption>
<colgroup>
<col style="width: 3.0em;">
<col style="width: 4.0em;">
<col style="width: 4.5em;">
<col style="width: 4.5em;">
<col style="width: 5.0em;">
<col style="width: 19.5em;">
</colgroup>
<thead>
<tr>
<th class="grt-left"></th>
<th class="grt-center grt-bhrule-0 grt-vrule-index" colspan="2">A</th>
<th class="grt-center grt-bhrule-0 grt-vrule-0" colspan="2">B</th>
<th class="grt-center grt-bhrule-0 grt-vrule-0" colspan="1">C</th>
</tr>
<tr>
<th class="grt-left">years!</th>
<th class="grt-center grt-vrule-index" colspan="1">Int</th>
<th class="grt-center grt-vrule-1" colspan="1">Float</th>
<th class="grt-center grt-vrule-0" colspan="1">Float</th>
<th class="grt-center grt-vrule-1" colspan="1">3</th>
<th class="grt-center grt-vrule-0" colspan="1">Longer Text</th>
</tr>
</thead>
<tbody>
<tr>
<td class="grt-left">2000</td>
<td class="grt-right grt-vrule-index">-100,000</td>
<td class="grt-right grt-vrule-1"> 2.389p</td>
<td class="grt-right grt-vrule-0">-1,601.00</td>
<td class="grt-center grt-vrule-1">2025-03-14</td>
<td class="grt-left grt-vrule-0">once upon a time</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2001</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">-91,667</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 22.217p</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">-1,367.62</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-03-26</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> risk is hard to define</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2002</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">-83,333</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 206.619p</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">-1,134.25</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-04-07</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> not in Kansas anymore</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2003</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">-75,000</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 1.922n</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">-900.88</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-04-19</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> neutrinos are hard to detect</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2004</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">-66,667</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 17.870n</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">-667.50</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-05-01</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> Adam Smith is the father of economics</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2005</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">-58,333</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 166.196n</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">-434.12</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-05-13</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">once upon a time</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2006</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">-50,000</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 1.546u</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">-200.75</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-05-26</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> risk is hard to define</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2007</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">-41,667</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 14.374u</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">32.62</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-06-07</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> not in Kansas anymore</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2008</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">-33,333</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 133.681u</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">266.00</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-06-19</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> neutrinos are hard to detect</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2009</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">-25,000</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 1.243m</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">499.38</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-07-01</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> Adam Smith is the father of economics</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2010</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">-16,667</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 11.562m</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">732.75</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-07-13</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">once upon a time</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2011</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">-8,333</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 107.527m</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">966.12</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-07-25</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> risk is hard to define</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2012</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">0</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 1.000</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">1,199.50</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-08-07</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> not in Kansas anymore</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2013</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">8,333</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 9.300</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">1,432.88</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-08-19</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> neutrinos are hard to detect</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2014</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">16,667</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 86.490</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">1,666.25</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-08-31</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> Adam Smith is the father of economics</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2015</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">25,000</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 804.357</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">1,899.62</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-09-12</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">once upon a time</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2016</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">33,333</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 7.481k</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">2,133.00</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-09-24</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> risk is hard to define</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2017</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">41,667</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 69.569k</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">2,366.38</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-10-06</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> not in Kansas anymore</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2018</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">50,000</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 646.990k</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">2,599.75</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-10-19</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> neutrinos are hard to detect</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2019</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">58,333</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 6.017M</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">2,833.12</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-10-31</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> Adam Smith is the father of economics</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2020</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">66,667</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 55.958M</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">3,066.50</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-11-12</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">once upon a time</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2021</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">75,000</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 520.411M</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">3,299.88</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-11-24</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> risk is hard to define</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2022</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">83,333</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 4.840G</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">3,533.25</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-12-06</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> not in Kansas anymore</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2023</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">91,667</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 45.010G</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">3,766.62</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-12-18</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> neutrinos are hard to detect</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2024</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">100,000</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 418.596G</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">4,000.00</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-12-31</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> Adam Smith is the father of economics</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</figure>
</div>
</div>
<p>Here are some alternatives:</p>
<ul>
<li><a href="#tbl-hard-rules-3a" class="quarto-xref">Table&nbsp;3</a> hrules no vrules</li>
<li><a href="#tbl-hard-rules-3b" class="quarto-xref">Table&nbsp;4</a> change date and integer formats and</li>
<li><a href="#tbl-hard-rules-3c" class="quarto-xref">Table&nbsp;5</a> change padding and debug mode.</li>
</ul>
<div class="cell" data-execution_count="4">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb4"><pre class="sourceCode markdown code-with-copy"><code class="sourceCode markdown"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="in">```{python}</span></span>
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a><span class="in">#| label: tbl-hard-rules-3a</span></span>
<span id="cb4-3"><a href="#cb4-3" aria-hidden="true" tabindex="-1"></a><span class="in">#| tbl-cap: No V rules but hrules (Quarto generated caption)</span></span>
<span id="cb4-4"><a href="#cb4-4" aria-hidden="true" tabindex="-1"></a><span class="in">display(sGT(hard.sample(5).sort_index(),</span></span>
<span id="cb4-5"><a href="#cb4-5" aria-hidden="true" tabindex="-1"></a><span class="in"> caption='GT caption No v rules, but h rules',</span></span>
<span id="cb4-6"><a href="#cb4-6" aria-hidden="true" tabindex="-1"></a><span class="in"> vrule_widths=(0,0,0),</span></span>
<span id="cb4-7"><a href="#cb4-7" aria-hidden="true" tabindex="-1"></a><span class="in"> hrule_widths=(1,0,0)))</span></span>
<span id="cb4-8"><a href="#cb4-8" aria-hidden="true" tabindex="-1"></a><span class="in">```</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div id="tbl-hard-rules-3a" class="cell quarto-float quarto-figure quarto-figure-left anchored" data-execution_count="4">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-hard-rules-3a-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;3: No V rules but hrules (Quarto generated caption)
</figcaption>
<div aria-describedby="tbl-hard-rules-3a-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output cell-output-display">
<div class="greater-table">
<style>#TUMCULOC7AB35 { border-collapse: collapse; font-family: "Roboto", "Open Sans Condensed", "Arial", 'Segoe UI', sans-serif; font-size: 0.9em; width: auto; margin: 10px auto; border: none; overflow: auto; margin-left: auto; margin-right: auto; } #TUMCULOC7AB35 caption { padding: 8px 10px 4px 10px; font-size: 0.99em; text-align: center; font-weight: normal; caption-side: top; } #TUMCULOC7AB35 thead { border-top: 1px solid #000; border-bottom: 1px solid #000; font-size: 0.99em; } #TUMCULOC7AB35 tbody { border-bottom: 1px solid #000; } #TUMCULOC7AB35 th { vertical-align: bottom; padding: 8px 10px 8px 10px; } #TUMCULOC7AB35 td { padding: 4px 10px 4px 10px; vertical-align: top; } #TUMCULOC7AB35 .grt-hrule-0 { border-top: 1px solid #000; } #TUMCULOC7AB35 .grt-hrule-1 { border-top: 0px solid #000; } #TUMCULOC7AB35 .grt-hrule-2 { border-top: 0px solid #000; } #TUMCULOC7AB35 .grt-bhrule-0 { border-bottom: 0px solid #000; } #TUMCULOC7AB35 .grt-bhrule-1 { border-bottom: 0px solid #000; } #TUMCULOC7AB35 .grt-vrule-index { border-left: 1.5px solid #000; } #TUMCULOC7AB35 .grt-vrule-0 { border-left: 0px solid #000; } #TUMCULOC7AB35 .grt-vrule-1 { border-left: 0px solid #000; } #TUMCULOC7AB35 .grt-vrule-2 { border-left: 0px solid #000; } #TUMCULOC7AB35 .grt-left { text-align: left; } #TUMCULOC7AB35 .grt-center { text-align: center; } #TUMCULOC7AB35 .grt-right { text-align: right; font-variant-numeric: tabular-nums; } #TUMCULOC7AB35 .grt-head { font-family: "Times New Roman", 'Courier New'; font-size: 0.99em; } #TUMCULOC7AB35 .grt-bold { font-weight: bold; }</style>
<table id="TUMCULOC7AB35">
<caption>GT caption No v rules, but h rules</caption>
<colgroup>
<col style="width: 3.0em;">
<col style="width: 3.5em;">
<col style="width: 4.5em;">
<col style="width: 4.5em;">
<col style="width: 5.0em;">
<col style="width: 19.5em;">
</colgroup>
<thead>
<tr>
<th class="grt-left"></th>
<th class="grt-center grt-bhrule-0 grt-vrule-index" colspan="2">A</th>
<th class="grt-center grt-bhrule-0 grt-vrule-0" colspan="2">B</th>
<th class="grt-center grt-bhrule-0 grt-vrule-0" colspan="1">C</th>
</tr>
<tr>
<th class="grt-left">years!</th>
<th class="grt-center grt-vrule-index" colspan="1">Int</th>
<th class="grt-center grt-vrule-1" colspan="1">Float</th>
<th class="grt-center grt-vrule-0" colspan="1">Float</th>
<th class="grt-center grt-vrule-1" colspan="1">3</th>
<th class="grt-center grt-vrule-0" colspan="1">Longer Text</th>
</tr>
</thead>
<tbody>
<tr>
<td class="grt-left">2002</td>
<td class="grt-right grt-vrule-index">-83,333</td>
<td class="grt-right grt-vrule-1"> 206.619p</td>
<td class="grt-right grt-vrule-0">-1,134.25</td>
<td class="grt-center grt-vrule-1">2025-04-07</td>
<td class="grt-left grt-vrule-0"> not in Kansas anymore</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2004</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">-66,667</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 17.870n</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">-667.50</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-05-01</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> Adam Smith is the father of economics</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2015</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">25,000</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 804.357</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">1,899.62</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-09-12</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">once upon a time</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2018</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">50,000</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 646.990k</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">2,599.75</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-10-19</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> neutrinos are hard to detect</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2021</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">75,000</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 520.411M</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">3,299.88</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-11-24</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> risk is hard to define</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</figure>
</div>
</div>
<div class="cell" data-execution_count="5">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb5"><pre class="sourceCode markdown code-with-copy"><code class="sourceCode markdown"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="in">```{python}</span></span>
<span id="cb5-2"><a href="#cb5-2" aria-hidden="true" tabindex="-1"></a><span class="in">#| label: tbl-hard-rules-3b</span></span>
<span id="cb5-3"><a href="#cb5-3" aria-hidden="true" tabindex="-1"></a><span class="in">#| tbl-cap: Change date and integer formats (Quarto generated caption)</span></span>
<span id="cb5-4"><a href="#cb5-4" aria-hidden="true" tabindex="-1"></a><span class="in">display(sGT(hard.sample(5).sort_index(),</span></span>
<span id="cb5-5"><a href="#cb5-5" aria-hidden="true" tabindex="-1"></a><span class="in"> caption='Change default date and integer formats',</span></span>
<span id="cb5-6"><a href="#cb5-6" aria-hidden="true" tabindex="-1"></a><span class="in"> default_date_str='%m-%d', default_integer_str='[{x:d}]'))</span></span>
<span id="cb5-7"><a href="#cb5-7" aria-hidden="true" tabindex="-1"></a><span class="in">```</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div id="tbl-hard-rules-3b" class="cell quarto-float quarto-figure quarto-figure-left anchored" data-execution_count="5">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-hard-rules-3b-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;4: Change date and integer formats (Quarto generated caption)
</figcaption>
<div aria-describedby="tbl-hard-rules-3b-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output cell-output-display">
<div class="greater-table">
<style>#TZXVVBRTOOYUV { border-collapse: collapse; font-family: "Roboto", "Open Sans Condensed", "Arial", 'Segoe UI', sans-serif; font-size: 0.9em; width: auto; margin: 10px auto; border: none; overflow: auto; margin-left: auto; margin-right: auto; } #TZXVVBRTOOYUV caption { padding: 8px 10px 4px 10px; font-size: 0.99em; text-align: center; font-weight: normal; caption-side: top; } #TZXVVBRTOOYUV thead { border-top: 1px solid #000; border-bottom: 1px solid #000; font-size: 0.99em; } #TZXVVBRTOOYUV tbody { border-bottom: 1px solid #000; } #TZXVVBRTOOYUV th { vertical-align: bottom; padding: 8px 10px 8px 10px; } #TZXVVBRTOOYUV td { padding: 4px 10px 4px 10px; vertical-align: top; } #TZXVVBRTOOYUV .grt-hrule-0 { border-top: 0px solid #000; } #TZXVVBRTOOYUV .grt-hrule-1 { border-top: 0px solid #000; } #TZXVVBRTOOYUV .grt-hrule-2 { border-top: 0px solid #000; } #TZXVVBRTOOYUV .grt-bhrule-0 { border-bottom: 1.5px solid #000; } #TZXVVBRTOOYUV .grt-bhrule-1 { border-bottom: 1px solid #000; } #TZXVVBRTOOYUV .grt-vrule-index { border-left: 1.5px solid #000; } #TZXVVBRTOOYUV .grt-vrule-0 { border-left: 1.5px solid #000; } #TZXVVBRTOOYUV .grt-vrule-1 { border-left: 1px solid #000; } #TZXVVBRTOOYUV .grt-vrule-2 { border-left: 0.5px solid #000; } #TZXVVBRTOOYUV .grt-left { text-align: left; } #TZXVVBRTOOYUV .grt-center { text-align: center; } #TZXVVBRTOOYUV .grt-right { text-align: right; font-variant-numeric: tabular-nums; } #TZXVVBRTOOYUV .grt-head { font-family: "Times New Roman", 'Courier New'; font-size: 0.99em; } #TZXVVBRTOOYUV .grt-bold { font-weight: bold; }</style>
<table id="TZXVVBRTOOYUV">
<caption>Change default date and integer formats</caption>
<colgroup>
<col style="width: 3.0em;">
<col style="width: 4.0em;">
<col style="width: 4.5em;">
<col style="width: 4.0em;">
<col style="width: 4.0em;">
<col style="width: 14.5em;">
</colgroup>
<thead>
<tr>
<th class="grt-left"></th>
<th class="grt-center grt-bhrule-0 grt-vrule-index" colspan="2">A</th>
<th class="grt-center grt-bhrule-0 grt-vrule-0" colspan="2">B</th>
<th class="grt-center grt-bhrule-0 grt-vrule-0" colspan="1">C</th>
</tr>
<tr>
<th class="grt-left">years!</th>
<th class="grt-center grt-vrule-index" colspan="1">Int</th>
<th class="grt-center grt-vrule-1" colspan="1">Float</th>
<th class="grt-center grt-vrule-0" colspan="1">Float</th>
<th class="grt-center grt-vrule-1" colspan="1">3</th>
<th class="grt-center grt-vrule-0" colspan="1">Longer Text</th>
</tr>
</thead>
<tbody>
<tr>
<td class="grt-left">2003</td>
<td class="grt-right grt-vrule-index">[-75000]</td>
<td class="grt-right grt-vrule-1"> 1.922n</td>
<td class="grt-right grt-vrule-0">-900.88</td>
<td class="grt-center grt-vrule-1">04-19</td>
<td class="grt-left grt-vrule-0"> neutrinos are hard to detect</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2005</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">[-58333]</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 166.196n</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">-434.12</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">05-13</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">once upon a time</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2011</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">[-8333]</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 107.527m</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">966.12</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">07-25</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> risk is hard to define</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2018</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">[50000]</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 646.990k</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">2,599.75</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">10-19</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> neutrinos are hard to detect</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2023</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">[91667]</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 45.010G</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">3,766.62</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">12-18</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> neutrinos are hard to detect</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</figure>
</div>
</div>
<div class="cell" data-execution_count="6">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb6"><pre class="sourceCode markdown code-with-copy"><code class="sourceCode markdown"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a><span class="in">```{python}</span></span>
<span id="cb6-2"><a href="#cb6-2" aria-hidden="true" tabindex="-1"></a><span class="in">#| label: tbl-hard-rules-3c</span></span>
<span id="cb6-3"><a href="#cb6-3" aria-hidden="true" tabindex="-1"></a><span class="in">#| tbl-cap: Change padding and debug mode, boxes (Quarto generated caption)</span></span>
<span id="cb6-4"><a href="#cb6-4" aria-hidden="true" tabindex="-1"></a><span class="in">display(sGT(hard.sample(5).sort_index(),</span></span>
<span id="cb6-5"><a href="#cb6-5" aria-hidden="true" tabindex="-1"></a><span class="in"> caption='Change padding, debug mode lines',</span></span>
<span id="cb6-6"><a href="#cb6-6" aria-hidden="true" tabindex="-1"></a><span class="in"> padding_trbl=(10, 10, 20, 20), debug=True))</span></span>
<span id="cb6-7"><a href="#cb6-7" aria-hidden="true" tabindex="-1"></a><span class="in">```</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div id="tbl-hard-rules-3c" class="cell quarto-float quarto-figure quarto-figure-left anchored" data-execution_count="6">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-hard-rules-3c-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;5: Change padding and debug mode, boxes (Quarto generated caption)
</figcaption>
<div aria-describedby="tbl-hard-rules-3c-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output cell-output-display">
<div class="greater-table">
<style>
#TEEUJQBUI2GUC {
border-collapse: collapse;
font-family: "Roboto", "Open Sans Condensed", "Arial", 'Segoe UI', sans-serif;
font-size: 0.9em;
width: auto;
/* tb and lr
width: fit-content; */
margin: 10px auto;
border: none;
overflow: auto;
margin-left: auto;
margin-right: auto;
}
/* tag formats */
#TEEUJQBUI2GUC caption {
padding: 20px 10px 20px 20px;
font-size: 0.99em;
text-align: center;
font-weight: normal;
caption-side: top;
}
#TEEUJQBUI2GUC thead {
/* top and bottom of header */
border-top: 1px solid #0ff;
border-bottom: 1px solid #0ff;
font-size: 0.99em;
}
#TEEUJQBUI2GUC tbody {
/* bottom of body */
border-bottom: 1px solid #f0f;
}
#TEEUJQBUI2GUC th {
vertical-align: bottom;
padding: 20px 10px 40px 20px;
}
#TEEUJQBUI2GUC td {
/* top, right, bottom left cell padding */
padding: 10px 10px 20px 20px;
vertical-align: top;
}
/* class overrides */
#TEEUJQBUI2GUC .grt-hrule-0 {
border-top: 0px solid #f00;
}
#TEEUJQBUI2GUC .grt-hrule-1 {
border-top: 0px solid #b00;
}
#TEEUJQBUI2GUC .grt-hrule-2 {
border-top: 0px solid #900;
}
/* for the header, there if you have v lines you want h lines
hence use vrule_widths */
#TEEUJQBUI2GUC .grt-bhrule-0 {
border-bottom: 1.5px solid #f00;
}
#TEEUJQBUI2GUC .grt-bhrule-1 {
border-bottom: 1px solid #b00;
}
#TEEUJQBUI2GUC .grt-vrule-index {
border-left: 1.5px solid #0f0;
}
#TEEUJQBUI2GUC .grt-vrule-0 {
border-left: 1.5px solid #0f0;
}
#TEEUJQBUI2GUC .grt-vrule-1 {
border-left: 1px solid #0a0;
}
#TEEUJQBUI2GUC .grt-vrule-2 {
border-left: 0.5px solid #090;
}
#TEEUJQBUI2GUC .grt-left {
text-align: left;
}
#TEEUJQBUI2GUC .grt-center {
text-align: center;
}
#TEEUJQBUI2GUC .grt-right {
text-align: right;
font-variant-numeric: tabular-nums;
}
#TEEUJQBUI2GUC .grt-head {
font-family: "Times New Roman", 'Courier New';
font-size: 0.99em;
}
#TEEUJQBUI2GUC .grt-bold {
font-weight: bold;
}
</style>
<table id="TEEUJQBUI2GUC">
<caption>Change padding, debug mode lines (id: TEEUJQBUI2GUC)</caption>
<colgroup>
<col style="width: 3.0em;">
<col style="width: 3.5em;">
<col style="width: 4.5em;">
<col style="width: 4.0em;">
<col style="width: 5.0em;">
<col style="width: 19.5em;">
</colgroup>
<thead>
<tr>
<th class="grt-left"></th>
<th class="grt-center grt-bhrule-0 grt-vrule-index" colspan="2">A</th>
<th class="grt-center grt-bhrule-0 grt-vrule-0" colspan="2">B</th>
<th class="grt-center grt-bhrule-0 grt-vrule-0" colspan="1">C</th>
</tr>
<tr>
<th class="grt-left">years!</th>
<th class="grt-center grt-vrule-index" colspan="1">Int</th>
<th class="grt-center grt-vrule-1" colspan="1">Float</th>
<th class="grt-center grt-vrule-0" colspan="1">Float</th>
<th class="grt-center grt-vrule-1" colspan="1">3</th>
<th class="grt-center grt-vrule-0" colspan="1">Longer Text</th>
</tr>
</thead>
<tbody>
<tr>
<td class="grt-left">2004</td>
<td class="grt-right grt-vrule-index">-66,667</td>
<td class="grt-right grt-vrule-1"> 17.870n</td>
<td class="grt-right grt-vrule-0">-667.50</td>
<td class="grt-center grt-vrule-1">2025-05-01</td>
<td class="grt-left grt-vrule-0"> Adam Smith is the father of economics</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2006</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">-50,000</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 1.546u</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">-200.75</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-05-26</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> risk is hard to define</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2008</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">-33,333</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 133.681u</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">266.00</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-06-19</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> neutrinos are hard to detect</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2021</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">75,000</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 520.411M</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">3,299.88</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-11-24</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> risk is hard to define</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2022</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">83,333</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 4.840G</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">3,533.25</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2025-12-06</td>
<td class="grt-left grt-hrule-0 grt-vrule-0"> not in Kansas anymore</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</figure>
</div>
</div>
<p>Here is the raw HTML and LaTeX output.</p>
<div id="raw-output" class="cell" data-execution_count="7">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb7"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a>f <span class="op">=</span> sGT(hard.head(<span class="dv">4</span>), debug<span class="op">=</span><span class="va">True</span>)</span>
<span id="cb7-2"><a href="#cb7-2" aria-hidden="true" tabindex="-1"></a><span class="bu">print</span>(<span class="st">'HTML output</span><span class="ch">\n</span><span class="st">'</span>)</span>
<span id="cb7-3"><a href="#cb7-3" aria-hidden="true" tabindex="-1"></a><span class="bu">print</span>(f._repr_html_())</span>
<span id="cb7-4"><a href="#cb7-4" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb7-5"><a href="#cb7-5" aria-hidden="true" tabindex="-1"></a><span class="bu">print</span>(<span class="st">'</span><span class="ch">\n\n\n</span><span class="st">TeX output</span><span class="ch">\n</span><span class="st">'</span>)</span>
<span id="cb7-6"><a href="#cb7-6" aria-hidden="true" tabindex="-1"></a><span class="bu">print</span>(f._repr_latex_())</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div class="cell-output cell-output-stdout">
<pre><code>HTML output
&lt;div class="greater-table"&gt;
&lt;style&gt;
#TIPUZXJD7G5EM {
border-collapse: collapse;
font-family: "Roboto", "Open Sans Condensed", "Arial", 'Segoe UI', sans-serif;
font-size: 0.9em;
width: auto;
/* tb and lr
width: fit-content; */
margin: 10px auto;
border: none;
overflow: auto;
margin-left: auto;
margin-right: auto;
}
/* tag formats */
#TIPUZXJD7G5EM caption {
padding: 8px 10px 4px 10px;
font-size: 0.99em;
text-align: center;
font-weight: normal;
caption-side: top;
}
#TIPUZXJD7G5EM thead {
/* top and bottom of header */
border-top: 1px solid #0ff;
border-bottom: 1px solid #0ff;
font-size: 0.99em;
}
#TIPUZXJD7G5EM tbody {
/* bottom of body */
border-bottom: 1px solid #f0f;
}
#TIPUZXJD7G5EM th {
vertical-align: bottom;
padding: 8px 10px 8px 10px;
}
#TIPUZXJD7G5EM td {
/* top, right, bottom left cell padding */
padding: 4px 10px 4px 10px;
vertical-align: top;
}
/* class overrides */
#TIPUZXJD7G5EM .grt-hrule-0 {
border-top: 0px solid #f00;
}
#TIPUZXJD7G5EM .grt-hrule-1 {
border-top: 0px solid #b00;
}
#TIPUZXJD7G5EM .grt-hrule-2 {
border-top: 0px solid #900;
}
/* for the header, there if you have v lines you want h lines
hence use vrule_widths */
#TIPUZXJD7G5EM .grt-bhrule-0 {
border-bottom: 1.5px solid #f00;
}
#TIPUZXJD7G5EM .grt-bhrule-1 {
border-bottom: 1px solid #b00;
}
#TIPUZXJD7G5EM .grt-vrule-index {
border-left: 1.5px solid #0f0;
}
#TIPUZXJD7G5EM .grt-vrule-0 {
border-left: 1.5px solid #0f0;
}
#TIPUZXJD7G5EM .grt-vrule-1 {
border-left: 1px solid #0a0;
}
#TIPUZXJD7G5EM .grt-vrule-2 {
border-left: 0.5px solid #090;
}
#TIPUZXJD7G5EM .grt-left {
text-align: left;
}
#TIPUZXJD7G5EM .grt-center {
text-align: center;
}
#TIPUZXJD7G5EM .grt-right {
text-align: right;
font-variant-numeric: tabular-nums;
}
#TIPUZXJD7G5EM .grt-head {
font-family: "Times New Roman", 'Courier New';
font-size: 0.99em;
}
#TIPUZXJD7G5EM .grt-bold {
font-weight: bold;
}
&lt;/style&gt;
&lt;table id="TIPUZXJD7G5EM"&gt;
&lt;caption&gt; (id: TIPUZXJD7G5EM)&lt;/caption&gt;
&lt;colgroup&gt;
&lt;col style="width: 3.0em;"/&gt;
&lt;col style="width: 4.0em;"/&gt;
&lt;col style="width: 4.5em;"/&gt;
&lt;col style="width: 4.5em;"/&gt;
&lt;col style="width: 5.0em;"/&gt;
&lt;col style="width: 14.5em;"/&gt;
&lt;/colgroup&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th class="grt-left"&gt;&lt;/th&gt;
&lt;th class="grt-center grt-bhrule-0 grt-vrule-index" colspan="2"&gt;A&lt;/th&gt;
&lt;th class="grt-center grt-bhrule-0 grt-vrule-0" colspan="2"&gt;B&lt;/th&gt;
&lt;th class="grt-center grt-bhrule-0 grt-vrule-0" colspan="1"&gt;C&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;th class="grt-left"&gt;years!&lt;/th&gt;
&lt;th class="grt-center grt-vrule-index" colspan="1"&gt;Int&lt;/th&gt;
&lt;th class="grt-center grt-vrule-1" colspan="1"&gt;Float&lt;/th&gt;
&lt;th class="grt-center grt-vrule-0" colspan="1"&gt;Float&lt;/th&gt;
&lt;th class="grt-center grt-vrule-1" colspan="1"&gt;3&lt;/th&gt;
&lt;th class="grt-center grt-vrule-0" colspan="1"&gt;Longer Text&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td class="grt-left"&gt;2000&lt;/td&gt;
&lt;td class="grt-right grt-vrule-index"&gt;-100,000&lt;/td&gt;
&lt;td class="grt-right grt-vrule-1"&gt; 2.389p&lt;/td&gt;
&lt;td class="grt-right grt-vrule-0"&gt;-1,601.00&lt;/td&gt;
&lt;td class="grt-center grt-vrule-1"&gt;2025-03-14&lt;/td&gt;
&lt;td class="grt-left grt-vrule-0"&gt;once upon a time&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="grt-left grt-hrule-0"&gt;2001&lt;/td&gt;
&lt;td class="grt-right grt-hrule-0 grt-vrule-index"&gt;-91,667&lt;/td&gt;
&lt;td class="grt-right grt-hrule-0 grt-vrule-1"&gt; 22.217p&lt;/td&gt;
&lt;td class="grt-right grt-hrule-0 grt-vrule-0"&gt;-1,367.62&lt;/td&gt;
&lt;td class="grt-center grt-hrule-0 grt-vrule-1"&gt;2025-03-26&lt;/td&gt;
&lt;td class="grt-left grt-hrule-0 grt-vrule-0"&gt; risk is hard to define&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="grt-left grt-hrule-0"&gt;2002&lt;/td&gt;
&lt;td class="grt-right grt-hrule-0 grt-vrule-index"&gt;-83,333&lt;/td&gt;
&lt;td class="grt-right grt-hrule-0 grt-vrule-1"&gt; 206.619p&lt;/td&gt;
&lt;td class="grt-right grt-hrule-0 grt-vrule-0"&gt;-1,134.25&lt;/td&gt;
&lt;td class="grt-center grt-hrule-0 grt-vrule-1"&gt;2025-04-07&lt;/td&gt;
&lt;td class="grt-left grt-hrule-0 grt-vrule-0"&gt; not in Kansas anymore&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="grt-left grt-hrule-0"&gt;2003&lt;/td&gt;
&lt;td class="grt-right grt-hrule-0 grt-vrule-index"&gt;-75,000&lt;/td&gt;
&lt;td class="grt-right grt-hrule-0 grt-vrule-1"&gt; 1.922n&lt;/td&gt;
&lt;td class="grt-right grt-hrule-0 grt-vrule-0"&gt;-900.88&lt;/td&gt;
&lt;td class="grt-center grt-hrule-0 grt-vrule-1"&gt;2025-04-19&lt;/td&gt;
&lt;td class="grt-left grt-hrule-0 grt-vrule-0"&gt; neutrinos are hard to detect&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
TeX output
\begin{tikzpicture}[
auto,
transform shape,
nosep/.style={inner sep=0},
table/.style={
matrix of nodes,
row sep=0.125em,
column sep=0.375em,
nodes in empty cells,
nodes={rectangle, scale=0.635, text badly ragged , draw=blue!10},
row 1/.style={nodes={text=black, anchor=north, inner ysep=0, text height=0, text depth=0}},
row 2/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\bfseries}},
row 3/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\bfseries}},
column 1/.style={nodes={align=left }, text height=0.9em, text depth=0.2em, inner xsep=0.375em, inner ysep=0, text width=3.60em},
column 2/.style={nodes={align=right }, nosep, text width=17.40em},
column 3/.style={nodes={align=right }, nosep, text width=17.40em},
column 4/.style={nodes={align=right }, nosep, text width=17.40em},
column 5/.style={nodes={align=center}, nosep, text width=17.40em},
column 6/.style={nodes={align=left }, nosep, text width=17.40em},
column 7/.style={text height=0.9em, text depth=0.2em, nosep, text width=0em} }]
\matrix (TIPUZXJD7G5EM) [table, ampersand replacement=\&amp;]{
\&amp; \&amp; \&amp; \&amp; \&amp; \&amp; \\
\grtspacer \&amp; A\grtspacer \&amp; \grtspacer \&amp; B\grtspacer \&amp; \grtspacer \&amp; C\grtspacer \&amp; \\
years!\grtspacer \&amp; Int\grtspacer \&amp; Float\grtspacer \&amp; Float\grtspacer \&amp; 3\grtspacer \&amp; Longer Text\grtspacer \&amp; \\
2000 \&amp; -100,000 \&amp; 2.389p \&amp; -1,601.00 \&amp; 2025-03-14 \&amp; once upon a time \&amp; \\
2001 \&amp; -91,667 \&amp; 22.217p \&amp; -1,367.62 \&amp; 2025-03-26 \&amp; risk is hard to define \&amp; \\
2002 \&amp; -83,333 \&amp; 206.619p \&amp; -1,134.25 \&amp; 2025-04-07 \&amp; not in Kansas anymore \&amp; \\
2003 \&amp; -75,000 \&amp; 1.922n \&amp; -900.88 \&amp; 2025-04-19 \&amp; neutrinos are hard to detect \&amp; \\
};
\path[draw, thick] (TIPUZXJD7G5EM-1-1.south west) -- (TIPUZXJD7G5EM-1-7.south east);
\path[draw, semithick] ([yshift=-0.0625em]TIPUZXJD7G5EM-3-1.south west) -- ([yshift=-0.0625em]TIPUZXJD7G5EM-3-7.south east);
\path[draw, thick] ([yshift=-0.3125em]TIPUZXJD7G5EM-7-1.base west) -- ([yshift=-0.3125em]TIPUZXJD7G5EM-7-7.base east);
\path[draw, very thin] ([xshift=-0.1875em, yshift=-0.0625em]TIPUZXJD7G5EM-2-2.south west) -- ([yshift=-0.0625em]TIPUZXJD7G5EM-2-7.south east);
\path[draw, very thin] ([xshift=-0.1875em]TIPUZXJD7G5EM-1-2.south west) -- ([yshift=-0.3125em, xshift=-0.1875em]TIPUZXJD7G5EM-7-2.base west);
\path[draw, ultra thin] ([xshift=0.1875em, yshift=-0.0625em]TIPUZXJD7G5EM-1-3.south east) -- ([yshift=-0.3125em, xshift=0.1875em]TIPUZXJD7G5EM-7-3.base east);
\path[draw, ultra thin] ([xshift=0.1875em, yshift=-0.0625em]TIPUZXJD7G5EM-1-5.south east) -- ([yshift=-0.3125em, xshift=0.1875em]TIPUZXJD7G5EM-7-5.base east);
\end{tikzpicture}
</code></pre>
</div>
</div>
</section>
<section id="a-table-with-tex-content" class="level1" data-number="2">
<h1 data-number="2"><span class="header-section-number">2</span> A Table with TeX Content</h1>
<div class="cell" data-execution_count="8">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb9"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a>index <span class="op">=</span> pd.Index([<span class="st">"A"</span>, <span class="st">"B"</span>, <span class="st">"$C_1$"</span>, <span class="st">"C_2 not tex"</span>, <span class="st">'$</span><span class="ch">\\</span><span class="st">cos(A)$'</span>])</span>
<span id="cb9-2"><a href="#cb9-2" aria-hidden="true" tabindex="-1"></a>tex <span class="op">=</span> pd.DataFrame(</span>
<span id="cb9-3"><a href="#cb9-3" aria-hidden="true" tabindex="-1"></a>{<span class="st">'x'</span>: np.arange(<span class="dv">2020</span>, <span class="dv">2025</span>, dtype<span class="op">=</span><span class="bu">int</span>),</span>
<span id="cb9-4"><a href="#cb9-4" aria-hidden="true" tabindex="-1"></a><span class="st">'b'</span>: np.random.random(<span class="dv">5</span>),</span>
<span id="cb9-5"><a href="#cb9-5" aria-hidden="true" tabindex="-1"></a><span class="st">'a1'</span>: [<span class="ss">f'$x^</span><span class="sc">{</span>i<span class="sc">}</span><span class="ss">$'</span> <span class="cf">for</span> i <span class="kw">in</span> <span class="bu">range</span>(<span class="dv">5</span>,<span class="dv">10</span>)],</span>
<span id="cb9-6"><a href="#cb9-6" aria-hidden="true" tabindex="-1"></a><span class="st">'a2'</span>: [<span class="ss">f'$</span><span class="ch">\\</span><span class="ss">sin(</span><span class="sc">{</span>i<span class="sc">}</span><span class="ss">x</span><span class="ch">\\</span><span class="ss">pi/n)$'</span> <span class="cf">for</span> i <span class="kw">in</span> <span class="bu">range</span>(<span class="dv">5</span>,<span class="dv">10</span>)],</span>
<span id="cb9-7"><a href="#cb9-7" aria-hidden="true" tabindex="-1"></a><span class="st">'a3'</span>: [<span class="ss">f'$x^</span><span class="sc">{</span>i<span class="sc">}</span><span class="ss">$'</span> <span class="cf">for</span> i <span class="kw">in</span> <span class="bu">range</span>(<span class="dv">5</span>,<span class="dv">10</span>)],</span>
<span id="cb9-8"><a href="#cb9-8" aria-hidden="true" tabindex="-1"></a><span class="st">'a4'</span>: [<span class="ss">f'</span><span class="ch">\\</span><span class="ss">(x^</span><span class="sc">{</span>i<span class="sc">}</span><span class="ch">\\</span><span class="ss">)'</span> <span class="cf">for</span> i <span class="kw">in</span> <span class="bu">range</span>(<span class="dv">5</span>,<span class="dv">10</span>)],</span>
<span id="cb9-9"><a href="#cb9-9" aria-hidden="true" tabindex="-1"></a>}).set_index(<span class="st">'x'</span>)</span>
<span id="cb9-10"><a href="#cb9-10" aria-hidden="true" tabindex="-1"></a>tex <span class="op">=</span> tex.head()</span>
<span id="cb9-11"><a href="#cb9-11" aria-hidden="true" tabindex="-1"></a>tex.columns <span class="op">=</span> index</span>
<span id="cb9-12"><a href="#cb9-12" aria-hidden="true" tabindex="-1"></a>tex</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div id="tbl-tex" class="cell quarto-float quarto-figure quarto-figure-left anchored" data-execution_count="8">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-tex-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;6: (Quarto generated caption): table displayed by default routine.
</figcaption>
<div aria-describedby="tbl-tex-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output cell-output-display" data-execution_count="8">
<div>
<table class="dataframe table table-sm table-striped small">
<thead>
<tr>
<th></th>
<th>A</th>
<th>B</th>
<th>$C_1$</th>
<th>C_2 not tex</th>
<th>$\cos(A)$</th>
</tr>
<tr>
<th>x</th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<th>2020</th>
<td>0.718196</td>
<td>$x^5$</td>
<td>$\sin(5x\pi/n)$</td>
<td>$x^5$</td>
<td>\(x^5\)</td>
</tr>
<tr>
<th>2021</th>
<td>0.287288</td>
<td>$x^6$</td>
<td>$\sin(6x\pi/n)$</td>
<td>$x^6$</td>
<td>\(x^6\)</td>
</tr>
<tr>
<th>2022</th>
<td>0.591513</td>
<td>$x^7$</td>
<td>$\sin(7x\pi/n)$</td>
<td>$x^7$</td>
<td>\(x^7\)</td>
</tr>
<tr>
<th>2023</th>
<td>0.697237</td>
<td>$x^8$</td>
<td>$\sin(8x\pi/n)$</td>
<td>$x^8$</td>
<td>\(x^8\)</td>
</tr>
<tr>
<th>2024</th>
<td>0.774233</td>
<td>$x^9$</td>
<td>$\sin(9x\pi/n)$</td>
<td>$x^9$</td>
<td>\(x^9\)</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</figure>
</div>
</div>
<div class="cell" data-execution_count="9">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb10"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb10-1"><a href="#cb10-1" aria-hidden="true" tabindex="-1"></a>sGT(tex, <span class="st">'GT Caption'</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div id="tbl-tex-2" class="cell quarto-float quarto-figure quarto-figure-left anchored" data-execution_count="9">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-tex-2-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;7: GT output (Quarto generated caption)
</figcaption>
<div aria-describedby="tbl-tex-2-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output cell-output-display" data-execution_count="9">
<div class="greater-table">
<style>#TP3Y7DBKCZ4YR { border-collapse: collapse; font-family: "Roboto", "Open Sans Condensed", "Arial", 'Segoe UI', sans-serif; font-size: 0.9em; width: auto; margin: 10px auto; border: none; overflow: auto; margin-left: auto; margin-right: auto; } #TP3Y7DBKCZ4YR caption { padding: 8px 10px 4px 10px; font-size: 0.99em; text-align: center; font-weight: normal; caption-side: top; } #TP3Y7DBKCZ4YR thead { border-top: 1px solid #000; border-bottom: 1px solid #000; font-size: 0.99em; } #TP3Y7DBKCZ4YR tbody { border-bottom: 1px solid #000; } #TP3Y7DBKCZ4YR th { vertical-align: bottom; padding: 8px 10px 8px 10px; } #TP3Y7DBKCZ4YR td { padding: 4px 10px 4px 10px; vertical-align: top; } #TP3Y7DBKCZ4YR .grt-hrule-0 { border-top: 0px solid #000; } #TP3Y7DBKCZ4YR .grt-hrule-1 { border-top: 0px solid #000; } #TP3Y7DBKCZ4YR .grt-hrule-2 { border-top: 0px solid #000; } #TP3Y7DBKCZ4YR .grt-bhrule-0 { border-bottom: 0px solid #000; } #TP3Y7DBKCZ4YR .grt-bhrule-1 { border-bottom: 0px solid #000; } #TP3Y7DBKCZ4YR .grt-vrule-index { border-left: 1px solid #000; } #TP3Y7DBKCZ4YR .grt-vrule-0 { border-left: 0px solid #000; } #TP3Y7DBKCZ4YR .grt-vrule-1 { border-left: 0px solid #000; } #TP3Y7DBKCZ4YR .grt-vrule-2 { border-left: 0px solid #000; } #TP3Y7DBKCZ4YR .grt-left { text-align: left; } #TP3Y7DBKCZ4YR .grt-center { text-align: center; } #TP3Y7DBKCZ4YR .grt-right { text-align: right; font-variant-numeric: tabular-nums; } #TP3Y7DBKCZ4YR .grt-head { font-family: "Times New Roman", 'Courier New'; font-size: 0.99em; } #TP3Y7DBKCZ4YR .grt-bold { font-weight: bold; }</style>
<table id="TP3Y7DBKCZ4YR">
<caption>GT Caption</caption>
<colgroup>
<col style="width: 2.888888888888889em;">
<col style="width: 5.055555555555555em;">
<col style="width: 3.611111111111111em;">
<col style="width: 10.833333333333334em;">
<col style="width: 3.611111111111111em;">
<col style="width: 6.5em;">
</colgroup>
<thead>
<tr>
<th class="grt-left">x</th>
<th class="grt-center grt-vrule-index" colspan="1">A</th>
<th class="grt-center grt-vrule-0" colspan="1">B</th>
<th class="grt-center grt-vrule-0" colspan="1">\(C_1\)</th>
<th class="grt-center grt-vrule-0" colspan="1">C_2 not tex</th>
<th class="grt-center grt-vrule-0" colspan="1">\(\cos(A)\)</th>
</tr>
</thead>
<tbody>
<tr>
<td class="grt-left">2020</td>
<td class="grt-right grt-vrule-index">0.71820</td>
<td class="grt-left grt-vrule-0">\(x^5\)</td>
<td class="grt-left grt-vrule-0">\(\sin(5x\pi/n)\)</td>
<td class="grt-left grt-vrule-0">\(x^5\)</td>
<td class="grt-left grt-vrule-0">\(x^5\)</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2021</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">0.28729</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(x^6\)</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(\sin(6x\pi/n)\)</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(x^6\)</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(x^6\)</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2022</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">0.59151</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(x^7\)</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(\sin(7x\pi/n)\)</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(x^7\)</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(x^7\)</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2023</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">0.69724</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(x^8\)</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(\sin(8x\pi/n)\)</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(x^8\)</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(x^8\)</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2024</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">0.77423</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(x^9\)</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(\sin(9x\pi/n)\)</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(x^9\)</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(x^9\)</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</figure>
</div>
</div>
<p>Ratio columns.</p>
<div class="cell" data-execution_count="10">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb11"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb11-1"><a href="#cb11-1" aria-hidden="true" tabindex="-1"></a>tex.columns <span class="op">=</span> [<span class="st">"A (%)"</span>, <span class="st">"B"</span>, <span class="st">"$C_1$"</span>, <span class="st">"C_2 not tex"</span>, <span class="st">'$</span><span class="ch">\\</span><span class="st">cos(A)$'</span>]</span>
<span id="cb11-2"><a href="#cb11-2" aria-hidden="true" tabindex="-1"></a>sGT(tex, <span class="st">'Ratio columns in A'</span>, ratio_cols<span class="op">=</span><span class="st">'A (%)'</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div id="tbl-tex-3" class="cell quarto-float quarto-figure quarto-figure-left anchored" data-execution_count="10">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-tex-3-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;8: greater table output
</figcaption>
<div aria-describedby="tbl-tex-3-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output cell-output-display" data-execution_count="10">
<div class="greater-table">
<style>#TVDGOM4MF4EPW { border-collapse: collapse; font-family: "Roboto", "Open Sans Condensed", "Arial", 'Segoe UI', sans-serif; font-size: 0.9em; width: auto; margin: 10px auto; border: none; overflow: auto; margin-left: auto; margin-right: auto; } #TVDGOM4MF4EPW caption { padding: 8px 10px 4px 10px; font-size: 0.99em; text-align: center; font-weight: normal; caption-side: top; } #TVDGOM4MF4EPW thead { border-top: 1px solid #000; border-bottom: 1px solid #000; font-size: 0.99em; } #TVDGOM4MF4EPW tbody { border-bottom: 1px solid #000; } #TVDGOM4MF4EPW th { vertical-align: bottom; padding: 8px 10px 8px 10px; } #TVDGOM4MF4EPW td { padding: 4px 10px 4px 10px; vertical-align: top; } #TVDGOM4MF4EPW .grt-hrule-0 { border-top: 0px solid #000; } #TVDGOM4MF4EPW .grt-hrule-1 { border-top: 0px solid #000; } #TVDGOM4MF4EPW .grt-hrule-2 { border-top: 0px solid #000; } #TVDGOM4MF4EPW .grt-bhrule-0 { border-bottom: 0px solid #000; } #TVDGOM4MF4EPW .grt-bhrule-1 { border-bottom: 0px solid #000; } #TVDGOM4MF4EPW .grt-vrule-index { border-left: 1px solid #000; } #TVDGOM4MF4EPW .grt-vrule-0 { border-left: 0px solid #000; } #TVDGOM4MF4EPW .grt-vrule-1 { border-left: 0px solid #000; } #TVDGOM4MF4EPW .grt-vrule-2 { border-left: 0px solid #000; } #TVDGOM4MF4EPW .grt-left { text-align: left; } #TVDGOM4MF4EPW .grt-center { text-align: center; } #TVDGOM4MF4EPW .grt-right { text-align: right; font-variant-numeric: tabular-nums; } #TVDGOM4MF4EPW .grt-head { font-family: "Times New Roman", 'Courier New'; font-size: 0.99em; } #TVDGOM4MF4EPW .grt-bold { font-weight: bold; }</style>
<table id="TVDGOM4MF4EPW">
<caption>Ratio columns in A</caption>
<colgroup>
<col style="width: 3.0232558139534884em;">
<col style="width: 3.7790697674418605em;">
<col style="width: 3.7790697674418605em;">
<col style="width: 11.337209302325581em;">
<col style="width: 3.7790697674418605em;">
<col style="width: 6.802325581395349em;">
</colgroup>
<thead>
<tr>
<th class="grt-left">x</th>
<th class="grt-center grt-vrule-index" colspan="1">A (%)</th>
<th class="grt-center grt-vrule-0" colspan="1">B</th>
<th class="grt-center grt-vrule-0" colspan="1">\(C_1\)</th>
<th class="grt-center grt-vrule-0" colspan="1">C_2 not tex</th>
<th class="grt-center grt-vrule-0" colspan="1">\(\cos(A)\)</th>
</tr>
</thead>
<tbody>
<tr>
<td class="grt-left">2020</td>
<td class="grt-right grt-vrule-index">71.8%</td>
<td class="grt-left grt-vrule-0">\(x^5\)</td>
<td class="grt-left grt-vrule-0">\(\sin(5x\pi/n)\)</td>
<td class="grt-left grt-vrule-0">\(x^5\)</td>
<td class="grt-left grt-vrule-0">\(x^5\)</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2021</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">28.7%</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(x^6\)</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(\sin(6x\pi/n)\)</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(x^6\)</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(x^6\)</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2022</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">59.2%</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(x^7\)</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(\sin(7x\pi/n)\)</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(x^7\)</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(x^7\)</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2023</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">69.7%</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(x^8\)</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(\sin(8x\pi/n)\)</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(x^8\)</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(x^8\)</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2024</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">77.4%</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(x^9\)</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(\sin(9x\pi/n)\)</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(x^9\)</td>
<td class="grt-left grt-hrule-0 grt-vrule-0">\(x^9\)</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</figure>
</div>
</div>
</section>
<section id="greater_tables-test-suite" class="level1" data-number="3">
<h1 data-number="3"><span class="header-section-number">3</span> Greater_tables Test Suite</h1>
<div id="greater-tables-test" class="cell" data-execution_count="11">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb12"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb12-1"><a href="#cb12-1" aria-hidden="true" tabindex="-1"></a>test_gen <span class="op">=</span> gtu.TestDFGenerator(<span class="dv">0</span>, <span class="dv">0</span>)</span>
<span id="cb12-2"><a href="#cb12-2" aria-hidden="true" tabindex="-1"></a>ans <span class="op">=</span> test_gen.test_suite() </span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
</div>
<section id="test-table-basic" class="level2" data-number="3.1">
<h2 data-number="3.1" class="anchored" data-anchor-id="test-table-basic"><span class="header-section-number">3.1</span> Test Table: basic</h2>
<div class="cell" data-execution_count="12">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb13"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb13-1"><a href="#cb13-1" aria-hidden="true" tabindex="-1"></a>hrw <span class="op">=</span> (<span class="dv">0</span>, <span class="dv">0</span>, <span class="dv">0</span>)</span>
<span id="cb13-2"><a href="#cb13-2" aria-hidden="true" tabindex="-1"></a>sGT(ans[<span class="st">'basic'</span>], <span class="st">"Basic"</span>, ratio_cols<span class="op">=</span><span class="st">'z'</span>, aligners<span class="op">=</span>{<span class="st">'w'</span>: <span class="st">'l'</span>},</span>
<span id="cb13-3"><a href="#cb13-3" aria-hidden="true" tabindex="-1"></a> hrule_widths<span class="op">=</span>hrw)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div id="tbl-greater-tables-test-0" class="cell quarto-float quarto-figure quarto-figure-left anchored" data-execution_count="12">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-greater-tables-test-0-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;9: GT output for test table basic
</figcaption>
<div aria-describedby="tbl-greater-tables-test-0-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output cell-output-display" data-execution_count="12">
<div class="greater-table">
<style>#THEBBRLLSFI2T { border-collapse: collapse; font-family: "Roboto", "Open Sans Condensed", "Arial", 'Segoe UI', sans-serif; font-size: 0.9em; width: auto; margin: 10px auto; border: none; overflow: auto; margin-left: auto; margin-right: auto; } #THEBBRLLSFI2T caption { padding: 8px 10px 4px 10px; font-size: 0.99em; text-align: center; font-weight: normal; caption-side: top; } #THEBBRLLSFI2T thead { border-top: 1px solid #000; border-bottom: 1px solid #000; font-size: 0.99em; } #THEBBRLLSFI2T tbody { border-bottom: 1px solid #000; } #THEBBRLLSFI2T th { vertical-align: bottom; padding: 8px 10px 8px 10px; } #THEBBRLLSFI2T td { padding: 4px 10px 4px 10px; vertical-align: top; } #THEBBRLLSFI2T .grt-hrule-0 { border-top: 0px solid #000; } #THEBBRLLSFI2T .grt-hrule-1 { border-top: 0px solid #000; } #THEBBRLLSFI2T .grt-hrule-2 { border-top: 0px solid #000; } #THEBBRLLSFI2T .grt-bhrule-0 { border-bottom: 0px solid #000; } #THEBBRLLSFI2T .grt-bhrule-1 { border-bottom: 0px solid #000; } #THEBBRLLSFI2T .grt-vrule-index { border-left: 1px solid #000; } #THEBBRLLSFI2T .grt-vrule-0 { border-left: 0px solid #000; } #THEBBRLLSFI2T .grt-vrule-1 { border-left: 0px solid #000; } #THEBBRLLSFI2T .grt-vrule-2 { border-left: 0px solid #000; } #THEBBRLLSFI2T .grt-left { text-align: left; } #THEBBRLLSFI2T .grt-center { text-align: center; } #THEBBRLLSFI2T .grt-right { text-align: right; font-variant-numeric: tabular-nums; } #THEBBRLLSFI2T .grt-head { font-family: "Times New Roman", 'Courier New'; font-size: 0.99em; } #THEBBRLLSFI2T .grt-bold { font-weight: bold; }</style>
<table id="THEBBRLLSFI2T">
<caption>Basic</caption>
<colgroup>
<col style="width: 3.0em;">
<col style="width: 5.0em;">
<col style="width: 3.5em;">
<col style="width: 4.5em;">
<col style="width: 5.0em;">
<col style="width: 5.0em;">
<col style="width: 3.0em;">
<col style="width: 4.0em;">
<col style="width: 3.0em;">
</colgroup>
<thead>
<tr>
<th class="grt-left">finally</th>
<th class="grt-center grt-vrule-index" colspan="1">debug date</th>
<th class="grt-center grt-vrule-0" colspan="1">enemy float</th>
<th class="grt-center grt-vrule-0" colspan="1">orphans float</th>
<th class="grt-center grt-vrule-0" colspan="1">protruding float</th>
<th class="grt-center grt-vrule-0" colspan="1">prudent datetime</th>
<th class="grt-center grt-vrule-0" colspan="1">shale int</th>
<th class="grt-center grt-vrule-0" colspan="1">slowness int</th>
<th class="grt-center grt-vrule-0" colspan="1">suing int</th>
</tr>
</thead>
<tbody>
<tr>
<td class="grt-left">7,854</td>
<td class="grt-center grt-vrule-index">2030-06-26</td>
<td class="grt-right grt-vrule-0">2.11142</td>
<td class="grt-right grt-vrule-0"> 12.589k</td>
<td class="grt-right grt-vrule-0"> 446.533k</td>
<td class="grt-center grt-vrule-0">2030-10-26</td>
<td class="grt-right grt-vrule-0">-2,420</td>
<td class="grt-right grt-vrule-0">9,789</td>
<td class="grt-right grt-vrule-0">-8,700</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">16,196</td>
<td class="grt-center grt-hrule-0 grt-vrule-index">2007-03-20</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">0.00302</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 5.064</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 18.008M</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2018-07-08</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">1,085</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">793</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">1,370</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">17,925</td>
<td class="grt-center grt-hrule-0 grt-vrule-index">2029-07-20</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">0.00003</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 27.621k</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 396.221M</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2027-09-17</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">-5,360</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">-4,847</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">-1,221</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">45,007</td>
<td class="grt-center grt-hrule-0 grt-vrule-index">2025-06-05</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">0.02476</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 7.990M</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 24.956M</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2030-10-26</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">-3,247</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">622</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">4,761</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">46,597</td>
<td class="grt-center grt-hrule-0 grt-vrule-index">2010-11-11</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">0.00000</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 338.592M</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 182.695M</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2020-06-21</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">9,321</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">-2,519</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">9,025</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">65,875</td>
<td class="grt-center grt-hrule-0 grt-vrule-index">2009-12-15</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">0.00029</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 7.152G</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 35.381M</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2030-10-26</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">2,489</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">-8,288</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">-3,648</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">73,836</td>
<td class="grt-center grt-hrule-0 grt-vrule-index">2025-06-05</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">0.00000</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 290.625k</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 1.063M</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2022-02-01</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">-312</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">-9,006</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">8,417</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">79,324</td>
<td class="grt-center grt-hrule-0 grt-vrule-index">2016-02-07</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">0.00001</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 966.832k</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 109.231M</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2030-08-26</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">4,735</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">-5,085</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">-9,105</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">88,049</td>
<td class="grt-center grt-hrule-0 grt-vrule-index">2016-10-20</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">0.00000</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 4.929G</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 31.366k</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2024-06-27</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">-5,858</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">-1,554</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">-5,719</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">89,951</td>
<td class="grt-center grt-hrule-0 grt-vrule-index">2010-11-11</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">0.00000</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 6.406G</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 46.693M</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2024-06-27</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">-7,444</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">6,314</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">-2,130</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</figure>
</div>
</div>
<p>Comments go here.</p>
</section>
<section id="test-table-timeseries" class="level2" data-number="3.2">
<h2 data-number="3.2" class="anchored" data-anchor-id="test-table-timeseries"><span class="header-section-number">3.2</span> Test Table: timeseries</h2>
<div class="cell" data-execution_count="13">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb14"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb14-1"><a href="#cb14-1" aria-hidden="true" tabindex="-1"></a>hrw <span class="op">=</span> (<span class="dv">0</span>, <span class="dv">0</span>, <span class="dv">0</span>)</span>
<span id="cb14-2"><a href="#cb14-2" aria-hidden="true" tabindex="-1"></a>sGT(ans[<span class="st">'timeseries'</span>], <span class="st">"Timeseries"</span>, ratio_cols<span class="op">=</span><span class="st">'z'</span>, aligners<span class="op">=</span>{<span class="st">'w'</span>: <span class="st">'l'</span>},</span>
<span id="cb14-3"><a href="#cb14-3" aria-hidden="true" tabindex="-1"></a> hrule_widths<span class="op">=</span>hrw)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div id="tbl-greater-tables-test-1" class="cell quarto-float quarto-figure quarto-figure-left anchored" data-execution_count="13">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-greater-tables-test-1-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;10: GT output for test table timeseries
</figcaption>
<div aria-describedby="tbl-greater-tables-test-1-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output cell-output-display" data-execution_count="13">
<div class="greater-table">
<style>#TILRFYNBOS5MO { border-collapse: collapse; font-family: "Roboto", "Open Sans Condensed", "Arial", 'Segoe UI', sans-serif; font-size: 0.9em; width: auto; margin: 10px auto; border: none; overflow: auto; margin-left: auto; margin-right: auto; } #TILRFYNBOS5MO caption { padding: 4px 10px 2px 10px; font-size: 0.99em; text-align: center; font-weight: normal; caption-side: top; } #TILRFYNBOS5MO thead { border-top: 1px solid #000; border-bottom: 1px solid #000; font-size: 0.99em; } #TILRFYNBOS5MO tbody { border-bottom: 1px solid #000; } #TILRFYNBOS5MO th { vertical-align: bottom; padding: 4px 10px 4px 10px; } #TILRFYNBOS5MO td { padding: 2px 10px 2px 10px; vertical-align: top; } #TILRFYNBOS5MO .grt-hrule-0 { border-top: 0px solid #000; } #TILRFYNBOS5MO .grt-hrule-1 { border-top: 0px solid #000; } #TILRFYNBOS5MO .grt-hrule-2 { border-top: 0px solid #000; } #TILRFYNBOS5MO .grt-bhrule-0 { border-bottom: 0px solid #000; } #TILRFYNBOS5MO .grt-bhrule-1 { border-bottom: 0px solid #000; } #TILRFYNBOS5MO .grt-vrule-index { border-left: 1px solid #000; } #TILRFYNBOS5MO .grt-vrule-0 { border-left: 0px solid #000; } #TILRFYNBOS5MO .grt-vrule-1 { border-left: 0px solid #000; } #TILRFYNBOS5MO .grt-vrule-2 { border-left: 0px solid #000; } #TILRFYNBOS5MO .grt-left { text-align: left; } #TILRFYNBOS5MO .grt-center { text-align: center; } #TILRFYNBOS5MO .grt-right { text-align: right; font-variant-numeric: tabular-nums; } #TILRFYNBOS5MO .grt-head { font-family: "Times New Roman", 'Courier New'; font-size: 0.99em; } #TILRFYNBOS5MO .grt-bold { font-weight: bold; }</style>
<table id="TILRFYNBOS5MO">
<caption>Timeseries</caption>
<colgroup>
<col style="width: 8.125em;">
<col style="width: 5.6875em;">
<col style="width: 10.5625em;">
<col style="width: 8.125em;">
</colgroup>
<thead>
<tr>
<th class="grt-left">hour</th>
<th class="grt-center grt-vrule-index" colspan="1">Aghast Forth Recast float</th>
<th class="grt-center grt-vrule-0" colspan="1">Borderline Comprehension Quicksand float</th>
<th class="grt-center grt-vrule-0" colspan="1">Reads Touch Cluck date</th>
</tr>
</thead>
<tbody>
<tr>
<td class="grt-left">2006-06-14</td>
<td class="grt-right grt-vrule-index">0.00063</td>
<td class="grt-right grt-vrule-0"> 5.086M</td>
<td class="grt-center grt-vrule-0">2016-01-16</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2008-01-22</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">0.00189</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 135.050k</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2018-06-16</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2011-07-24</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">0.00006</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 674.425k</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2026-01-30</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2014-02-20</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">0.00025</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 32.013</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2026-01-30</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2015-07-22</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">0.00000</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 2.034k</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2026-01-30</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2017-03-13</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">0.87787</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 291.515k</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2029-11-24</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2017-05-28</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">0.00340</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 14.176k</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2019-08-15</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2017-09-02</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">0.01595</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 4.440k</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2026-01-30</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2018-06-30</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">0.00000</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 877.971m</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2012-05-30</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2018-10-09</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">0.43277</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 2.863G</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2022-08-10</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2019-06-18</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">0.00203</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 77.727M</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2020-10-20</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2019-06-27</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">0.00051</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 22.672</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2007-01-02</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2020-04-14</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">0.00000</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 118.617k</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2016-01-16</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2025-03-13</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">0.02163</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 167.999m</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2019-08-15</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2027-10-01</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">0.06213</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 4.350</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2007-01-02</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2027-11-09</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">0.00000</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 169.960</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2020-10-20</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2029-02-14</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">0.00000</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 376.827k</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2019-08-15</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2031-01-04</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">0.00030</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 1.146k</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2025-05-23</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2031-04-21</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">0.00000</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 3.568k</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2025-02-09</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">2033-06-10</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">0.04446</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 63.823k</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2012-05-30</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</figure>
</div>
</div>
<p>Comments go here.</p>
</section>
<section id="test-table-multiindex" class="level2" data-number="3.3">
<h2 data-number="3.3" class="anchored" data-anchor-id="test-table-multiindex"><span class="header-section-number">3.3</span> Test Table: multiindex</h2>
<div class="cell" data-execution_count="14">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb15"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb15-1"><a href="#cb15-1" aria-hidden="true" tabindex="-1"></a>hrw <span class="op">=</span> (<span class="fl">1.5</span>, <span class="fl">1.0</span>, <span class="fl">0.5</span>)</span>
<span id="cb15-2"><a href="#cb15-2" aria-hidden="true" tabindex="-1"></a>sGT(ans[<span class="st">'multiindex'</span>], <span class="st">"Multiindex"</span>, ratio_cols<span class="op">=</span><span class="st">'z'</span>, aligners<span class="op">=</span>{<span class="st">'w'</span>: <span class="st">'l'</span>},</span>
<span id="cb15-3"><a href="#cb15-3" aria-hidden="true" tabindex="-1"></a> hrule_widths<span class="op">=</span>hrw)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div id="tbl-greater-tables-test-2" class="cell quarto-float quarto-figure quarto-figure-left anchored" data-execution_count="14">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-greater-tables-test-2-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;11: GT output for test table multiindex
</figcaption>
<div aria-describedby="tbl-greater-tables-test-2-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output cell-output-display" data-execution_count="14">
<div class="greater-table">
<style>#T5RGCO4L74MVD { border-collapse: collapse; font-family: "Roboto", "Open Sans Condensed", "Arial", 'Segoe UI', sans-serif; font-size: 0.9em; width: auto; margin: 10px auto; border: none; overflow: auto; margin-left: auto; margin-right: auto; } #T5RGCO4L74MVD caption { padding: 8px 10px 4px 10px; font-size: 0.99em; text-align: center; font-weight: normal; caption-side: top; } #T5RGCO4L74MVD thead { border-top: 2px solid #000; border-bottom: 2px solid #000; font-size: 0.99em; } #T5RGCO4L74MVD tbody { border-bottom: 2px solid #000; } #T5RGCO4L74MVD th { vertical-align: bottom; padding: 8px 10px 8px 10px; } #T5RGCO4L74MVD td { padding: 4px 10px 4px 10px; vertical-align: top; } #T5RGCO4L74MVD .grt-hrule-0 { border-top: 1.5px solid #000; } #T5RGCO4L74MVD .grt-hrule-1 { border-top: 1.0px solid #000; } #T5RGCO4L74MVD .grt-hrule-2 { border-top: 0.5px solid #000; } #T5RGCO4L74MVD .grt-bhrule-0 { border-bottom: 0px solid #000; } #T5RGCO4L74MVD .grt-bhrule-1 { border-bottom: 0px solid #000; } #T5RGCO4L74MVD .grt-vrule-index { border-left: 1px solid #000; } #T5RGCO4L74MVD .grt-vrule-0 { border-left: 0px solid #000; } #T5RGCO4L74MVD .grt-vrule-1 { border-left: 0px solid #000; } #T5RGCO4L74MVD .grt-vrule-2 { border-left: 0px solid #000; } #T5RGCO4L74MVD .grt-left { text-align: left; } #T5RGCO4L74MVD .grt-center { text-align: center; } #T5RGCO4L74MVD .grt-right { text-align: right; font-variant-numeric: tabular-nums; } #T5RGCO4L74MVD .grt-head { font-family: "Times New Roman", 'Courier New'; font-size: 0.99em; } #T5RGCO4L74MVD .grt-bold { font-weight: bold; }</style>
<table id="T5RGCO4L74MVD">
<caption>Multiindex</caption>
<colgroup>
<col style="width: 3.0em;">
<col style="width: 5.5em;">
<col style="width: 3.0em;">
<col style="width: 5.5em;">
<col style="width: 5.0em;">
<col style="width: 4.5em;">
<col style="width: 5.0em;">
<col style="width: 5.0em;">
</colgroup>
<thead>
<tr>
<th class="grt-left">subcontractors</th>
<th class="grt-left">omniscient</th>
<th class="grt-left">dope</th>
<th class="grt-center grt-vrule-index" colspan="1">Clutch Potent Proxies int</th>
<th class="grt-center grt-vrule-0" colspan="1">Coloration Brains Trimester datetime</th>
<th class="grt-center grt-vrule-0" colspan="1">Homicide Mangrove Medicaid float</th>
<th class="grt-center grt-vrule-0" colspan="1">Mulled Mall Overturned float</th>
<th class="grt-center grt-vrule-0" colspan="1">Viability Cannon Reaffirmed int</th>
</tr>
</thead>
<tbody>
<tr>
<td class="grt-left">41,778</td>
<td class="grt-left">nurtured</td>
<td class="grt-left">4,716</td>
<td class="grt-right grt-vrule-index">737,371,246</td>
<td class="grt-center grt-vrule-0">2006-07-28</td>
<td class="grt-right grt-vrule-0"> 318.230n</td>
<td class="grt-right grt-vrule-0">0.00000</td>
<td class="grt-right grt-vrule-0">5,631</td>
</tr>
<tr>
<td class="grt-left"></td>
<td class="grt-left"></td>
<td class="grt-left grt-hrule-2">11,541</td>
<td class="grt-right grt-hrule-2 grt-vrule-index">628,029,563</td>
<td class="grt-center grt-hrule-2 grt-vrule-0">2028-05-19</td>
<td class="grt-right grt-hrule-2 grt-vrule-0"> 115.862n</td>
<td class="grt-right grt-hrule-2 grt-vrule-0">0.00242</td>
<td class="grt-right grt-hrule-2 grt-vrule-0">-2,675</td>
</tr>
<tr>
<td class="grt-left"></td>
<td class="grt-left"></td>
<td class="grt-left grt-hrule-2">39,040</td>
<td class="grt-right grt-hrule-2 grt-vrule-index">952,951,440</td>
<td class="grt-center grt-hrule-2 grt-vrule-0">2030-08-28</td>
<td class="grt-right grt-hrule-2 grt-vrule-0"> 4.728u</td>
<td class="grt-right grt-hrule-2 grt-vrule-0">0.00000</td>
<td class="grt-right grt-hrule-2 grt-vrule-0">-8,399</td>
</tr>
<tr>
<td class="grt-left"></td>
<td class="grt-left grt-hrule-1">operational</td>
<td class="grt-left grt-hrule-1">85,483</td>
<td class="grt-right grt-hrule-1 grt-vrule-index">406,112,420</td>
<td class="grt-center grt-hrule-1 grt-vrule-0">2030-08-28</td>
<td class="grt-right grt-hrule-1 grt-vrule-0"> 12.120n</td>
<td class="grt-right grt-hrule-1 grt-vrule-0">0.00000</td>
<td class="grt-right grt-hrule-1 grt-vrule-0">-5,313</td>
</tr>
<tr>
<td class="grt-left"></td>
<td class="grt-left"></td>
<td class="grt-left grt-hrule-2">99,029</td>
<td class="grt-right grt-hrule-2 grt-vrule-index">250,843,907</td>
<td class="grt-center grt-hrule-2 grt-vrule-0">2030-08-28</td>
<td class="grt-right grt-hrule-2 grt-vrule-0"> 2.035n</td>
<td class="grt-right grt-hrule-2 grt-vrule-0">0.00310</td>
<td class="grt-right grt-hrule-2 grt-vrule-0">-8,481</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">91,316</td>
<td class="grt-left grt-hrule-0">nurtured</td>
<td class="grt-left grt-hrule-0">11,583</td>
<td class="grt-right grt-hrule-0 grt-vrule-index">83,924,662</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2030-08-28</td>
<td class="grt-right grt-hrule-0 grt-vrule-0"> 51.575n</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">0.00000</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">4,604</td>
</tr>
<tr>
<td class="grt-left"></td>
<td class="grt-left"></td>
<td class="grt-left grt-hrule-2">15,228</td>
<td class="grt-right grt-hrule-2 grt-vrule-index">164,891,408</td>
<td class="grt-center grt-hrule-2 grt-vrule-0">2007-03-31</td>
<td class="grt-right grt-hrule-2 grt-vrule-0"> 1.860m</td>
<td class="grt-right grt-hrule-2 grt-vrule-0">0.00000</td>
<td class="grt-right grt-hrule-2 grt-vrule-0">9,813</td>
</tr>
<tr>
<td class="grt-left"></td>
<td class="grt-left"></td>
<td class="grt-left grt-hrule-2">93,958</td>
<td class="grt-right grt-hrule-2 grt-vrule-index">558,988,229</td>
<td class="grt-center grt-hrule-2 grt-vrule-0">2009-11-18</td>
<td class="grt-right grt-hrule-2 grt-vrule-0"> 1.924n</td>
<td class="grt-right grt-hrule-2 grt-vrule-0">0.03481</td>
<td class="grt-right grt-hrule-2 grt-vrule-0">-4,138</td>
</tr>
<tr>
<td class="grt-left"></td>
<td class="grt-left grt-hrule-1">operational</td>
<td class="grt-left grt-hrule-1">11,208</td>
<td class="grt-right grt-hrule-1 grt-vrule-index">395,204,191</td>
<td class="grt-center grt-hrule-1 grt-vrule-0">2021-06-25</td>
<td class="grt-right grt-hrule-1 grt-vrule-0"> 1.513m</td>
<td class="grt-right grt-hrule-1 grt-vrule-0">0.22696</td>
<td class="grt-right grt-hrule-1 grt-vrule-0">2,835</td>
</tr>
<tr>
<td class="grt-left"></td>
<td class="grt-left grt-hrule-1">scratches</td>
<td class="grt-left grt-hrule-1">14,298</td>
<td class="grt-right grt-hrule-1 grt-vrule-index">579,583,091</td>
<td class="grt-center grt-hrule-1 grt-vrule-0">2030-08-28</td>
<td class="grt-right grt-hrule-1 grt-vrule-0"> 2.781u</td>
<td class="grt-right grt-hrule-1 grt-vrule-0">0.00002</td>
<td class="grt-right grt-hrule-1 grt-vrule-0">-2,621</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</figure>
</div>
</div>
<p>Comments go here.</p>
</section>
<section id="test-table-multicolumns" class="level2" data-number="3.4">
<h2 data-number="3.4" class="anchored" data-anchor-id="test-table-multicolumns"><span class="header-section-number">3.4</span> Test Table: multicolumns</h2>
<div class="cell" data-execution_count="15">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb16"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb16-1"><a href="#cb16-1" aria-hidden="true" tabindex="-1"></a>hrw <span class="op">=</span> (<span class="dv">0</span>, <span class="dv">0</span>, <span class="dv">0</span>)</span>
<span id="cb16-2"><a href="#cb16-2" aria-hidden="true" tabindex="-1"></a>sGT(ans[<span class="st">'multicolumns'</span>], <span class="st">"Multicolumns"</span>, ratio_cols<span class="op">=</span><span class="st">'z'</span>, aligners<span class="op">=</span>{<span class="st">'w'</span>: <span class="st">'l'</span>},</span>
<span id="cb16-3"><a href="#cb16-3" aria-hidden="true" tabindex="-1"></a> hrule_widths<span class="op">=</span>hrw)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div id="tbl-greater-tables-test-3" class="cell quarto-float quarto-figure quarto-figure-left anchored" data-execution_count="15">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-greater-tables-test-3-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;12: GT output for test table multicolumns
</figcaption>
<div aria-describedby="tbl-greater-tables-test-3-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output cell-output-display" data-execution_count="15">
<div class="greater-table">
<style>#TWIC4HYYT3BAN { border-collapse: collapse; font-family: "Roboto", "Open Sans Condensed", "Arial", 'Segoe UI', sans-serif; font-size: 0.9em; width: auto; margin: 10px auto; border: none; overflow: auto; margin-left: auto; margin-right: auto; } #TWIC4HYYT3BAN caption { padding: 8px 10px 4px 10px; font-size: 0.99em; text-align: center; font-weight: normal; caption-side: top; } #TWIC4HYYT3BAN thead { border-top: 1px solid #000; border-bottom: 1px solid #000; font-size: 0.99em; } #TWIC4HYYT3BAN tbody { border-bottom: 1px solid #000; } #TWIC4HYYT3BAN th { vertical-align: bottom; padding: 8px 10px 8px 10px; } #TWIC4HYYT3BAN td { padding: 4px 10px 4px 10px; vertical-align: top; } #TWIC4HYYT3BAN .grt-hrule-0 { border-top: 0px solid #000; } #TWIC4HYYT3BAN .grt-hrule-1 { border-top: 0px solid #000; } #TWIC4HYYT3BAN .grt-hrule-2 { border-top: 0px solid #000; } #TWIC4HYYT3BAN .grt-bhrule-0 { border-bottom: 1.5px solid #000; } #TWIC4HYYT3BAN .grt-bhrule-1 { border-bottom: 1px solid #000; } #TWIC4HYYT3BAN .grt-vrule-index { border-left: 2px solid #000; } #TWIC4HYYT3BAN .grt-vrule-0 { border-left: 1.5px solid #000; } #TWIC4HYYT3BAN .grt-vrule-1 { border-left: 1px solid #000; } #TWIC4HYYT3BAN .grt-vrule-2 { border-left: 0.5px solid #000; } #TWIC4HYYT3BAN .grt-left { text-align: left; } #TWIC4HYYT3BAN .grt-center { text-align: center; } #TWIC4HYYT3BAN .grt-right { text-align: right; font-variant-numeric: tabular-nums; } #TWIC4HYYT3BAN .grt-head { font-family: "Times New Roman", 'Courier New'; font-size: 0.99em; } #TWIC4HYYT3BAN .grt-bold { font-weight: bold; }</style>
<table id="TWIC4HYYT3BAN">
<caption>Multicolumns</caption>
<colgroup>
<col style="width: 4.9576271186440675em;">
<col style="width: 6.610169491525424em;">
<col style="width: 5.508474576271186em;">
<col style="width: 4.9576271186440675em;">
<col style="width: 4.9576271186440675em;">
<col style="width: 5.508474576271186em;">
</colgroup>
<thead>
<tr>
<th class="grt-left"></th>
<th class="grt-center grt-bhrule-0 grt-vrule-index" colspan="1">guilty</th>
<th class="grt-center grt-bhrule-0 grt-vrule-0" colspan="4">spying</th>
</tr>
<tr>
<th class="grt-left"></th>
<th class="grt-center grt-bhrule-1 grt-vrule-index" colspan="1">shadows</th>
<th class="grt-center grt-bhrule-1 grt-vrule-0" colspan="2">monitored</th>
<th class="grt-center grt-bhrule-1 grt-vrule-1" colspan="1">revel</th>
<th class="grt-center grt-bhrule-1 grt-vrule-1" colspan="1">shadows</th>
</tr>
<tr>
<th class="grt-left">influenza</th>
<th class="grt-center grt-vrule-index" colspan="1">commenting</th>
<th class="grt-center grt-vrule-0" colspan="1">redirected</th>
<th class="grt-center grt-vrule-2" colspan="1">vowels</th>
<th class="grt-center grt-vrule-1" colspan="1">debugging</th>
<th class="grt-center grt-vrule-1" colspan="1">explode</th>
</tr>
</thead>
<tbody>
<tr>
<td class="grt-left">16,750</td>
<td class="grt-left grt-vrule-index">utilizes</td>
<td class="grt-center grt-vrule-0">2019-01-03</td>
<td class="grt-right grt-vrule-2">0.00000</td>
<td class="grt-right grt-vrule-1"> 93.987k</td>
<td class="grt-center grt-vrule-1">2024-02-20</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">34,377</td>
<td class="grt-left grt-hrule-0 grt-vrule-index">thoroughness</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2013-01-15</td>
<td class="grt-right grt-hrule-0 grt-vrule-2">0.00023</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 3.075M</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2010-05-22</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">44,533</td>
<td class="grt-left grt-hrule-0 grt-vrule-index">uprisings</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2029-11-29</td>
<td class="grt-right grt-hrule-0 grt-vrule-2">0.00000</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 38.750k</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2016-05-25</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">54,472</td>
<td class="grt-left grt-hrule-0 grt-vrule-index">critter</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2014-06-25</td>
<td class="grt-right grt-hrule-0 grt-vrule-2">0.00038</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 9.971k</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2031-10-04</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">64,171</td>
<td class="grt-left grt-hrule-0 grt-vrule-index">destiny</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2029-11-29</td>
<td class="grt-right grt-hrule-0 grt-vrule-2">0.09353</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 1.720G</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2030-03-12</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">71,922</td>
<td class="grt-left grt-hrule-0 grt-vrule-index">savvy</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2025-04-20</td>
<td class="grt-right grt-hrule-0 grt-vrule-2">0.00000</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 5.788k</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2010-05-22</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">79,803</td>
<td class="grt-left grt-hrule-0 grt-vrule-index">alright</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2013-01-15</td>
<td class="grt-right grt-hrule-0 grt-vrule-2">0.00001</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 356.950M</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2031-10-04</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">87,194</td>
<td class="grt-left grt-hrule-0 grt-vrule-index">solidifies</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2013-08-01</td>
<td class="grt-right grt-hrule-0 grt-vrule-2">0.00009</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 1.301k</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2030-12-05</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">90,818</td>
<td class="grt-left grt-hrule-0 grt-vrule-index">acquires</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2014-06-25</td>
<td class="grt-right grt-hrule-0 grt-vrule-2">0.00000</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 32.788</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2031-10-31</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">94,143</td>
<td class="grt-left grt-hrule-0 grt-vrule-index">fines</td>
<td class="grt-center grt-hrule-0 grt-vrule-0">2014-06-25</td>
<td class="grt-right grt-hrule-0 grt-vrule-2">0.13375</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 5.077</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2031-10-04</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</figure>
</div>
</div>
<p>Comments go here.</p>
</section>
<section id="test-table-complex" class="level2" data-number="3.5">
<h2 data-number="3.5" class="anchored" data-anchor-id="test-table-complex"><span class="header-section-number">3.5</span> Test Table: complex</h2>
<div class="cell" data-execution_count="16">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb17"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb17-1"><a href="#cb17-1" aria-hidden="true" tabindex="-1"></a>hrw <span class="op">=</span> (<span class="fl">1.5</span>, <span class="fl">1.0</span>, <span class="fl">0.5</span>)</span>
<span id="cb17-2"><a href="#cb17-2" aria-hidden="true" tabindex="-1"></a>sGT(ans[<span class="st">'complex'</span>], <span class="st">"Complex"</span>, ratio_cols<span class="op">=</span><span class="st">'z'</span>, aligners<span class="op">=</span>{<span class="st">'w'</span>: <span class="st">'l'</span>},</span>
<span id="cb17-3"><a href="#cb17-3" aria-hidden="true" tabindex="-1"></a> hrule_widths<span class="op">=</span>hrw)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div id="tbl-greater-tables-test-4" class="cell quarto-float quarto-figure quarto-figure-left anchored" data-execution_count="16">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-greater-tables-test-4-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;13: GT output for test table complex
</figcaption>
<div aria-describedby="tbl-greater-tables-test-4-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output cell-output-display" data-execution_count="16">
<div class="greater-table">
<style>#T7AKTJJV742L6 { border-collapse: collapse; font-family: "Roboto", "Open Sans Condensed", "Arial", 'Segoe UI', sans-serif; font-size: 0.9em; width: auto; margin: 10px auto; border: none; overflow: auto; margin-left: auto; margin-right: auto; } #T7AKTJJV742L6 caption { padding: 4px 5px 2px 5px; font-size: 0.99em; text-align: center; font-weight: normal; caption-side: top; } #T7AKTJJV742L6 thead { border-top: 2px solid #000; border-bottom: 2px solid #000; font-size: 0.99em; } #T7AKTJJV742L6 tbody { border-bottom: 2px solid #000; } #T7AKTJJV742L6 th { vertical-align: bottom; padding: 4px 5px 4px 5px; } #T7AKTJJV742L6 td { padding: 2px 5px 2px 5px; vertical-align: top; } #T7AKTJJV742L6 .grt-hrule-0 { border-top: 1.5px solid #000; } #T7AKTJJV742L6 .grt-hrule-1 { border-top: 1.0px solid #000; } #T7AKTJJV742L6 .grt-hrule-2 { border-top: 0.5px solid #000; } #T7AKTJJV742L6 .grt-bhrule-0 { border-bottom: 1.5px solid #000; } #T7AKTJJV742L6 .grt-bhrule-1 { border-bottom: 1px solid #000; } #T7AKTJJV742L6 .grt-vrule-index { border-left: 2px solid #000; } #T7AKTJJV742L6 .grt-vrule-0 { border-left: 1.5px solid #000; } #T7AKTJJV742L6 .grt-vrule-1 { border-left: 1px solid #000; } #T7AKTJJV742L6 .grt-vrule-2 { border-left: 0.5px solid #000; } #T7AKTJJV742L6 .grt-left { text-align: left; } #T7AKTJJV742L6 .grt-center { text-align: center; } #T7AKTJJV742L6 .grt-right { text-align: right; font-variant-numeric: tabular-nums; } #T7AKTJJV742L6 .grt-head { font-family: "Times New Roman", 'Courier New'; font-size: 0.99em; } #T7AKTJJV742L6 .grt-bold { font-weight: bold; }</style>
<table id="T7AKTJJV742L6">
<caption>Complex</caption>
<colgroup>
<col style="width: 2.7em;">
<col style="width: 4.5em;">
<col style="width: 3.6em;">
<col style="width: 5.4em;">
<col style="width: 5.4em;">
<col style="width: 5.8500000000000005em;">
<col style="width: 5.8500000000000005em;">
<col style="width: 9.0em;">
<col style="width: 4.05em;">
<col style="width: 4.05em;">
<col style="width: 5.4em;">
<col style="width: 4.5em;">
<col style="width: 4.5em;">
</colgroup>
<thead>
<tr>
<th class="grt-left"></th>
<th class="grt-left"></th>
<th class="grt-left"></th>
<th class="grt-center grt-bhrule-0 grt-vrule-index" colspan="3">partitioning</th>
<th class="grt-center grt-bhrule-0 grt-vrule-0" colspan="7">perturbed</th>
</tr>
<tr>
<th class="grt-left"></th>
<th class="grt-left"></th>
<th class="grt-left"></th>
<th class="grt-center grt-bhrule-1 grt-vrule-index" colspan="1">cried</th>
<th class="grt-center grt-bhrule-1 grt-vrule-1" colspan="1">recoil</th>
<th class="grt-center grt-bhrule-1 grt-vrule-1" colspan="1">saddened</th>
<th class="grt-center grt-bhrule-1 grt-vrule-0" colspan="2">cried</th>
<th class="grt-center grt-bhrule-1 grt-vrule-1" colspan="4">recoil</th>
<th class="grt-center grt-bhrule-1 grt-vrule-1" colspan="1">saddened</th>
</tr>
<tr>
<th class="grt-left">nines</th>
<th class="grt-left">riches</th>
<th class="grt-left">creative</th>
<th class="grt-center grt-vrule-index" colspan="1">merciless</th>
<th class="grt-center grt-vrule-1" colspan="1">quirks</th>
<th class="grt-center grt-vrule-1" colspan="1">unconstrained</th>
<th class="grt-center grt-vrule-0" colspan="1">desegregation</th>
<th class="grt-center grt-vrule-2" colspan="1">freezer</th>
<th class="grt-center grt-vrule-1" colspan="1">queue</th>
<th class="grt-center grt-vrule-2" colspan="1">racetrack</th>
<th class="grt-center grt-vrule-2" colspan="1">radiological</th>
<th class="grt-center grt-vrule-2" colspan="1">substances</th>
<th class="grt-center grt-vrule-1" colspan="1">locked</th>
</tr>
</thead>
<tbody>
<tr>
<td class="grt-left">51,924</td>
<td class="grt-left">inventions</td>
<td class="grt-left">10,331</td>
<td class="grt-right grt-vrule-index"> 2.623M</td>
<td class="grt-right grt-vrule-1">0.00000</td>
<td class="grt-right grt-vrule-1">2013</td>
<td class="grt-right grt-vrule-0">2016</td>
<td class="grt-right grt-vrule-2">-950.847p</td>
<td class="grt-right grt-vrule-1"> 18.245k</td>
<td class="grt-right grt-vrule-2"> 183.787M</td>
<td class="grt-right grt-vrule-2">1997</td>
<td class="grt-right grt-vrule-2">0.26346</td>
<td class="grt-center grt-vrule-1">2020-03-08</td>
</tr>
<tr>
<td class="grt-left"></td>
<td class="grt-left"></td>
<td class="grt-left grt-hrule-2">27,378</td>
<td class="grt-right grt-hrule-2 grt-vrule-index"> 5.630G</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">0.56872</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">2027</td>
<td class="grt-right grt-hrule-2 grt-vrule-0">2005</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">-8.399m</td>
<td class="grt-right grt-hrule-2 grt-vrule-1"> 14.163M</td>
<td class="grt-right grt-hrule-2 grt-vrule-2"> 3.408k</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">2019</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">0.00001</td>
<td class="grt-center grt-hrule-2 grt-vrule-1">2021-10-05</td>
</tr>
<tr>
<td class="grt-left"></td>
<td class="grt-left"></td>
<td class="grt-left grt-hrule-2">33,898</td>
<td class="grt-right grt-hrule-2 grt-vrule-index"> 780.044M</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">0.64145</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">1995</td>
<td class="grt-right grt-hrule-2 grt-vrule-0">2007</td>
<td class="grt-right grt-hrule-2 grt-vrule-2"> 434.460k</td>
<td class="grt-right grt-hrule-2 grt-vrule-1"> 6.827k</td>
<td class="grt-right grt-hrule-2 grt-vrule-2"> 50.624k</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">2024</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">0.63319</td>
<td class="grt-center grt-hrule-2 grt-vrule-1">2030-01-16</td>
</tr>
<tr>
<td class="grt-left"></td>
<td class="grt-left"></td>
<td class="grt-left grt-hrule-2">92,471</td>
<td class="grt-right grt-hrule-2 grt-vrule-index"> 40.028k</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">0.00008</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">1998</td>
<td class="grt-right grt-hrule-2 grt-vrule-0">2021</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">-0.103y</td>
<td class="grt-right grt-hrule-2 grt-vrule-1"> 30.670</td>
<td class="grt-right grt-hrule-2 grt-vrule-2"> 39.138M</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">2003</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">0.00000</td>
<td class="grt-center grt-hrule-2 grt-vrule-1">2008-02-13</td>
</tr>
<tr>
<td class="grt-left"></td>
<td class="grt-left grt-hrule-1">nuclear</td>
<td class="grt-left grt-hrule-1">9,425</td>
<td class="grt-right grt-hrule-1 grt-vrule-index"> 81.988M</td>
<td class="grt-right grt-hrule-1 grt-vrule-1">0.00000</td>
<td class="grt-right grt-hrule-1 grt-vrule-1">2002</td>
<td class="grt-right grt-hrule-1 grt-vrule-0">2000</td>
<td class="grt-right grt-hrule-1 grt-vrule-2">-277.700Z</td>
<td class="grt-right grt-hrule-1 grt-vrule-1"> 7.089</td>
<td class="grt-right grt-hrule-1 grt-vrule-2"> 159.617M</td>
<td class="grt-right grt-hrule-1 grt-vrule-2">2027</td>
<td class="grt-right grt-hrule-1 grt-vrule-2">1.23574</td>
<td class="grt-center grt-hrule-1 grt-vrule-1">2015-03-08</td>
</tr>
<tr>
<td class="grt-left"></td>
<td class="grt-left"></td>
<td class="grt-left grt-hrule-2">14,347</td>
<td class="grt-right grt-hrule-2 grt-vrule-index"> 24.193k</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">0.01225</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">2026</td>
<td class="grt-right grt-hrule-2 grt-vrule-0">2022</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">-64.380n</td>
<td class="grt-right grt-hrule-2 grt-vrule-1"> 136.721k</td>
<td class="grt-right grt-hrule-2 grt-vrule-2"> 107.424</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">1999</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">0.00037</td>
<td class="grt-center grt-hrule-2 grt-vrule-1">2015-03-08</td>
</tr>
<tr>
<td class="grt-left"></td>
<td class="grt-left"></td>
<td class="grt-left grt-hrule-2">62,320</td>
<td class="grt-right grt-hrule-2 grt-vrule-index"> 2.147M</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">0.00000</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">2016</td>
<td class="grt-right grt-hrule-2 grt-vrule-0">2028</td>
<td class="grt-right grt-hrule-2 grt-vrule-2"> 40.642M</td>
<td class="grt-right grt-hrule-2 grt-vrule-1"> 292.944</td>
<td class="grt-right grt-hrule-2 grt-vrule-2"> 1.390G</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">2008</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">0.00000</td>
<td class="grt-center grt-hrule-2 grt-vrule-1">2030-07-09</td>
</tr>
<tr>
<td class="grt-left"></td>
<td class="grt-left grt-hrule-1">repudiate</td>
<td class="grt-left grt-hrule-1">79,676</td>
<td class="grt-right grt-hrule-1 grt-vrule-index"> 1.807G</td>
<td class="grt-right grt-hrule-1 grt-vrule-1">0.00000</td>
<td class="grt-right grt-hrule-1 grt-vrule-1">2022</td>
<td class="grt-right grt-hrule-1 grt-vrule-0">2005</td>
<td class="grt-right grt-hrule-1 grt-vrule-2"> 3.843Z</td>
<td class="grt-right grt-hrule-1 grt-vrule-1"> 12.544k</td>
<td class="grt-right grt-hrule-1 grt-vrule-2"> 1.814k</td>
<td class="grt-right grt-hrule-1 grt-vrule-2">1997</td>
<td class="grt-right grt-hrule-1 grt-vrule-2">0.00000</td>
<td class="grt-center grt-hrule-1 grt-vrule-1">2008-02-13</td>
</tr>
<tr>
<td class="grt-left grt-hrule-0">54,240</td>
<td class="grt-left grt-hrule-0">inventions</td>
<td class="grt-left grt-hrule-0">10,825</td>
<td class="grt-right grt-hrule-0 grt-vrule-index"> 356.156</td>
<td class="grt-right grt-hrule-0 grt-vrule-1">0.37059</td>
<td class="grt-right grt-hrule-0 grt-vrule-1">2002</td>
<td class="grt-right grt-hrule-0 grt-vrule-0">2024</td>
<td class="grt-right grt-hrule-0 grt-vrule-2">-8.059Z</td>
<td class="grt-right grt-hrule-0 grt-vrule-1"> 369.243m</td>
<td class="grt-right grt-hrule-0 grt-vrule-2"> 264.911k</td>
<td class="grt-right grt-hrule-0 grt-vrule-2">2009</td>
<td class="grt-right grt-hrule-0 grt-vrule-2">0.00197</td>
<td class="grt-center grt-hrule-0 grt-vrule-1">2022-12-26</td>
</tr>
<tr>
<td class="grt-left"></td>
<td class="grt-left"></td>
<td class="grt-left grt-hrule-2">21,803</td>
<td class="grt-right grt-hrule-2 grt-vrule-index"> 210.024</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">0.19573</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">2016</td>
<td class="grt-right grt-hrule-2 grt-vrule-0">2011</td>
<td class="grt-right grt-hrule-2 grt-vrule-2"> 1066900.627Y</td>
<td class="grt-right grt-hrule-2 grt-vrule-1"> 22.193k</td>
<td class="grt-right grt-hrule-2 grt-vrule-2"> 4.962G</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">1993</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">0.00000</td>
<td class="grt-center grt-hrule-2 grt-vrule-1">2012-03-17</td>
</tr>
<tr>
<td class="grt-left"></td>
<td class="grt-left"></td>
<td class="grt-left grt-hrule-2">96,698</td>
<td class="grt-right grt-hrule-2 grt-vrule-index"> 7.274G</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">0.00046</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">2020</td>
<td class="grt-right grt-hrule-2 grt-vrule-0">1995</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">-2.932a</td>
<td class="grt-right grt-hrule-2 grt-vrule-1"> 1.422k</td>
<td class="grt-right grt-hrule-2 grt-vrule-2"> 853.603M</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">2021</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">0.00453</td>
<td class="grt-center grt-hrule-2 grt-vrule-1">2015-08-06</td>
</tr>
<tr>
<td class="grt-left"></td>
<td class="grt-left grt-hrule-1">nuclear</td>
<td class="grt-left grt-hrule-1">47,064</td>
<td class="grt-right grt-hrule-1 grt-vrule-index"> 3.393G</td>
<td class="grt-right grt-hrule-1 grt-vrule-1">0.02470</td>
<td class="grt-right grt-hrule-1 grt-vrule-1">1996</td>
<td class="grt-right grt-hrule-1 grt-vrule-0">2003</td>
<td class="grt-right grt-hrule-1 grt-vrule-2">-0.000y</td>
<td class="grt-right grt-hrule-1 grt-vrule-1"> 26.800</td>
<td class="grt-right grt-hrule-1 grt-vrule-2"> 371.147k</td>
<td class="grt-right grt-hrule-1 grt-vrule-2">2003</td>
<td class="grt-right grt-hrule-1 grt-vrule-2">0.00000</td>
<td class="grt-center grt-hrule-1 grt-vrule-1">2020-03-08</td>
</tr>
<tr>
<td class="grt-left"></td>
<td class="grt-left"></td>
<td class="grt-left grt-hrule-2">82,929</td>
<td class="grt-right grt-hrule-2 grt-vrule-index"> 23.345</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">0.00162</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">2004</td>
<td class="grt-right grt-hrule-2 grt-vrule-0">2017</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">-337.974P</td>
<td class="grt-right grt-hrule-2 grt-vrule-1"> 1.629G</td>
<td class="grt-right grt-hrule-2 grt-vrule-2"> 63.656M</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">2029</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">0.00009</td>
<td class="grt-center grt-hrule-2 grt-vrule-1">2030-07-09</td>
</tr>
<tr>
<td class="grt-left"></td>
<td class="grt-left grt-hrule-1">repudiate</td>
<td class="grt-left grt-hrule-1">27,297</td>
<td class="grt-right grt-hrule-1 grt-vrule-index"> 152.824</td>
<td class="grt-right grt-hrule-1 grt-vrule-1">0.02037</td>
<td class="grt-right grt-hrule-1 grt-vrule-1">1998</td>
<td class="grt-right grt-hrule-1 grt-vrule-0">2013</td>
<td class="grt-right grt-hrule-1 grt-vrule-2"> 11177879989333.562Y</td>
<td class="grt-right grt-hrule-1 grt-vrule-1"> 64.290k</td>
<td class="grt-right grt-hrule-1 grt-vrule-2"> 12.063M</td>
<td class="grt-right grt-hrule-1 grt-vrule-2">2009</td>
<td class="grt-right grt-hrule-1 grt-vrule-2">0.00000</td>
<td class="grt-center grt-hrule-1 grt-vrule-1">2021-10-05</td>
</tr>
<tr>
<td class="grt-left"></td>
<td class="grt-left"></td>
<td class="grt-left grt-hrule-2">38,293</td>
<td class="grt-right grt-hrule-2 grt-vrule-index"> 60.465M</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">3.24345</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">2002</td>
<td class="grt-right grt-hrule-2 grt-vrule-0">2017</td>
<td class="grt-right grt-hrule-2 grt-vrule-2"> 4.351Y</td>
<td class="grt-right grt-hrule-2 grt-vrule-1"> 781.098M</td>
<td class="grt-right grt-hrule-2 grt-vrule-2"> 2.664</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">2004</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">0.00000</td>
<td class="grt-center grt-hrule-2 grt-vrule-1">2015-08-06</td>
</tr>
<tr>
<td class="grt-left"></td>
<td class="grt-left"></td>
<td class="grt-left grt-hrule-2">43,065</td>
<td class="grt-right grt-hrule-2 grt-vrule-index"> 203.428</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">0.00459</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">2022</td>
<td class="grt-right grt-hrule-2 grt-vrule-0">2028</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">-47.829P</td>
<td class="grt-right grt-hrule-2 grt-vrule-1"> 1.409M</td>
<td class="grt-right grt-hrule-2 grt-vrule-2"> 473.835M</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">1995</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">0.00215</td>
<td class="grt-center grt-hrule-2 grt-vrule-1">2020-03-08</td>
</tr>
<tr>
<td class="grt-left"></td>
<td class="grt-left"></td>
<td class="grt-left grt-hrule-2">53,192</td>
<td class="grt-right grt-hrule-2 grt-vrule-index"> 131.611</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">0.00000</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">1995</td>
<td class="grt-right grt-hrule-2 grt-vrule-0">2003</td>
<td class="grt-right grt-hrule-2 grt-vrule-2"> 9.008P</td>
<td class="grt-right grt-hrule-2 grt-vrule-1"> 3.915G</td>
<td class="grt-right grt-hrule-2 grt-vrule-2"> 10.812M</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">2024</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">0.00056</td>
<td class="grt-center grt-hrule-2 grt-vrule-1">2026-05-02</td>
</tr>
<tr>
<td class="grt-left"></td>
<td class="grt-left"></td>
<td class="grt-left grt-hrule-2">56,629</td>
<td class="grt-right grt-hrule-2 grt-vrule-index"> 9.537G</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">0.00842</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">1994</td>
<td class="grt-right grt-hrule-2 grt-vrule-0">1994</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">-0.000y</td>
<td class="grt-right grt-hrule-2 grt-vrule-1"> 6.550k</td>
<td class="grt-right grt-hrule-2 grt-vrule-2"> 805.653k</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">2006</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">0.03449</td>
<td class="grt-center grt-hrule-2 grt-vrule-1">2011-01-10</td>
</tr>
<tr>
<td class="grt-left"></td>
<td class="grt-left"></td>
<td class="grt-left grt-hrule-2">69,244</td>
<td class="grt-right grt-hrule-2 grt-vrule-index"> 1.787</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">0.00000</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">2010</td>
<td class="grt-right grt-hrule-2 grt-vrule-0">2007</td>
<td class="grt-right grt-hrule-2 grt-vrule-2"> 3.397</td>
<td class="grt-right grt-hrule-2 grt-vrule-1"> 267.352M</td>
<td class="grt-right grt-hrule-2 grt-vrule-2"> 3.369M</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">2026</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">0.00001</td>
<td class="grt-center grt-hrule-2 grt-vrule-1">2020-03-08</td>
</tr>
<tr>
<td class="grt-left"></td>
<td class="grt-left"></td>
<td class="grt-left grt-hrule-2">82,911</td>
<td class="grt-right grt-hrule-2 grt-vrule-index"> 30.563k</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">0.00002</td>
<td class="grt-right grt-hrule-2 grt-vrule-1">2021</td>
<td class="grt-right grt-hrule-2 grt-vrule-0">2017</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">-0.000y</td>
<td class="grt-right grt-hrule-2 grt-vrule-1"> 30.860k</td>
<td class="grt-right grt-hrule-2 grt-vrule-2"> 42.570</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">2026</td>
<td class="grt-right grt-hrule-2 grt-vrule-2">0.00000</td>
<td class="grt-center grt-hrule-2 grt-vrule-1">2029-07-23</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</figure>
</div>
</div>
<p>Comments go here.</p>
</section>
</section>
<section id="other-input-formats" class="level1" data-number="4">
<h1 data-number="4"><span class="header-section-number">4</span> Other input formats</h1>
<section id="markown" class="level2" data-number="4.1">
<h2 data-number="4.1" class="anchored" data-anchor-id="markown"><span class="header-section-number">4.1</span> Markown</h2>
<table class="caption-top table">
<colgroup>
<col style="width: 70%">
<col style="width: 10%">
<col style="width: 9%">
<col style="width: 9%">
</colgroup>
<thead>
<tr class="header">
<th style="text-align: left;"><strong>Insured group or insurance product</strong></th>
<th style="text-align: center;"><strong>Sat</strong></th>
<th style="text-align: center;"><strong>RP</strong></th>
<th style="text-align: center;"><strong>RF</strong></th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">Non-standard auto</td>
<td style="text-align: center;">x</td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
</tr>
<tr class="even">
<td style="text-align: left;">General liability for judgment proof corporation</td>
<td style="text-align: center;">x</td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
</tr>
<tr class="odd">
<td style="text-align: left;">Term life insurance</td>
<td style="text-align: center;"></td>
<td style="text-align: center;">x</td>
<td style="text-align: center;"></td>
</tr>
<tr class="even">
<td style="text-align: left;">Catastrophe Reinsurance, outside rating agency bounds</td>
<td style="text-align: center;"></td>
<td style="text-align: center;">x</td>
<td style="text-align: center;"></td>
</tr>
<tr class="odd">
<td style="text-align: left;">High limit property per risk reinsurance</td>
<td style="text-align: center;"></td>
<td style="text-align: center;">x</td>
<td style="text-align: center;"></td>
</tr>
<tr class="even">
<td style="text-align: left;">Personal lines for affluent individuals</td>
<td style="text-align: center;">x</td>
<td style="text-align: center;">x</td>
<td style="text-align: center;"></td>
</tr>
<tr class="odd">
<td style="text-align: left;">Small commercial lines</td>
<td style="text-align: center;">x</td>
<td style="text-align: center;">x</td>
<td style="text-align: center;"></td>
</tr>
<tr class="even">
<td style="text-align: left;">Catastrophe reinsurance, within rating agency bounds</td>
<td style="text-align: center;">x</td>
<td style="text-align: center;">x</td>
<td style="text-align: center;"></td>
</tr>
<tr class="odd">
<td style="text-align: left;">Large account captive reinsurance</td>
<td style="text-align: center;"></td>
<td style="text-align: center;"></td>
<td style="text-align: center;">x</td>
</tr>
<tr class="even">
<td style="text-align: left;">Structured quota share, requiring a risk transfer test</td>
<td style="text-align: center;">x</td>
<td style="text-align: center;"></td>
<td style="text-align: center;">x</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Working layer casualty excess of loss</td>
<td style="text-align: center;"></td>
<td style="text-align: center;">x</td>
<td style="text-align: center;">x</td>
</tr>
<tr class="even">
<td style="text-align: left;">Surplus relief quota share on cat exposed line</td>
<td style="text-align: center;">x</td>
<td style="text-align: center;">x</td>
<td style="text-align: center;">x</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Middle market commercial lines work comp or commercial auto</td>
<td style="text-align: center;">x</td>
<td style="text-align: center;">x</td>
<td style="text-align: center;">x</td>
</tr>
</tbody>
</table>
<div class="cell" data-execution_count="17">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb18"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb18-1"><a href="#cb18-1" aria-hidden="true" tabindex="-1"></a>txt <span class="op">=</span> <span class="st">'''</span></span>
<span id="cb18-2"><a href="#cb18-2" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb18-3"><a href="#cb18-3" aria-hidden="true" tabindex="-1"></a><span class="st">| **Insured group or insurance product** | **Sat** | **RP** | **RF** |</span></span>
<span id="cb18-4"><a href="#cb18-4" aria-hidden="true" tabindex="-1"></a><span class="st">|:------------------------------------------------------------|:-------:|:------:|:------:|</span></span>
<span id="cb18-5"><a href="#cb18-5" aria-hidden="true" tabindex="-1"></a><span class="st">| Non-standard auto | x | | |</span></span>
<span id="cb18-6"><a href="#cb18-6" aria-hidden="true" tabindex="-1"></a><span class="st">| General liability for judgment proof corporation | x | | |</span></span>
<span id="cb18-7"><a href="#cb18-7" aria-hidden="true" tabindex="-1"></a><span class="st">| Term life insurance | | x | |</span></span>
<span id="cb18-8"><a href="#cb18-8" aria-hidden="true" tabindex="-1"></a><span class="st">| Catastrophe Reinsurance, outside rating agency bounds | | x | |</span></span>
<span id="cb18-9"><a href="#cb18-9" aria-hidden="true" tabindex="-1"></a><span class="st">| High limit property per risk reinsurance | | x | |</span></span>
<span id="cb18-10"><a href="#cb18-10" aria-hidden="true" tabindex="-1"></a><span class="st">| Personal lines for affluent individuals | x | x | |</span></span>
<span id="cb18-11"><a href="#cb18-11" aria-hidden="true" tabindex="-1"></a><span class="st">| Small commercial lines | x | x | |</span></span>
<span id="cb18-12"><a href="#cb18-12" aria-hidden="true" tabindex="-1"></a><span class="st">| Catastrophe reinsurance, within rating agency bounds | x | x | |</span></span>
<span id="cb18-13"><a href="#cb18-13" aria-hidden="true" tabindex="-1"></a><span class="st">| Large account captive reinsurance | | | x |</span></span>
<span id="cb18-14"><a href="#cb18-14" aria-hidden="true" tabindex="-1"></a><span class="st">| Structured quota share, requiring a risk transfer test | x | | x |</span></span>
<span id="cb18-15"><a href="#cb18-15" aria-hidden="true" tabindex="-1"></a><span class="st">| Working layer casualty excess of loss | | x | x |</span></span>
<span id="cb18-16"><a href="#cb18-16" aria-hidden="true" tabindex="-1"></a><span class="st">| Surplus relief quota share on cat exposed line | x | x | x |</span></span>
<span id="cb18-17"><a href="#cb18-17" aria-hidden="true" tabindex="-1"></a><span class="st">| Middle market commercial lines work comp or commercial auto | x | x | x |</span></span>
<span id="cb18-18"><a href="#cb18-18" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb18-19"><a href="#cb18-19" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb18-20"><a href="#cb18-20" aria-hidden="true" tabindex="-1"></a><span class="st">'''</span></span>
<span id="cb18-21"><a href="#cb18-21" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb18-22"><a href="#cb18-22" aria-hidden="true" tabindex="-1"></a>GT(txt)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div id="tbl-greater-tables-test-5" class="cell quarto-float quarto-figure quarto-figure-left anchored" data-execution_count="17">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-greater-tables-test-5-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;14: GT from markdown table input
</figcaption>
<div aria-describedby="tbl-greater-tables-test-5-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output cell-output-display" data-execution_count="17">
<div class="greater-table">
<style>#T5S2F5YYX26SD { border-collapse: collapse; font-family: "Roboto", "Open Sans Condensed", "Arial", 'Segoe UI', sans-serif; font-size: 0.9em; width: auto; margin: 10px auto; border: none; overflow: auto; margin-left: auto; margin-right: auto; } #T5S2F5YYX26SD caption { padding: 4px 10px 2px 10px; font-size: 1.1em; text-align: center; font-weight: normal; caption-side: top; } #T5S2F5YYX26SD thead { border-top: 1px solid #000; border-bottom: 1px solid #000; font-size: 1.0em; } #T5S2F5YYX26SD tbody { border-bottom: 1px solid #000; } #T5S2F5YYX26SD th { vertical-align: bottom; padding: 4px 10px 4px 10px; } #T5S2F5YYX26SD td { padding: 2px 10px 2px 10px; vertical-align: top; } #T5S2F5YYX26SD .grt-hrule-0 { border-top: 0px solid #000; } #T5S2F5YYX26SD .grt-hrule-1 { border-top: 0px solid #000; } #T5S2F5YYX26SD .grt-hrule-2 { border-top: 0px solid #000; } #T5S2F5YYX26SD .grt-bhrule-0 { border-bottom: 0px solid #000; } #T5S2F5YYX26SD .grt-bhrule-1 { border-bottom: 0px solid #000; } #T5S2F5YYX26SD .grt-vrule-index { border-left: 1px solid #000; } #T5S2F5YYX26SD .grt-vrule-0 { border-left: 0px solid #000; } #T5S2F5YYX26SD .grt-vrule-1 { border-left: 0px solid #000; } #T5S2F5YYX26SD .grt-vrule-2 { border-left: 0px solid #000; } #T5S2F5YYX26SD .grt-left { text-align: left; } #T5S2F5YYX26SD .grt-center { text-align: center; } #T5S2F5YYX26SD .grt-right { text-align: right; font-variant-numeric: tabular-nums; } #T5S2F5YYX26SD .grt-head { font-family: "Times New Roman", 'Courier New'; font-size: 1.0em; } #T5S2F5YYX26SD .grt-bold { font-weight: bold; }</style>
<table id="T5S2F5YYX26SD">
<colgroup>
<col style="width: 29.5em;">
<col style="width: 1.5em;">
<col style="width: 1.0em;">
<col style="width: 1.0em;">
</colgroup>
<thead>
<tr>
<th class="grt-center" colspan="1">Insured group or insurance product</th>
<th class="grt-center grt-vrule-0" colspan="1">Sat</th>
<th class="grt-center grt-vrule-0" colspan="1">RP</th>
<th class="grt-center grt-vrule-0" colspan="1">RF</th>
</tr>
</thead>
<tbody>
<tr>
<td class="grt-left">Non-standard auto</td>
<td class="grt-center grt-vrule-0">x</td>
<td class="grt-center grt-vrule-0"></td>
<td class="grt-center grt-vrule-0"></td>
</tr>
<tr>
<td class="grt-left">General liability for judgment proof corporation</td>
<td class="grt-center grt-vrule-0">x</td>
<td class="grt-center grt-vrule-0"></td>
<td class="grt-center grt-vrule-0"></td>
</tr>
<tr>
<td class="grt-left">Term life insurance</td>
<td class="grt-center grt-vrule-0"></td>
<td class="grt-center grt-vrule-0">x</td>
<td class="grt-center grt-vrule-0"></td>
</tr>
<tr>
<td class="grt-left">Catastrophe Reinsurance, outside rating agency bounds</td>
<td class="grt-center grt-vrule-0"></td>
<td class="grt-center grt-vrule-0">x</td>
<td class="grt-center grt-vrule-0"></td>
</tr>
<tr>
<td class="grt-left">High limit property per risk reinsurance</td>
<td class="grt-center grt-vrule-0"></td>
<td class="grt-center grt-vrule-0">x</td>
<td class="grt-center grt-vrule-0"></td>
</tr>
<tr>
<td class="grt-left">Personal lines for affluent individuals</td>
<td class="grt-center grt-vrule-0">x</td>
<td class="grt-center grt-vrule-0">x</td>
<td class="grt-center grt-vrule-0"></td>
</tr>
<tr>
<td class="grt-left">Small commercial lines</td>
<td class="grt-center grt-vrule-0">x</td>
<td class="grt-center grt-vrule-0">x</td>
<td class="grt-center grt-vrule-0"></td>
</tr>
<tr>
<td class="grt-left">Catastrophe reinsurance, within rating agency bounds</td>
<td class="grt-center grt-vrule-0">x</td>
<td class="grt-center grt-vrule-0">x</td>
<td class="grt-center grt-vrule-0"></td>
</tr>
<tr>
<td class="grt-left">Large account captive reinsurance</td>
<td class="grt-center grt-vrule-0"></td>
<td class="grt-center grt-vrule-0"></td>
<td class="grt-center grt-vrule-0">x</td>
</tr>
<tr>
<td class="grt-left">Structured quota share, requiring a risk transfer test</td>
<td class="grt-center grt-vrule-0">x</td>
<td class="grt-center grt-vrule-0"></td>
<td class="grt-center grt-vrule-0">x</td>
</tr>
<tr>
<td class="grt-left">Working layer casualty excess of loss</td>
<td class="grt-center grt-vrule-0"></td>
<td class="grt-center grt-vrule-0">x</td>
<td class="grt-center grt-vrule-0">x</td>
</tr>
<tr>
<td class="grt-left">Surplus relief quota share on cat exposed line</td>
<td class="grt-center grt-vrule-0">x</td>
<td class="grt-center grt-vrule-0">x</td>
<td class="grt-center grt-vrule-0">x</td>
</tr>
<tr>
<td class="grt-left">Middle market commercial lines work comp or commercial auto</td>
<td class="grt-center grt-vrule-0">x</td>
<td class="grt-center grt-vrule-0">x</td>
<td class="grt-center grt-vrule-0">x</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</figure>
</div>
</div>
</section>
<section id="list-of-lists" class="level2" data-number="4.2">
<h2 data-number="4.2" class="anchored" data-anchor-id="list-of-lists"><span class="header-section-number">4.2</span> List of lists</h2>
<div class="cell" data-execution_count="18">
<details class="code-fold">
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb19"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb19-1"><a href="#cb19-1" aria-hidden="true" tabindex="-1"></a>lol <span class="op">=</span> [[<span class="st">'a'</span>, <span class="st">'b'</span>, <span class="st">'c'</span>, <span class="st">'d'</span>], [<span class="st">'west'</span>, <span class="dv">10</span>, <span class="dv">20</span>, <span class="dv">30</span>], [<span class="st">'east'</span>, <span class="dv">10</span>, <span class="dv">200</span>, <span class="dv">30</span>], [<span class="st">'north'</span>, <span class="dv">10</span>, <span class="dv">20</span>, <span class="dv">300</span>], [<span class="st">'south'</span>, <span class="dv">100</span>, <span class="dv">20</span>, <span class="dv">30</span>]]</span>
<span id="cb19-2"><a href="#cb19-2" aria-hidden="true" tabindex="-1"></a>GT(lol)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div id="tbl-greater-tables-test-6" class="cell quarto-float quarto-figure quarto-figure-left anchored" data-execution_count="18">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-greater-tables-test-6-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;15: GT output for list of lists input
</figcaption>
<div aria-describedby="tbl-greater-tables-test-6-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="cell-output cell-output-display" data-execution_count="18">
<div class="greater-table">
<style>#TF3INA6UM4WRV { border-collapse: collapse; font-family: "Roboto", "Open Sans Condensed", "Arial", 'Segoe UI', sans-serif; font-size: 0.9em; width: auto; margin: 10px auto; border: none; overflow: auto; margin-left: auto; margin-right: auto; } #TF3INA6UM4WRV caption { padding: 4px 10px 2px 10px; font-size: 1.1em; text-align: center; font-weight: normal; caption-side: top; } #TF3INA6UM4WRV thead { border-top: 1px solid #000; border-bottom: 1px solid #000; font-size: 1.0em; } #TF3INA6UM4WRV tbody { border-bottom: 1px solid #000; } #TF3INA6UM4WRV th { vertical-align: bottom; padding: 4px 10px 4px 10px; } #TF3INA6UM4WRV td { padding: 2px 10px 2px 10px; vertical-align: top; } #TF3INA6UM4WRV .grt-hrule-0 { border-top: 0px solid #000; } #TF3INA6UM4WRV .grt-hrule-1 { border-top: 0px solid #000; } #TF3INA6UM4WRV .grt-hrule-2 { border-top: 0px solid #000; } #TF3INA6UM4WRV .grt-bhrule-0 { border-bottom: 0px solid #000; } #TF3INA6UM4WRV .grt-bhrule-1 { border-bottom: 0px solid #000; } #TF3INA6UM4WRV .grt-vrule-index { border-left: 1px solid #000; } #TF3INA6UM4WRV .grt-vrule-0 { border-left: 0px solid #000; } #TF3INA6UM4WRV .grt-vrule-1 { border-left: 0px solid #000; } #TF3INA6UM4WRV .grt-vrule-2 { border-left: 0px solid #000; } #TF3INA6UM4WRV .grt-left { text-align: left; } #TF3INA6UM4WRV .grt-center { text-align: center; } #TF3INA6UM4WRV .grt-right { text-align: right; font-variant-numeric: tabular-nums; } #TF3INA6UM4WRV .grt-head { font-family: "Times New Roman", 'Courier New'; font-size: 1.0em; } #TF3INA6UM4WRV .grt-bold { font-weight: bold; }</style>
<table id="TF3INA6UM4WRV">
<colgroup>
<col style="width: 11.607142857142858em;">
<col style="width: 6.964285714285715em;">
<col style="width: 6.964285714285715em;">
<col style="width: 6.964285714285715em;">
</colgroup>
<thead>
<tr>
<th class="grt-center" colspan="1">a</th>
<th class="grt-center grt-vrule-0" colspan="1">b</th>
<th class="grt-center grt-vrule-0" colspan="1">c</th>
<th class="grt-center grt-vrule-0" colspan="1">d</th>
</tr>
</thead>
<tbody>
<tr>
<td class="grt-left">west</td>
<td class="grt-left grt-vrule-0">10</td>
<td class="grt-left grt-vrule-0">20</td>
<td class="grt-left grt-vrule-0">30</td>
</tr>
<tr>
<td class="grt-left">east</td>
<td class="grt-left grt-vrule-0">10</td>
<td class="grt-left grt-vrule-0">200</td>
<td class="grt-left grt-vrule-0">30</td>
</tr>
<tr>
<td class="grt-left">north</td>
<td class="grt-left grt-vrule-0">10</td>
<td class="grt-left grt-vrule-0">20</td>
<td class="grt-left grt-vrule-0">300</td>
</tr>
<tr>
<td class="grt-left">south</td>
<td class="grt-left grt-vrule-0">100</td>
<td class="grt-left grt-vrule-0">20</td>
<td class="grt-left grt-vrule-0">30</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</figure>
</div>
</div>
</section>
</section>
</main>
<!-- /main column -->
<script id="quarto-html-after-body" type="application/javascript">
window.document.addEventListener("DOMContentLoaded", function (event) {
const toggleBodyColorMode = (bsSheetEl) => {
const mode = bsSheetEl.getAttribute("data-mode");
const bodyEl = window.document.querySelector("body");
if (mode === "dark") {
bodyEl.classList.add("quarto-dark");
bodyEl.classList.remove("quarto-light");
} else {
bodyEl.classList.add("quarto-light");
bodyEl.classList.remove("quarto-dark");
}
}
const toggleBodyColorPrimary = () => {
const bsSheetEl = window.document.querySelector("link#quarto-bootstrap");
if (bsSheetEl) {
toggleBodyColorMode(bsSheetEl);
}
}
toggleBodyColorPrimary();
const icon = "";
const anchorJS = new window.AnchorJS();
anchorJS.options = {
placement: 'right',
icon: icon
};
anchorJS.add('.anchored');
const isCodeAnnotation = (el) => {
for (const clz of el.classList) {
if (clz.startsWith('code-annotation-')) {
return true;
}
}
return false;
}
const onCopySuccess = function(e) {
// button target
const button = e.trigger;
// don't keep focus
button.blur();
// flash "checked"
button.classList.add('code-copy-button-checked');
var currentTitle = button.getAttribute("title");
button.setAttribute("title", "Copied!");
let tooltip;
if (window.bootstrap) {
button.setAttribute("data-bs-toggle", "tooltip");
button.setAttribute("data-bs-placement", "left");
button.setAttribute("data-bs-title", "Copied!");
tooltip = new bootstrap.Tooltip(button,
{ trigger: "manual",
customClass: "code-copy-button-tooltip",
offset: [0, -8]});
tooltip.show();
}
setTimeout(function() {
if (tooltip) {
tooltip.hide();
button.removeAttribute("data-bs-title");
button.removeAttribute("data-bs-toggle");
button.removeAttribute("data-bs-placement");
}
button.setAttribute("title", currentTitle);
button.classList.remove('code-copy-button-checked');
}, 1000);
// clear code selection
e.clearSelection();
}
const getTextToCopy = function(trigger) {
const codeEl = trigger.previousElementSibling.cloneNode(true);
for (const childEl of codeEl.children) {
if (isCodeAnnotation(childEl)) {
childEl.remove();
}
}
return codeEl.innerText;
}
const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
text: getTextToCopy
});
clipboard.on('success', onCopySuccess);
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
text: getTextToCopy,
container: window.document.getElementById('quarto-embedded-source-code-modal')
});
clipboardModal.on('success', onCopySuccess);
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
// Inspect non-navigation links and adorn them if external
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)');
for (var i=0; i<links.length; i++) {
const link = links[i];
if (!isInternal(link.href)) {
// undo the damage that might have been done by quarto-nav.js in the case of
// links that we want to consider external
if (link.dataset.originalHref !== undefined) {
link.href = link.dataset.originalHref;
}
// target, if specified
link.setAttribute("target", "_blank");
if (link.getAttribute("rel") === null) {
link.setAttribute("rel", "noopener");
}
// default icon
link.classList.add("external");
}
}
function tippyHover(el, contentFn, onTriggerFn, onUntriggerFn) {
const config = {
allowHTML: true,
maxWidth: 500,
delay: 100,
arrow: false,
appendTo: function(el) {
return el.parentElement;
},
interactive: true,
interactiveBorder: 10,
theme: 'quarto',
placement: 'bottom-start',
};
if (contentFn) {
config.content = contentFn;
}
if (onTriggerFn) {
config.onTrigger = onTriggerFn;
}
if (onUntriggerFn) {
config.onUntrigger = onUntriggerFn;
}
window.tippy(el, config);
}
const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
for (var i=0; i<noterefs.length; i++) {
const ref = noterefs[i];
tippyHover(ref, function() {
// use id or data attribute instead here
let href = ref.getAttribute('data-footnote-href') || ref.getAttribute('href');
try { href = new URL(href).hash; } catch {}
const id = href.replace(/^#\/?/, "");
const note = window.document.getElementById(id);
if (note) {
return note.innerHTML;
} else {
return "";
}
});
}
let selectedAnnoteEl;
const selectorForAnnotation = ( cell, annotation) => {
let cellAttr = 'data-code-cell="' + cell + '"';
let lineAttr = 'data-code-annotation="' + annotation + '"';
const selector = 'span[' + cellAttr + '][' + lineAttr + ']';
return selector;
}
const selectCodeLines = (annoteEl) => {
const doc = window.document;
const targetCell = annoteEl.getAttribute("data-target-cell");
const targetAnnotation = annoteEl.getAttribute("data-target-annotation");
const annoteSpan = window.document.querySelector(selectorForAnnotation(targetCell, targetAnnotation));
const lines = annoteSpan.getAttribute("data-code-lines").split(",");
const lineIds = lines.map((line) => {
return targetCell + "-" + line;
})
let top = null;
let height = null;
let parent = null;
if (lineIds.length > 0) {
//compute the position of the single el (top and bottom and make a div)
const el = window.document.getElementById(lineIds[0]);
top = el.offsetTop;
height = el.offsetHeight;
parent = el.parentElement.parentElement;
if (lineIds.length > 1) {
const lastEl = window.document.getElementById(lineIds[lineIds.length - 1]);
const bottom = lastEl.offsetTop + lastEl.offsetHeight;
height = bottom - top;
}
if (top !== null && height !== null && parent !== null) {
// cook up a div (if necessary) and position it
let div = window.document.getElementById("code-annotation-line-highlight");
if (div === null) {
div = window.document.createElement("div");
div.setAttribute("id", "code-annotation-line-highlight");
div.style.position = 'absolute';
parent.appendChild(div);
}
div.style.top = top - 2 + "px";
div.style.height = height + 4 + "px";
div.style.left = 0;
let gutterDiv = window.document.getElementById("code-annotation-line-highlight-gutter");
if (gutterDiv === null) {
gutterDiv = window.document.createElement("div");
gutterDiv.setAttribute("id", "code-annotation-line-highlight-gutter");
gutterDiv.style.position = 'absolute';
const codeCell = window.document.getElementById(targetCell);
const gutter = codeCell.querySelector('.code-annotation-gutter');
gutter.appendChild(gutterDiv);
}
gutterDiv.style.top = top - 2 + "px";
gutterDiv.style.height = height + 4 + "px";
}
selectedAnnoteEl = annoteEl;
}
};
const unselectCodeLines = () => {
const elementsIds = ["code-annotation-line-highlight", "code-annotation-line-highlight-gutter"];
elementsIds.forEach((elId) => {
const div = window.document.getElementById(elId);
if (div) {
div.remove();
}
});
selectedAnnoteEl = undefined;
};
// Handle positioning of the toggle
window.addEventListener(
"resize",
throttle(() => {
elRect = undefined;
if (selectedAnnoteEl) {
selectCodeLines(selectedAnnoteEl);
}
}, 10)
);
function throttle(fn, ms) {
let throttle = false;
let timer;
return (...args) => {
if(!throttle) { // first call gets through
fn.apply(this, args);
throttle = true;
} else { // all the others get throttled
if(timer) clearTimeout(timer); // cancel #2
timer = setTimeout(() => {
fn.apply(this, args);
timer = throttle = false;
}, ms);
}
};
}
// Attach click handler to the DT
const annoteDls = window.document.querySelectorAll('dt[data-target-cell]');
for (const annoteDlNode of annoteDls) {
annoteDlNode.addEventListener('click', (event) => {
const clickedEl = event.target;
if (clickedEl !== selectedAnnoteEl) {
unselectCodeLines();
const activeEl = window.document.querySelector('dt[data-target-cell].code-annotation-active');
if (activeEl) {
activeEl.classList.remove('code-annotation-active');
}
selectCodeLines(clickedEl);
clickedEl.classList.add('code-annotation-active');
} else {
// Unselect the line
unselectCodeLines();
clickedEl.classList.remove('code-annotation-active');
}
});
}
const findCites = (el) => {
const parentEl = el.parentElement;
if (parentEl) {
const cites = parentEl.dataset.cites;
if (cites) {
return {
el,
cites: cites.split(' ')
};
} else {
return findCites(el.parentElement)
}
} else {
return undefined;
}
};
var bibliorefs = window.document.querySelectorAll('a[role="doc-biblioref"]');
for (var i=0; i<bibliorefs.length; i++) {
const ref = bibliorefs[i];
const citeInfo = findCites(ref);
if (citeInfo) {
tippyHover(citeInfo.el, function() {
var popup = window.document.createElement('div');
citeInfo.cites.forEach(function(cite) {
var citeDiv = window.document.createElement('div');
citeDiv.classList.add('hanging-indent');
citeDiv.classList.add('csl-entry');
var biblioDiv = window.document.getElementById('ref-' + cite);
if (biblioDiv) {
citeDiv.innerHTML = biblioDiv.innerHTML;
}
popup.appendChild(citeDiv);
});
return popup.innerHTML;
});
}
}
});
</script>
</div> <!-- /content -->
<script src="tables_files/libs/quarto-html/zenscroll-min.js"></script>
</body></html>