Files
greater_tables_project/tests/tables.ipynb
T

5245 lines
248 KiB
Plaintext

{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"---\n",
"title: All Tables Test - New TestDFGenerator test_suite\n",
"author:\n",
" - name: Stephen J. Mildenhall\n",
" orcid: 0000-0001-6956-0098\n",
" corresponding: true\n",
" email: mynl@me.com\n",
"date: last-modified\n",
"colorlinks: true\n",
"link-citations: true\n",
"link-bibliography: true\n",
"tbl-align: left\n",
"number-sections: true\n",
"number-offset: 0\n",
"number-depth: 3\n",
"code-line-numbers: false\n",
"code-copy: true\n",
"code-overflow: wrap\n",
"code-fold: true\n",
"fig-format: svg\n",
"fig-align: left\n",
"format:\n",
" html:\n",
" html-table-processing: none\n",
" theme: litera\n",
" fontsize: 0.9em\n",
" css: styles.css\n",
" include-in-header: pmir-header.html\n",
" smooth-scroll: true\n",
" toc-title: 'In this chapter:'\n",
" citations-hover: true\n",
" crossrefs-hover: false\n",
" fig-responsive: true\n",
" footnotes-hover: true\n",
" lightbox: true\n",
" link-external-icon: true\n",
" link-external-newwindow: true\n",
" page-layout: article\n",
" page-navigation: true\n",
" reference-section-title: ' '\n",
" page-footer:\n",
" left: 'Stephen J. Mildenhall. License: [CC BY-SA 2.0](https://creativecommons.org/licenses/by-sa/2.0/).'\n",
" twitter-card: true\n",
" open-graph: true\n",
" toc: true\n",
" toc-depth: 3\n",
" math: mathjax\n",
" pdf:\n",
" include-in-header: prefobnicate.tex\n",
" documentclass: scrartcl\n",
" papersize: a4\n",
" fontsize: 11pt\n",
" keep-tex: true\n",
" geometry: margin=0.8in\n",
" pdf-engine: lualatex\n",
" pdf-engine-opts:\n",
" - '-interaction=nonstopmode'\n",
" toc: false\n",
"execute:\n",
" eval: true\n",
" echo: true\n",
" cache: true\n",
" cache-type: jupyter\n",
" freeze: false\n",
" kernel: python3\n",
" engine: jupyter\n",
" daemon: 1200\n",
"jupyter:\n",
" jupytext:\n",
" formats: ipynb,qmd:quarto\n",
" text_representation:\n",
" extension: .qmd\n",
" format_name: quarto\n",
" format_version: '1.0'\n",
" jupytext_version: 1.16.4\n",
" kernelspec:\n",
" display_name: Python 3 (ipykernel)\n",
" language: python\n",
" name: python3\n",
"---"
]
},
{
"cell_type": "code",
"execution_count": 40,
"metadata": {},
"outputs": [],
"source": [
"#| echo: true\n",
"#| label: setup\n",
"from IPython.display import HTML, display\n",
"import matplotlib as mpl\n",
"import matplotlib.dates as mdates\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pandas as pd\n",
"\n",
"import greater_tables as gter\n",
"import greater_tables.utilities as gtu\n",
"from greater_tables import GT, sGT\n",
"gter.logger.setLevel(gter.logging.WARNING)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"...code build completed. \n",
"\n",
"# A Hard-Rules table\n",
"\n",
"Second level index has mixed types. Range of magnitudes. Picking out years.\n",
"\n",
"\\footnotesize"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 61,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead tr th {\n",
" text-align: left;\n",
" }\n",
"\n",
" .dataframe thead tr:last-of-type th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr>\n",
" <th>Level 1</th>\n",
" <th colspan=\"2\" halign=\"left\">A</th>\n",
" <th colspan=\"2\" halign=\"left\">B</th>\n",
" <th>C</th>\n",
" </tr>\n",
" <tr>\n",
" <th>Level 2</th>\n",
" <th>Int</th>\n",
" <th>Float</th>\n",
" <th>Float</th>\n",
" <th>3</th>\n",
" <th>Longer Text</th>\n",
" </tr>\n",
" <tr>\n",
" <th>years!</th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>2000</th>\n",
" <td>-100000</td>\n",
" <td>2.388937e-12</td>\n",
" <td>-1601.000</td>\n",
" <td>2025-03-14 00:00:00</td>\n",
" <td>once upon a time</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2001</th>\n",
" <td>-91667</td>\n",
" <td>2.221711e-11</td>\n",
" <td>-1367.625</td>\n",
" <td>2025-03-26 04:00:00</td>\n",
" <td>risk is hard to define</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2002</th>\n",
" <td>-83333</td>\n",
" <td>2.066191e-10</td>\n",
" <td>-1134.250</td>\n",
" <td>2025-04-07 08:00:00</td>\n",
" <td>not in Kansas anymore</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2003</th>\n",
" <td>-75000</td>\n",
" <td>1.921558e-09</td>\n",
" <td>-900.875</td>\n",
" <td>2025-04-19 12:00:00</td>\n",
" <td>neutrinos are hard to detect</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2004</th>\n",
" <td>-66667</td>\n",
" <td>1.787049e-08</td>\n",
" <td>-667.500</td>\n",
" <td>2025-05-01 16:00:00</td>\n",
" <td>Adam Smith is the father of economics</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2005</th>\n",
" <td>-58333</td>\n",
" <td>1.661955e-07</td>\n",
" <td>-434.125</td>\n",
" <td>2025-05-13 20:00:00</td>\n",
" <td>once upon a time</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2006</th>\n",
" <td>-50000</td>\n",
" <td>1.545619e-06</td>\n",
" <td>-200.750</td>\n",
" <td>2025-05-26 00:00:00</td>\n",
" <td>risk is hard to define</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2007</th>\n",
" <td>-41667</td>\n",
" <td>1.437425e-05</td>\n",
" <td>32.625</td>\n",
" <td>2025-06-07 04:00:00</td>\n",
" <td>not in Kansas anymore</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2008</th>\n",
" <td>-33333</td>\n",
" <td>1.336805e-04</td>\n",
" <td>266.000</td>\n",
" <td>2025-06-19 08:00:00</td>\n",
" <td>neutrinos are hard to detect</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2009</th>\n",
" <td>-25000</td>\n",
" <td>1.243229e-03</td>\n",
" <td>499.375</td>\n",
" <td>2025-07-01 12:00:00</td>\n",
" <td>Adam Smith is the father of economics</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2010</th>\n",
" <td>-16667</td>\n",
" <td>1.156203e-02</td>\n",
" <td>732.750</td>\n",
" <td>2025-07-13 16:00:00</td>\n",
" <td>once upon a time</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2011</th>\n",
" <td>-8333</td>\n",
" <td>1.075269e-01</td>\n",
" <td>966.125</td>\n",
" <td>2025-07-25 20:00:00</td>\n",
" <td>risk is hard to define</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2012</th>\n",
" <td>0</td>\n",
" <td>1.000000e+00</td>\n",
" <td>1199.500</td>\n",
" <td>2025-08-07 00:00:00</td>\n",
" <td>not in Kansas anymore</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2013</th>\n",
" <td>8333</td>\n",
" <td>9.300000e+00</td>\n",
" <td>1432.875</td>\n",
" <td>2025-08-19 04:00:00</td>\n",
" <td>neutrinos are hard to detect</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2014</th>\n",
" <td>16667</td>\n",
" <td>8.649000e+01</td>\n",
" <td>1666.250</td>\n",
" <td>2025-08-31 08:00:00</td>\n",
" <td>Adam Smith is the father of economics</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2015</th>\n",
" <td>25000</td>\n",
" <td>8.043570e+02</td>\n",
" <td>1899.625</td>\n",
" <td>2025-09-12 12:00:00</td>\n",
" <td>once upon a time</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2016</th>\n",
" <td>33333</td>\n",
" <td>7.480520e+03</td>\n",
" <td>2133.000</td>\n",
" <td>2025-09-24 16:00:00</td>\n",
" <td>risk is hard to define</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2017</th>\n",
" <td>41667</td>\n",
" <td>6.956884e+04</td>\n",
" <td>2366.375</td>\n",
" <td>2025-10-06 20:00:00</td>\n",
" <td>not in Kansas anymore</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2018</th>\n",
" <td>50000</td>\n",
" <td>6.469902e+05</td>\n",
" <td>2599.750</td>\n",
" <td>2025-10-19 00:00:00</td>\n",
" <td>neutrinos are hard to detect</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2019</th>\n",
" <td>58333</td>\n",
" <td>6.017009e+06</td>\n",
" <td>2833.125</td>\n",
" <td>2025-10-31 04:00:00</td>\n",
" <td>Adam Smith is the father of economics</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2020</th>\n",
" <td>66667</td>\n",
" <td>5.595818e+07</td>\n",
" <td>3066.500</td>\n",
" <td>2025-11-12 08:00:00</td>\n",
" <td>once upon a time</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2021</th>\n",
" <td>75000</td>\n",
" <td>5.204111e+08</td>\n",
" <td>3299.875</td>\n",
" <td>2025-11-24 12:00:00</td>\n",
" <td>risk is hard to define</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2022</th>\n",
" <td>83333</td>\n",
" <td>4.839823e+09</td>\n",
" <td>3533.250</td>\n",
" <td>2025-12-06 16:00:00</td>\n",
" <td>not in Kansas anymore</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2023</th>\n",
" <td>91667</td>\n",
" <td>4.501035e+10</td>\n",
" <td>3766.625</td>\n",
" <td>2025-12-18 20:00:00</td>\n",
" <td>neutrinos are hard to detect</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2024</th>\n",
" <td>100000</td>\n",
" <td>4.185963e+11</td>\n",
" <td>4000.000</td>\n",
" <td>2025-12-31 00:00:00</td>\n",
" <td>Adam Smith is the father of economics</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
"Level 1 A B \\\n",
"Level 2 Int Float Float 3 \n",
"years! \n",
"2000 -100000 2.388937e-12 -1601.000 2025-03-14 00:00:00 \n",
"2001 -91667 2.221711e-11 -1367.625 2025-03-26 04:00:00 \n",
"2002 -83333 2.066191e-10 -1134.250 2025-04-07 08:00:00 \n",
"2003 -75000 1.921558e-09 -900.875 2025-04-19 12:00:00 \n",
"2004 -66667 1.787049e-08 -667.500 2025-05-01 16:00:00 \n",
"2005 -58333 1.661955e-07 -434.125 2025-05-13 20:00:00 \n",
"2006 -50000 1.545619e-06 -200.750 2025-05-26 00:00:00 \n",
"2007 -41667 1.437425e-05 32.625 2025-06-07 04:00:00 \n",
"2008 -33333 1.336805e-04 266.000 2025-06-19 08:00:00 \n",
"2009 -25000 1.243229e-03 499.375 2025-07-01 12:00:00 \n",
"2010 -16667 1.156203e-02 732.750 2025-07-13 16:00:00 \n",
"2011 -8333 1.075269e-01 966.125 2025-07-25 20:00:00 \n",
"2012 0 1.000000e+00 1199.500 2025-08-07 00:00:00 \n",
"2013 8333 9.300000e+00 1432.875 2025-08-19 04:00:00 \n",
"2014 16667 8.649000e+01 1666.250 2025-08-31 08:00:00 \n",
"2015 25000 8.043570e+02 1899.625 2025-09-12 12:00:00 \n",
"2016 33333 7.480520e+03 2133.000 2025-09-24 16:00:00 \n",
"2017 41667 6.956884e+04 2366.375 2025-10-06 20:00:00 \n",
"2018 50000 6.469902e+05 2599.750 2025-10-19 00:00:00 \n",
"2019 58333 6.017009e+06 2833.125 2025-10-31 04:00:00 \n",
"2020 66667 5.595818e+07 3066.500 2025-11-12 08:00:00 \n",
"2021 75000 5.204111e+08 3299.875 2025-11-24 12:00:00 \n",
"2022 83333 4.839823e+09 3533.250 2025-12-06 16:00:00 \n",
"2023 91667 4.501035e+10 3766.625 2025-12-18 20:00:00 \n",
"2024 100000 4.185963e+11 4000.000 2025-12-31 00:00:00 \n",
"\n",
"Level 1 C \n",
"Level 2 Longer Text \n",
"years! \n",
"2000 once upon a time \n",
"2001 risk is hard to define \n",
"2002 not in Kansas anymore \n",
"2003 neutrinos are hard to detect \n",
"2004 Adam Smith is the father of economics \n",
"2005 once upon a time \n",
"2006 risk is hard to define \n",
"2007 not in Kansas anymore \n",
"2008 neutrinos are hard to detect \n",
"2009 Adam Smith is the father of economics \n",
"2010 once upon a time \n",
"2011 risk is hard to define \n",
"2012 not in Kansas anymore \n",
"2013 neutrinos are hard to detect \n",
"2014 Adam Smith is the father of economics \n",
"2015 once upon a time \n",
"2016 risk is hard to define \n",
"2017 not in Kansas anymore \n",
"2018 neutrinos are hard to detect \n",
"2019 Adam Smith is the father of economics \n",
"2020 once upon a time \n",
"2021 risk is hard to define \n",
"2022 not in Kansas anymore \n",
"2023 neutrinos are hard to detect \n",
"2024 Adam Smith is the father of economics "
]
},
"execution_count": 61,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"#| label: tbl-hard-rules\n",
"#| tbl-cap: Default display output (Quarto generated caption)\n",
"level_1 = [\"A\", \"A\", \"B\", \"B\", 'C']\n",
"level_2 = ['Int', 'Float', 'Float', 3, 'Longer Text']\n",
"\n",
"multi_index = pd.MultiIndex.from_arrays([level_1, level_2],\n",
" names=[\"Level 1\", \"Level 2\"])\n",
"start = pd.Timestamp.today().normalize() # Today's date, normalized to midnight\n",
"end = pd.Timestamp(f\"{start.year}-12-31\") # End of the year\n",
"\n",
"hard = pd.DataFrame(\n",
"{'years!': np.arange(2000, 2025, dtype=int),\n",
"'a': np.array(np.round(np.linspace(-100000, 100000, 25), 0), dtype=int),\n",
"'b': 9.3 ** np.linspace(-12, 12, 25),\n",
"'c': np.linspace(-1601, 4000, 25),\n",
"'d': pd.date_range(start=start, end=end, periods=25),\n",
"'e': ('once upon a time, risk is hard to define, not in Kansas anymore, '\n",
" 'neutrinos are hard to detect, '\n",
" 'Adam Smith is the father of economics'.split(',') * 5)\n",
"}).set_index('years!')\n",
"# hard = hard.head()\n",
"hard.columns = multi_index\n",
"hard"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\\normalsize\n",
"\n",
"@tbl-hard-rules shows the default output and @tbl-hard-rules-2 the `sGT` format output."
]
},
{
"cell_type": "code",
"execution_count": 65,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div class=\"greater-table\">\n",
"<style>\n",
" #TMF6P2VFOITDE {\n",
" border-collapse: collapse;\n",
" font-family: \"Roboto\", \"Open Sans Condensed\", \"Arial\", 'Segoe UI', sans-serif;\n",
" font-size: 0.8em;\n",
" width: auto;\n",
" \n",
" margin: 10px auto; \n",
" border: none;\n",
" overflow: auto;\n",
" margin-left: auto;\n",
" margin-right: auto;\n",
" }\n",
" \n",
" #TMF6P2VFOITDE caption {\n",
" padding: 2px 10px 1px 10px;\n",
" font-size: 0.88em;\n",
" text-align: center;\n",
" font-weight: normal;\n",
" caption-side: top;\n",
" }\n",
" #TMF6P2VFOITDE thead {\n",
" \n",
" border-top: 1px solid #000;\n",
" border-bottom: 1px solid #000;\n",
" font-size: 0.88em;\n",
" }\n",
" #TMF6P2VFOITDE tbody {\n",
" \n",
" border-bottom: 1px solid #000;\n",
" }\n",
" #TMF6P2VFOITDE th {\n",
" vertical-align: bottom;\n",
" padding: 2px 10px 2px 10px;\n",
" }\n",
" #TMF6P2VFOITDE td {\n",
" \n",
" padding: 1px 10px 1px 10px;\n",
" vertical-align: top;\n",
" }\n",
" \n",
" #TMF6P2VFOITDE .grt-hrule-0 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" #TMF6P2VFOITDE .grt-hrule-1 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" #TMF6P2VFOITDE .grt-hrule-2 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" \n",
" #TMF6P2VFOITDE .grt-bhrule-0 {\n",
" border-bottom: 1.5px solid #000;\n",
" }\n",
" #TMF6P2VFOITDE .grt-bhrule-1 {\n",
" border-bottom: 1px solid #000;\n",
" }\n",
" #TMF6P2VFOITDE .grt-vrule-index {\n",
" border-left: 1.5px solid #000;\n",
" }\n",
" #TMF6P2VFOITDE .grt-vrule-0 {\n",
" border-left: 1.5px solid #000;\n",
" }\n",
" #TMF6P2VFOITDE .grt-vrule-1 {\n",
" border-left: 1px solid #000;\n",
" }\n",
" #TMF6P2VFOITDE .grt-vrule-2 {\n",
" border-left: 0.5px solid #000;\n",
" }\n",
" #TMF6P2VFOITDE .grt-left {\n",
" text-align: left;\n",
" }\n",
" #TMF6P2VFOITDE .grt-center {\n",
" text-align: center;\n",
" }\n",
" #TMF6P2VFOITDE .grt-right {\n",
" text-align: right;\n",
" font-variant-numeric: tabular-nums;\n",
" }\n",
" #TMF6P2VFOITDE .grt-head {\n",
" font-family: \"Times New Roman\", 'Courier New';\n",
" font-size: 0.88em;\n",
" }\n",
" #TMF6P2VFOITDE .grt-bold {\n",
" font-weight: bold;\n",
" }\n",
"\n",
" #TMF6P2VFOITDE .grt-c-0 { width: 5.5em; }\n",
" #TMF6P2VFOITDE .grt-c-1 { width: 6.5em; }\n",
" #TMF6P2VFOITDE .grt-c-2 { width: 7.0em; }\n",
" #TMF6P2VFOITDE .grt-c-3 { width: 7.0em; }\n",
" #TMF6P2VFOITDE .grt-c-4 { width: 7.5em; }\n",
" #TMF6P2VFOITDE .grt-c-5 { width: 22.0em; }\n",
"</style>\n",
"<table id=\"TMF6P2VFOITDE\">\n",
"<caption>A table with varied columns.</caption>\n",
"<colgroup>\n",
"<col style=\"width: 2.75em;\"/>\n",
"<col style=\"width: 3.25em;\"/>\n",
"<col style=\"width: 3.5em;\"/>\n",
"<col style=\"width: 3.5em;\"/>\n",
"<col style=\"width: 3.75em;\"/>\n",
"<col style=\"width: 11.0em;\"/>\n",
"</colgroup>\n",
"<thead>\n",
"<tr>\n",
"<th class=\"grt-left\"></th>\n",
"<th class=\"grt-center grt-bhrule-0 grt-vrule-index\" colspan=\"2\">A</th>\n",
"<th class=\"grt-center grt-bhrule-0 grt-vrule-0\" colspan=\"2\">B</th>\n",
"<th class=\"grt-center grt-bhrule-0 grt-vrule-0\" colspan=\"1\">C</th>\n",
"</tr>\n",
"<tr>\n",
"<th class=\"grt-left\">years!</th>\n",
"<th class=\"grt-center grt-vrule-index\" colspan=\"1\">Int</th>\n",
"<th class=\"grt-center grt-vrule-1\" colspan=\"1\">Float</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">Float</th>\n",
"<th class=\"grt-center grt-vrule-1\" colspan=\"1\">3</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">Longer Text</th>\n",
"</tr>\n",
"</thead>\n",
"<tbody>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">2000</td>\n",
"<td class=\"grt-c-1 grt-right grt-vrule-index\">-100,000</td>\n",
"<td class=\"grt-c-2 grt-right grt-vrule-1\"> 2.389p</td>\n",
"<td class=\"grt-c-3 grt-right grt-vrule-0\">-1,601.00</td>\n",
"<td class=\"grt-c-4 grt-center grt-vrule-1\">2025-03-14</td>\n",
"<td class=\"grt-c-5 grt-left grt-vrule-0\">once upon a time</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2001</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">-91,667</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 22.217p</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">-1,367.62</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-03-26</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> risk is hard to define</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2002</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">-83,333</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 206.619p</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">-1,134.25</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-04-07</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> not in Kansas anymore</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2003</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">-75,000</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 1.922n</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">-900.88</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-04-19</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> neutrinos are hard to detect</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2004</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">-66,667</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 17.870n</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">-667.50</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-05-01</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> Adam Smith is the father of economics</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2005</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">-58,333</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 166.196n</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">-434.12</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-05-13</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\">once upon a time</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2006</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">-50,000</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 1.546u</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">-200.75</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-05-26</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> risk is hard to define</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2007</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">-41,667</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 14.374u</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">32.62</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-06-07</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> not in Kansas anymore</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2008</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">-33,333</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 133.681u</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">266.00</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-06-19</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> neutrinos are hard to detect</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2009</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">-25,000</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 1.243m</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">499.38</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-07-01</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> Adam Smith is the father of economics</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2010</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">-16,667</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 11.562m</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">732.75</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-07-13</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\">once upon a time</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2011</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">-8,333</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 107.527m</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">966.12</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-07-25</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> risk is hard to define</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2012</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">0</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 1.000</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">1,199.50</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-08-07</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> not in Kansas anymore</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2013</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">8,333</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 9.300</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">1,432.88</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-08-19</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> neutrinos are hard to detect</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2014</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">16,667</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 86.490</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">1,666.25</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-08-31</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> Adam Smith is the father of economics</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2015</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">25,000</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 804.357</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">1,899.62</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-09-12</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\">once upon a time</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2016</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">33,333</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 7.481k</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">2,133.00</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-09-24</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> risk is hard to define</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2017</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">41,667</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 69.569k</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">2,366.38</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-10-06</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> not in Kansas anymore</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2018</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">50,000</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 646.990k</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">2,599.75</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-10-19</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> neutrinos are hard to detect</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2019</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">58,333</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 6.017M</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">2,833.12</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-10-31</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> Adam Smith is the father of economics</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2020</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">66,667</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 55.958M</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">3,066.50</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-11-12</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\">once upon a time</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2021</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">75,000</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 520.411M</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">3,299.88</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-11-24</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> risk is hard to define</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2022</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">83,333</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 4.840G</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">3,533.25</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-12-06</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> not in Kansas anymore</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2023</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">91,667</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 45.010G</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">3,766.62</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-12-18</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> neutrinos are hard to detect</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2024</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">100,000</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 418.596G</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">4,000.00</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-12-31</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> Adam Smith is the father of economics</td>\n",
"</tr>\n",
"</tbody>\n",
"</table></div>"
],
"text/latex": [
"\n",
"\\begin{tikzpicture}[\n",
" auto,\n",
" transform shape,\n",
" nosep/.style={inner sep=0},\n",
" table/.style={\n",
" matrix of nodes,\n",
" row sep=0.125em,\n",
" column sep=0.375em,\n",
" nodes in empty cells,\n",
" nodes={rectangle, scale=0.635, text badly ragged },\n",
"\trow 1/.style={nodes={text=black, anchor=north, inner ysep=0, text height=0, text depth=0}},\n",
"\trow 2/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\\bfseries}},\n",
"\trow 3/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\\bfseries}},\n",
"\tcolumn 1/.style={nodes={align=left }, text height=0.9em, text depth=0.2em, inner xsep=0.375em, inner ysep=0, text width=3.60em},\n",
"\tcolumn 2/.style={nodes={align=right }, nosep, text width=5.71em},\n",
"\tcolumn 3/.style={nodes={align=right }, nosep, text width=6.43em},\n",
"\tcolumn 4/.style={nodes={align=right }, nosep, text width=6.43em},\n",
"\tcolumn 5/.style={nodes={align=center}, nosep, text width=7.14em},\n",
"\tcolumn 6/.style={nodes={align=left }, nosep, text width=27.85em},\n",
"\tcolumn 7/.style={text height=0.9em, text depth=0.2em, nosep, text width=0em}\t}]\n",
"\\matrix (TMF6P2VFOITDE) [table, ampersand replacement=\\&]{\n",
" \\& \\& \\& \\& \\& \\& \\\\\n",
" \\grtspacer \\& A\\grtspacer \\& \\grtspacer \\& B\\grtspacer \\& \\grtspacer \\& C\\grtspacer \\& \\\\\n",
" years!\\grtspacer \\& Int\\grtspacer \\& Float\\grtspacer \\& Float\\grtspacer \\& 3\\grtspacer \\& Longer Text\\grtspacer \\& \\\\\n",
" 2000 \\& -100,000 \\& 2.389p \\& -1,601.00 \\& 2025-03-14 \\& once upon a time \\& \\\\\n",
" 2001 \\& -91,667 \\& 22.217p \\& -1,367.62 \\& 2025-03-26 \\& risk is hard to define \\& \\\\\n",
" 2002 \\& -83,333 \\& 206.619p \\& -1,134.25 \\& 2025-04-07 \\& not in Kansas anymore \\& \\\\\n",
" 2003 \\& -75,000 \\& 1.922n \\& -900.88 \\& 2025-04-19 \\& neutrinos are hard to detect \\& \\\\\n",
" 2004 \\& -66,667 \\& 17.870n \\& -667.50 \\& 2025-05-01 \\& Adam Smith is the father of economics \\& \\\\\n",
" 2005 \\& -58,333 \\& 166.196n \\& -434.12 \\& 2025-05-13 \\& once upon a time \\& \\\\\n",
" 2006 \\& -50,000 \\& 1.546u \\& -200.75 \\& 2025-05-26 \\& risk is hard to define \\& \\\\\n",
" 2007 \\& -41,667 \\& 14.374u \\& 32.62 \\& 2025-06-07 \\& not in Kansas anymore \\& \\\\\n",
" 2008 \\& -33,333 \\& 133.681u \\& 266.00 \\& 2025-06-19 \\& neutrinos are hard to detect \\& \\\\\n",
" 2009 \\& -25,000 \\& 1.243m \\& 499.38 \\& 2025-07-01 \\& Adam Smith is the father of economics \\& \\\\\n",
" 2010 \\& -16,667 \\& 11.562m \\& 732.75 \\& 2025-07-13 \\& once upon a time \\& \\\\\n",
" 2011 \\& -8,333 \\& 107.527m \\& 966.12 \\& 2025-07-25 \\& risk is hard to define \\& \\\\\n",
" 2012 \\& 0 \\& 1.000 \\& 1,199.50 \\& 2025-08-07 \\& not in Kansas anymore \\& \\\\\n",
" 2013 \\& 8,333 \\& 9.300 \\& 1,432.88 \\& 2025-08-19 \\& neutrinos are hard to detect \\& \\\\\n",
" 2014 \\& 16,667 \\& 86.490 \\& 1,666.25 \\& 2025-08-31 \\& Adam Smith is the father of economics \\& \\\\\n",
" 2015 \\& 25,000 \\& 804.357 \\& 1,899.62 \\& 2025-09-12 \\& once upon a time \\& \\\\\n",
" 2016 \\& 33,333 \\& 7.481k \\& 2,133.00 \\& 2025-09-24 \\& risk is hard to define \\& \\\\\n",
" 2017 \\& 41,667 \\& 69.569k \\& 2,366.38 \\& 2025-10-06 \\& not in Kansas anymore \\& \\\\\n",
" 2018 \\& 50,000 \\& 646.990k \\& 2,599.75 \\& 2025-10-19 \\& neutrinos are hard to detect \\& \\\\\n",
" 2019 \\& 58,333 \\& 6.017M \\& 2,833.12 \\& 2025-10-31 \\& Adam Smith is the father of economics \\& \\\\\n",
" 2020 \\& 66,667 \\& 55.958M \\& 3,066.50 \\& 2025-11-12 \\& once upon a time \\& \\\\\n",
" 2021 \\& 75,000 \\& 520.411M \\& 3,299.88 \\& 2025-11-24 \\& risk is hard to define \\& \\\\\n",
" 2022 \\& 83,333 \\& 4.840G \\& 3,533.25 \\& 2025-12-06 \\& not in Kansas anymore \\& \\\\\n",
" 2023 \\& 91,667 \\& 45.010G \\& 3,766.62 \\& 2025-12-18 \\& neutrinos are hard to detect \\& \\\\\n",
" 2024 \\& 100,000 \\& 418.596G \\& 4,000.00 \\& 2025-12-31 \\& Adam Smith is the father of economics \\& \\\\\n",
"};\n",
"\n",
"\\path[draw, thick] (TMF6P2VFOITDE-1-1.south west) -- (TMF6P2VFOITDE-1-7.south east);\n",
"\\path[draw, semithick] ([yshift=-0.0625em]TMF6P2VFOITDE-3-1.south west) -- ([yshift=-0.0625em]TMF6P2VFOITDE-3-7.south east);\n",
"\\path[draw, thick] ([yshift=-0.3125em]TMF6P2VFOITDE-28-1.base west) -- ([yshift=-0.3125em]TMF6P2VFOITDE-28-7.base east);\n",
"\\path[draw, very thin] ([xshift=-0.1875em, yshift=-0.0625em]TMF6P2VFOITDE-2-2.south west) -- ([yshift=-0.0625em]TMF6P2VFOITDE-2-7.south east);\n",
"\\path[draw, very thin] ([xshift=-0.1875em]TMF6P2VFOITDE-1-2.south west) -- ([yshift=-0.3125em, xshift=-0.1875em]TMF6P2VFOITDE-28-2.base west);\n",
"\\path[draw, ultra thin] ([xshift=0.1875em, yshift=-0.0625em]TMF6P2VFOITDE-1-3.south east) -- ([yshift=-0.3125em, xshift=0.1875em]TMF6P2VFOITDE-28-3.base east);\n",
"\\path[draw, ultra thin] ([xshift=0.1875em, yshift=-0.0625em]TMF6P2VFOITDE-1-5.south east) -- ([yshift=-0.3125em, xshift=0.1875em]TMF6P2VFOITDE-28-5.base east);\n",
"\n",
"\n",
"\n",
"\\end{tikzpicture}\n"
],
"text/plain": [
"GreaterTable(df_id=TMF6P2VFOITDE)"
]
},
"execution_count": 65,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"#| label: tbl-hard-rules-2\n",
"#| tbl-cap: Greater Tables output (Quarto generated caption)\n",
"sGT(hard, 'A table with varied columns.')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Here are some alternatives:\n",
"\n",
"* @tbl-hard-rules-3a hrules no vrules\n",
"* @tbl-hard-rules-3b change date and integer formats and\n",
"* @tbl-hard-rules-3c change padding and debug mode."
]
},
{
"cell_type": "code",
"execution_count": 66,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div class=\"greater-table\">\n",
"<style>\n",
" #T7GWCUWBSZ2GA {\n",
" border-collapse: collapse;\n",
" font-family: \"Roboto\", \"Open Sans Condensed\", \"Arial\", 'Segoe UI', sans-serif;\n",
" font-size: 0.9em;\n",
" width: auto;\n",
" \n",
" margin: 10px auto; \n",
" border: none;\n",
" overflow: auto;\n",
" margin-left: auto;\n",
" margin-right: auto;\n",
" }\n",
" \n",
" #T7GWCUWBSZ2GA caption {\n",
" padding: 8px 10px 4px 10px;\n",
" font-size: 0.99em;\n",
" text-align: center;\n",
" font-weight: normal;\n",
" caption-side: top;\n",
" }\n",
" #T7GWCUWBSZ2GA thead {\n",
" \n",
" border-top: 1px solid #000;\n",
" border-bottom: 1px solid #000;\n",
" font-size: 0.99em;\n",
" }\n",
" #T7GWCUWBSZ2GA tbody {\n",
" \n",
" border-bottom: 1px solid #000;\n",
" }\n",
" #T7GWCUWBSZ2GA th {\n",
" vertical-align: bottom;\n",
" padding: 8px 10px 8px 10px;\n",
" }\n",
" #T7GWCUWBSZ2GA td {\n",
" \n",
" padding: 4px 10px 4px 10px;\n",
" vertical-align: top;\n",
" }\n",
" \n",
" #T7GWCUWBSZ2GA .grt-hrule-0 {\n",
" border-top: 1px solid #000;\n",
" }\n",
" #T7GWCUWBSZ2GA .grt-hrule-1 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" #T7GWCUWBSZ2GA .grt-hrule-2 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" \n",
" #T7GWCUWBSZ2GA .grt-bhrule-0 {\n",
" border-bottom: 0px solid #000;\n",
" }\n",
" #T7GWCUWBSZ2GA .grt-bhrule-1 {\n",
" border-bottom: 0px solid #000;\n",
" }\n",
" #T7GWCUWBSZ2GA .grt-vrule-index {\n",
" border-left: 1.5px solid #000;\n",
" }\n",
" #T7GWCUWBSZ2GA .grt-vrule-0 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #T7GWCUWBSZ2GA .grt-vrule-1 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #T7GWCUWBSZ2GA .grt-vrule-2 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #T7GWCUWBSZ2GA .grt-left {\n",
" text-align: left;\n",
" }\n",
" #T7GWCUWBSZ2GA .grt-center {\n",
" text-align: center;\n",
" }\n",
" #T7GWCUWBSZ2GA .grt-right {\n",
" text-align: right;\n",
" font-variant-numeric: tabular-nums;\n",
" }\n",
" #T7GWCUWBSZ2GA .grt-head {\n",
" font-family: \"Times New Roman\", 'Courier New';\n",
" font-size: 0.99em;\n",
" }\n",
" #T7GWCUWBSZ2GA .grt-bold {\n",
" font-weight: bold;\n",
" }\n",
"\n",
" #T7GWCUWBSZ2GA .grt-c-0 { width: 5.5em; }\n",
" #T7GWCUWBSZ2GA .grt-c-1 { width: 6.5em; }\n",
" #T7GWCUWBSZ2GA .grt-c-2 { width: 6.0em; }\n",
" #T7GWCUWBSZ2GA .grt-c-3 { width: 7.0em; }\n",
" #T7GWCUWBSZ2GA .grt-c-4 { width: 7.5em; }\n",
" #T7GWCUWBSZ2GA .grt-c-5 { width: 17.0em; }\n",
"</style>\n",
"<table id=\"T7GWCUWBSZ2GA\">\n",
"<caption>GT caption No v rules, but h rules</caption>\n",
"<colgroup>\n",
"<col style=\"width: 2.75em;\"/>\n",
"<col style=\"width: 3.25em;\"/>\n",
"<col style=\"width: 3.0em;\"/>\n",
"<col style=\"width: 3.5em;\"/>\n",
"<col style=\"width: 3.75em;\"/>\n",
"<col style=\"width: 8.5em;\"/>\n",
"</colgroup>\n",
"<thead>\n",
"<tr>\n",
"<th class=\"grt-left\"></th>\n",
"<th class=\"grt-center grt-bhrule-0 grt-vrule-index\" colspan=\"2\">A</th>\n",
"<th class=\"grt-center grt-bhrule-0 grt-vrule-0\" colspan=\"2\">B</th>\n",
"<th class=\"grt-center grt-bhrule-0 grt-vrule-0\" colspan=\"1\">C</th>\n",
"</tr>\n",
"<tr>\n",
"<th class=\"grt-left\">years!</th>\n",
"<th class=\"grt-center grt-vrule-index\" colspan=\"1\">Int</th>\n",
"<th class=\"grt-center grt-vrule-1\" colspan=\"1\">Float</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">Float</th>\n",
"<th class=\"grt-center grt-vrule-1\" colspan=\"1\">3</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">Longer Text</th>\n",
"</tr>\n",
"</thead>\n",
"<tbody>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">2000</td>\n",
"<td class=\"grt-c-1 grt-right grt-vrule-index\">-100,000</td>\n",
"<td class=\"grt-c-2 grt-right grt-vrule-1\">0</td>\n",
"<td class=\"grt-c-3 grt-right grt-vrule-0\">-1,601.00</td>\n",
"<td class=\"grt-c-4 grt-center grt-vrule-1\">2025-03-14</td>\n",
"<td class=\"grt-c-5 grt-left grt-vrule-0\">once upon a time</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2002</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">-83,333</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\">0</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">-1,134.25</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-04-07</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> not in Kansas anymore</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2003</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">-75,000</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\">0</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">-900.88</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-04-19</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> neutrinos are hard to detect</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2008</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">-33,333</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\">0</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">266.00</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-06-19</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> neutrinos are hard to detect</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2018</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">50,000</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\">646,990</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">2,599.75</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-10-19</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> neutrinos are hard to detect</td>\n",
"</tr>\n",
"</tbody>\n",
"</table></div>"
],
"text/latex": [
"\n",
"\\begin{tikzpicture}[\n",
" auto,\n",
" transform shape,\n",
" nosep/.style={inner sep=0},\n",
" table/.style={\n",
" matrix of nodes,\n",
" row sep=0.125em,\n",
" column sep=0.375em,\n",
" nodes in empty cells,\n",
" nodes={rectangle, scale=0.635, text badly ragged },\n",
"\trow 1/.style={nodes={text=black, anchor=north, inner ysep=0, text height=0, text depth=0}},\n",
"\trow 2/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\\bfseries}},\n",
"\trow 3/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\\bfseries}},\n",
"\tcolumn 1/.style={nodes={align=left }, text height=0.9em, text depth=0.2em, inner xsep=0.375em, inner ysep=0, text width=3.60em},\n",
"\tcolumn 2/.style={nodes={align=right }, nosep, text width=6.80em},\n",
"\tcolumn 3/.style={nodes={align=right }, nosep, text width=5.95em},\n",
"\tcolumn 4/.style={nodes={align=right }, nosep, text width=7.65em},\n",
"\tcolumn 5/.style={nodes={align=center}, nosep, text width=8.50em},\n",
"\tcolumn 6/.style={nodes={align=left }, nosep, text width=24.65em},\n",
"\tcolumn 7/.style={text height=0.9em, text depth=0.2em, nosep, text width=0em}\t}]\n",
"\\matrix (T7GWCUWBSZ2GA) [table, ampersand replacement=\\&]{\n",
" \\& \\& \\& \\& \\& \\& \\\\\n",
" \\grtspacer \\& A\\grtspacer \\& \\grtspacer \\& B\\grtspacer \\& \\grtspacer \\& C\\grtspacer \\& \\\\\n",
" years!\\grtspacer \\& Int\\grtspacer \\& Float\\grtspacer \\& Float\\grtspacer \\& 3\\grtspacer \\& Longer Text\\grtspacer \\& \\\\\n",
" 2000 \\& -100,000 \\& 0 \\& -1,601.00 \\& 2025-03-14 \\& once upon a time \\& \\\\\n",
" 2002 \\& -83,333 \\& 0 \\& -1,134.25 \\& 2025-04-07 \\& not in Kansas anymore \\& \\\\\n",
" 2003 \\& -75,000 \\& 0 \\& -900.88 \\& 2025-04-19 \\& neutrinos are hard to detect \\& \\\\\n",
" 2008 \\& -33,333 \\& 0 \\& 266.00 \\& 2025-06-19 \\& neutrinos are hard to detect \\& \\\\\n",
" 2018 \\& 50,000 \\& 646,990 \\& 2,599.75 \\& 2025-10-19 \\& neutrinos are hard to detect \\& \\\\\n",
"};\n",
"\n",
"\\path[draw, thick] (T7GWCUWBSZ2GA-1-1.south west) -- (T7GWCUWBSZ2GA-1-7.south east);\n",
"\\path[draw, semithick] ([yshift=-0.0625em]T7GWCUWBSZ2GA-3-1.south west) -- ([yshift=-0.0625em]T7GWCUWBSZ2GA-3-7.south east);\n",
"\\path[draw, thick] ([yshift=-0.3125em]T7GWCUWBSZ2GA-8-1.base west) -- ([yshift=-0.3125em]T7GWCUWBSZ2GA-8-7.base east);\n",
"\\path[draw, very thin] ([xshift=-0.1875em, yshift=-0.0625em]T7GWCUWBSZ2GA-2-2.south west) -- ([yshift=-0.0625em]T7GWCUWBSZ2GA-2-7.south east);\n",
"\\path[draw, very thin] ([xshift=-0.1875em]T7GWCUWBSZ2GA-1-2.south west) -- ([yshift=-0.3125em, xshift=-0.1875em]T7GWCUWBSZ2GA-8-2.base west);\n",
"\\path[draw, ultra thin] ([xshift=0.1875em, yshift=-0.0625em]T7GWCUWBSZ2GA-1-3.south east) -- ([yshift=-0.3125em, xshift=0.1875em]T7GWCUWBSZ2GA-8-3.base east);\n",
"\\path[draw, ultra thin] ([xshift=0.1875em, yshift=-0.0625em]T7GWCUWBSZ2GA-1-5.south east) -- ([yshift=-0.3125em, xshift=0.1875em]T7GWCUWBSZ2GA-8-5.base east);\n",
"\n",
"\n",
"\n",
"\\end{tikzpicture}\n"
],
"text/plain": [
"GreaterTable(df_id=T7GWCUWBSZ2GA)"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"#| echo: fenced\n",
"#| label: tbl-hard-rules-3a\n",
"#| tbl-cap: No V rules but hrules (Quarto generated caption)\n",
"display(sGT(hard.sample(5).sort_index(),\n",
" caption='GT caption No v rules, but h rules',\n",
" vrule_widths=(0,0,0),\n",
" hrule_widths=(1,0,0)))"
]
},
{
"cell_type": "code",
"execution_count": 67,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div class=\"greater-table\">\n",
"<style>\n",
" #TQMKPLMFN4DDR {\n",
" border-collapse: collapse;\n",
" font-family: \"Roboto\", \"Open Sans Condensed\", \"Arial\", 'Segoe UI', sans-serif;\n",
" font-size: 0.9em;\n",
" width: auto;\n",
" \n",
" margin: 10px auto; \n",
" border: none;\n",
" overflow: auto;\n",
" margin-left: auto;\n",
" margin-right: auto;\n",
" }\n",
" \n",
" #TQMKPLMFN4DDR caption {\n",
" padding: 8px 10px 4px 10px;\n",
" font-size: 0.99em;\n",
" text-align: center;\n",
" font-weight: normal;\n",
" caption-side: top;\n",
" }\n",
" #TQMKPLMFN4DDR thead {\n",
" \n",
" border-top: 1px solid #000;\n",
" border-bottom: 1px solid #000;\n",
" font-size: 0.99em;\n",
" }\n",
" #TQMKPLMFN4DDR tbody {\n",
" \n",
" border-bottom: 1px solid #000;\n",
" }\n",
" #TQMKPLMFN4DDR th {\n",
" vertical-align: bottom;\n",
" padding: 8px 10px 8px 10px;\n",
" }\n",
" #TQMKPLMFN4DDR td {\n",
" \n",
" padding: 4px 10px 4px 10px;\n",
" vertical-align: top;\n",
" }\n",
" \n",
" #TQMKPLMFN4DDR .grt-hrule-0 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" #TQMKPLMFN4DDR .grt-hrule-1 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" #TQMKPLMFN4DDR .grt-hrule-2 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" \n",
" #TQMKPLMFN4DDR .grt-bhrule-0 {\n",
" border-bottom: 1.5px solid #000;\n",
" }\n",
" #TQMKPLMFN4DDR .grt-bhrule-1 {\n",
" border-bottom: 1px solid #000;\n",
" }\n",
" #TQMKPLMFN4DDR .grt-vrule-index {\n",
" border-left: 1.5px solid #000;\n",
" }\n",
" #TQMKPLMFN4DDR .grt-vrule-0 {\n",
" border-left: 1.5px solid #000;\n",
" }\n",
" #TQMKPLMFN4DDR .grt-vrule-1 {\n",
" border-left: 1px solid #000;\n",
" }\n",
" #TQMKPLMFN4DDR .grt-vrule-2 {\n",
" border-left: 0.5px solid #000;\n",
" }\n",
" #TQMKPLMFN4DDR .grt-left {\n",
" text-align: left;\n",
" }\n",
" #TQMKPLMFN4DDR .grt-center {\n",
" text-align: center;\n",
" }\n",
" #TQMKPLMFN4DDR .grt-right {\n",
" text-align: right;\n",
" font-variant-numeric: tabular-nums;\n",
" }\n",
" #TQMKPLMFN4DDR .grt-head {\n",
" font-family: \"Times New Roman\", 'Courier New';\n",
" font-size: 0.99em;\n",
" }\n",
" #TQMKPLMFN4DDR .grt-bold {\n",
" font-weight: bold;\n",
" }\n",
"\n",
" #TQMKPLMFN4DDR .grt-c-0 { width: 5.5em; }\n",
" #TQMKPLMFN4DDR .grt-c-1 { width: 6.5em; }\n",
" #TQMKPLMFN4DDR .grt-c-2 { width: 6.0em; }\n",
" #TQMKPLMFN4DDR .grt-c-3 { width: 7.0em; }\n",
" #TQMKPLMFN4DDR .grt-c-4 { width: 5.0em; }\n",
" #TQMKPLMFN4DDR .grt-c-5 { width: 22.0em; }\n",
"</style>\n",
"<table id=\"TQMKPLMFN4DDR\">\n",
"<caption>Change default date and integer formats</caption>\n",
"<colgroup>\n",
"<col style=\"width: 2.75em;\"/>\n",
"<col style=\"width: 3.25em;\"/>\n",
"<col style=\"width: 3.0em;\"/>\n",
"<col style=\"width: 3.5em;\"/>\n",
"<col style=\"width: 2.5em;\"/>\n",
"<col style=\"width: 11.0em;\"/>\n",
"</colgroup>\n",
"<thead>\n",
"<tr>\n",
"<th class=\"grt-left\"></th>\n",
"<th class=\"grt-center grt-bhrule-0 grt-vrule-index\" colspan=\"2\">A</th>\n",
"<th class=\"grt-center grt-bhrule-0 grt-vrule-0\" colspan=\"2\">B</th>\n",
"<th class=\"grt-center grt-bhrule-0 grt-vrule-0\" colspan=\"1\">C</th>\n",
"</tr>\n",
"<tr>\n",
"<th class=\"grt-left\">years!</th>\n",
"<th class=\"grt-center grt-vrule-index\" colspan=\"1\">Int</th>\n",
"<th class=\"grt-center grt-vrule-1\" colspan=\"1\">Float</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">Float</th>\n",
"<th class=\"grt-center grt-vrule-1\" colspan=\"1\">3</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">Longer Text</th>\n",
"</tr>\n",
"</thead>\n",
"<tbody>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">2001</td>\n",
"<td class=\"grt-c-1 grt-right grt-vrule-index\">[-91667]</td>\n",
"<td class=\"grt-c-2 grt-right grt-vrule-1\">0</td>\n",
"<td class=\"grt-c-3 grt-right grt-vrule-0\">-1,367.62</td>\n",
"<td class=\"grt-c-4 grt-center grt-vrule-1\">03-26</td>\n",
"<td class=\"grt-c-5 grt-left grt-vrule-0\"> risk is hard to define</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2004</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">[-66667]</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\">0</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">-667.50</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">05-01</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> Adam Smith is the father of economics</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2007</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">[-41667]</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\">0</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">32.62</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">06-07</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> not in Kansas anymore</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2008</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">[-33333]</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\">0</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">266.00</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">06-19</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> neutrinos are hard to detect</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2018</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">[50000]</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\">646,990</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">2,599.75</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">10-19</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> neutrinos are hard to detect</td>\n",
"</tr>\n",
"</tbody>\n",
"</table></div>"
],
"text/latex": [
"\n",
"\\begin{tikzpicture}[\n",
" auto,\n",
" transform shape,\n",
" nosep/.style={inner sep=0},\n",
" table/.style={\n",
" matrix of nodes,\n",
" row sep=0.125em,\n",
" column sep=0.375em,\n",
" nodes in empty cells,\n",
" nodes={rectangle, scale=0.635, text badly ragged },\n",
"\trow 1/.style={nodes={text=black, anchor=north, inner ysep=0, text height=0, text depth=0}},\n",
"\trow 2/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\\bfseries}},\n",
"\trow 3/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\\bfseries}},\n",
"\tcolumn 1/.style={nodes={align=left }, text height=0.9em, text depth=0.2em, inner xsep=0.375em, inner ysep=0, text width=3.60em},\n",
"\tcolumn 2/.style={nodes={align=right }, nosep, text width=6.30em},\n",
"\tcolumn 3/.style={nodes={align=right }, nosep, text width=5.51em},\n",
"\tcolumn 4/.style={nodes={align=right }, nosep, text width=7.09em},\n",
"\tcolumn 5/.style={nodes={align=center}, nosep, text width=3.94em},\n",
"\tcolumn 6/.style={nodes={align=left }, nosep, text width=30.71em},\n",
"\tcolumn 7/.style={text height=0.9em, text depth=0.2em, nosep, text width=0em}\t}]\n",
"\\matrix (TQMKPLMFN4DDR) [table, ampersand replacement=\\&]{\n",
" \\& \\& \\& \\& \\& \\& \\\\\n",
" \\grtspacer \\& A\\grtspacer \\& \\grtspacer \\& B\\grtspacer \\& \\grtspacer \\& C\\grtspacer \\& \\\\\n",
" years!\\grtspacer \\& Int\\grtspacer \\& Float\\grtspacer \\& Float\\grtspacer \\& 3\\grtspacer \\& Longer Text\\grtspacer \\& \\\\\n",
" 2001 \\& [-91667] \\& 0 \\& -1,367.62 \\& 03-26 \\& risk is hard to define \\& \\\\\n",
" 2004 \\& [-66667] \\& 0 \\& -667.50 \\& 05-01 \\& Adam Smith is the father of economics \\& \\\\\n",
" 2007 \\& [-41667] \\& 0 \\& 32.62 \\& 06-07 \\& not in Kansas anymore \\& \\\\\n",
" 2008 \\& [-33333] \\& 0 \\& 266.00 \\& 06-19 \\& neutrinos are hard to detect \\& \\\\\n",
" 2018 \\& [50000] \\& 646,990 \\& 2,599.75 \\& 10-19 \\& neutrinos are hard to detect \\& \\\\\n",
"};\n",
"\n",
"\\path[draw, thick] (TQMKPLMFN4DDR-1-1.south west) -- (TQMKPLMFN4DDR-1-7.south east);\n",
"\\path[draw, semithick] ([yshift=-0.0625em]TQMKPLMFN4DDR-3-1.south west) -- ([yshift=-0.0625em]TQMKPLMFN4DDR-3-7.south east);\n",
"\\path[draw, thick] ([yshift=-0.3125em]TQMKPLMFN4DDR-8-1.base west) -- ([yshift=-0.3125em]TQMKPLMFN4DDR-8-7.base east);\n",
"\\path[draw, very thin] ([xshift=-0.1875em, yshift=-0.0625em]TQMKPLMFN4DDR-2-2.south west) -- ([yshift=-0.0625em]TQMKPLMFN4DDR-2-7.south east);\n",
"\\path[draw, very thin] ([xshift=-0.1875em]TQMKPLMFN4DDR-1-2.south west) -- ([yshift=-0.3125em, xshift=-0.1875em]TQMKPLMFN4DDR-8-2.base west);\n",
"\\path[draw, ultra thin] ([xshift=0.1875em, yshift=-0.0625em]TQMKPLMFN4DDR-1-3.south east) -- ([yshift=-0.3125em, xshift=0.1875em]TQMKPLMFN4DDR-8-3.base east);\n",
"\\path[draw, ultra thin] ([xshift=0.1875em, yshift=-0.0625em]TQMKPLMFN4DDR-1-5.south east) -- ([yshift=-0.3125em, xshift=0.1875em]TQMKPLMFN4DDR-8-5.base east);\n",
"\n",
"\n",
"\n",
"\\end{tikzpicture}\n"
],
"text/plain": [
"GreaterTable(df_id=TQMKPLMFN4DDR)"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"#| echo: fenced\n",
"#| label: tbl-hard-rules-3b\n",
"#| tbl-cap: Change date and integer formats (Quarto generated caption)\n",
"display(sGT(hard.sample(5).sort_index(),\n",
" caption='Change default date and integer formats',\n",
" default_date_str='%m-%d', default_integer_str='[{x:d}]'))"
]
},
{
"cell_type": "code",
"execution_count": 45,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[6, 7.0, 9.0, 8.0, 10.0, 39.0]\n"
]
},
{
"data": {
"text/html": [
"<div class=\"greater-table\">\n",
"<style>\n",
" #TBM2NV7BWZEMG {\n",
" border-collapse: collapse;\n",
" font-family: \"Roboto\", \"Open Sans Condensed\", \"Arial\", 'Segoe UI', sans-serif;\n",
" font-size: 0.9em;\n",
" width: auto;\n",
" /* tb and lr \n",
" width: fit-content; */\n",
" margin: 10px auto; \n",
" border: none;\n",
" overflow: auto;\n",
" margin-left: auto;\n",
" margin-right: auto;\n",
" }\n",
" /* tag formats */\n",
" #TBM2NV7BWZEMG caption {\n",
" padding: 20px 10px 20px 20px;\n",
" font-size: 0.99em;\n",
" text-align: center;\n",
" font-weight: normal;\n",
" caption-side: top;\n",
" }\n",
" #TBM2NV7BWZEMG thead {\n",
" /* top and bottom of header */\n",
" border-top: 1px solid #0ff;\n",
" border-bottom: 1px solid #0ff;\n",
" font-size: 0.99em;\n",
" }\n",
" #TBM2NV7BWZEMG tbody {\n",
" /* bottom of body */\n",
" border-bottom: 1px solid #f0f;\n",
" }\n",
" #TBM2NV7BWZEMG th {\n",
" vertical-align: bottom;\n",
" padding: 20px 10px 40px 20px;\n",
" }\n",
" #TBM2NV7BWZEMG td {\n",
" /* top, right, bottom left cell padding */\n",
" padding: 10px 10px 20px 20px;\n",
" vertical-align: top;\n",
" }\n",
" /* class overrides */\n",
" #TBM2NV7BWZEMG .grt-hrule-0 {\n",
" border-top: 0px solid #f00;\n",
" }\n",
" #TBM2NV7BWZEMG .grt-hrule-1 {\n",
" border-top: 0px solid #b00;\n",
" }\n",
" #TBM2NV7BWZEMG .grt-hrule-2 {\n",
" border-top: 0px solid #900;\n",
" }\n",
" /* for the header, there if you have v lines you want h lines\n",
" hence use vrule_widths */\n",
" #TBM2NV7BWZEMG .grt-bhrule-0 {\n",
" border-bottom: 1.5px solid #f00;\n",
" }\n",
" #TBM2NV7BWZEMG .grt-bhrule-1 {\n",
" border-bottom: 1px solid #b00;\n",
" }\n",
" #TBM2NV7BWZEMG .grt-vrule-index {\n",
" border-left: 1.5px solid #0f0;\n",
" }\n",
" #TBM2NV7BWZEMG .grt-vrule-0 {\n",
" border-left: 1.5px solid #0f0;\n",
" }\n",
" #TBM2NV7BWZEMG .grt-vrule-1 {\n",
" border-left: 1px solid #0a0;\n",
" }\n",
" #TBM2NV7BWZEMG .grt-vrule-2 {\n",
" border-left: 0.5px solid #090;\n",
" }\n",
" #TBM2NV7BWZEMG .grt-left {\n",
" text-align: left;\n",
" }\n",
" #TBM2NV7BWZEMG .grt-center {\n",
" text-align: center;\n",
" }\n",
" #TBM2NV7BWZEMG .grt-right {\n",
" text-align: right;\n",
" font-variant-numeric: tabular-nums;\n",
" }\n",
" #TBM2NV7BWZEMG .grt-head {\n",
" font-family: \"Times New Roman\", 'Courier New';\n",
" font-size: 0.99em;\n",
" }\n",
" #TBM2NV7BWZEMG .grt-bold {\n",
" font-weight: bold;\n",
" }\n",
"</style>\n",
"<table id=\"TBM2NV7BWZEMG\">\n",
"<caption>Change padding, debug mode lines (id: TBM2NV7BWZEMG)</caption>\n",
"<colgroup>\n",
"<col style=\"width: 6.75em;\"/>\n",
"<col style=\"width: 7.25em;\"/>\n",
"<col style=\"width: 8.25em;\"/>\n",
"<col style=\"width: 7.75em;\"/>\n",
"<col style=\"width: 8.75em;\"/>\n",
"<col style=\"width: 23.25em;\"/>\n",
"</colgroup>\n",
"<thead>\n",
"<tr>\n",
"<th class=\"grt-left\"></th>\n",
"<th class=\"grt-center grt-bhrule-0 grt-vrule-index\" colspan=\"2\">A</th>\n",
"<th class=\"grt-center grt-bhrule-0 grt-vrule-0\" colspan=\"2\">B</th>\n",
"<th class=\"grt-center grt-bhrule-0 grt-vrule-0\" colspan=\"1\">C</th>\n",
"</tr>\n",
"<tr>\n",
"<th class=\"grt-left\">years!</th>\n",
"<th class=\"grt-center grt-vrule-index\" colspan=\"1\">Int</th>\n",
"<th class=\"grt-center grt-vrule-1\" colspan=\"1\">Float</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">Float</th>\n",
"<th class=\"grt-center grt-vrule-1\" colspan=\"1\">3</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">Longer Text</th>\n",
"</tr>\n",
"</thead>\n",
"<tbody>\n",
"<tr>\n",
"<td class=\"grt-left\">2007</td>\n",
"<td class=\"grt-right grt-vrule-index\">-41,667</td>\n",
"<td class=\"grt-right grt-vrule-1\"> 14.374u</td>\n",
"<td class=\"grt-right grt-vrule-0\">32.62</td>\n",
"<td class=\"grt-center grt-vrule-1\">2025-06-07</td>\n",
"<td class=\"grt-left grt-vrule-0\"> not in Kansas anymore</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-left grt-hrule-0\">2008</td>\n",
"<td class=\"grt-right grt-hrule-0 grt-vrule-index\">-33,333</td>\n",
"<td class=\"grt-right grt-hrule-0 grt-vrule-1\"> 133.681u</td>\n",
"<td class=\"grt-right grt-hrule-0 grt-vrule-0\">266.00</td>\n",
"<td class=\"grt-center grt-hrule-0 grt-vrule-1\">2025-06-19</td>\n",
"<td class=\"grt-left grt-hrule-0 grt-vrule-0\"> neutrinos are hard to detect</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-left grt-hrule-0\">2014</td>\n",
"<td class=\"grt-right grt-hrule-0 grt-vrule-index\">16,667</td>\n",
"<td class=\"grt-right grt-hrule-0 grt-vrule-1\"> 86.490</td>\n",
"<td class=\"grt-right grt-hrule-0 grt-vrule-0\">1,666.25</td>\n",
"<td class=\"grt-center grt-hrule-0 grt-vrule-1\">2025-08-31</td>\n",
"<td class=\"grt-left grt-hrule-0 grt-vrule-0\"> Adam Smith is the father of economics</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-left grt-hrule-0\">2016</td>\n",
"<td class=\"grt-right grt-hrule-0 grt-vrule-index\">33,333</td>\n",
"<td class=\"grt-right grt-hrule-0 grt-vrule-1\"> 7.481k</td>\n",
"<td class=\"grt-right grt-hrule-0 grt-vrule-0\">2,133.00</td>\n",
"<td class=\"grt-center grt-hrule-0 grt-vrule-1\">2025-09-24</td>\n",
"<td class=\"grt-left grt-hrule-0 grt-vrule-0\"> risk is hard to define</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-left grt-hrule-0\">2021</td>\n",
"<td class=\"grt-right grt-hrule-0 grt-vrule-index\">75,000</td>\n",
"<td class=\"grt-right grt-hrule-0 grt-vrule-1\"> 520.411M</td>\n",
"<td class=\"grt-right grt-hrule-0 grt-vrule-0\">3,299.88</td>\n",
"<td class=\"grt-center grt-hrule-0 grt-vrule-1\">2025-11-24</td>\n",
"<td class=\"grt-left grt-hrule-0 grt-vrule-0\"> risk is hard to define</td>\n",
"</tr>\n",
"</tbody>\n",
"</table></div>"
],
"text/latex": [
"\n",
"\\begin{tikzpicture}[\n",
" auto,\n",
" transform shape,\n",
" nosep/.style={inner sep=0},\n",
" table/.style={\n",
" matrix of nodes,\n",
" row sep=0.125em,\n",
" column sep=0.375em,\n",
" nodes in empty cells,\n",
" nodes={rectangle, scale=0.635, text badly ragged , draw=blue!10},\n",
"\trow 1/.style={nodes={text=black, anchor=north, inner ysep=0, text height=0, text depth=0}},\n",
"\trow 2/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\\bfseries}},\n",
"\trow 3/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\\bfseries}},\n",
"\tcolumn 1/.style={nodes={align=left }, text height=0.9em, text depth=0.2em, inner xsep=0.375em, inner ysep=0, text width=3.60em},\n",
"\tcolumn 2/.style={nodes={align=right }, nosep, text width=23.40em},\n",
"\tcolumn 3/.style={nodes={align=right }, nosep, text width=23.40em},\n",
"\tcolumn 4/.style={nodes={align=right }, nosep, text width=23.40em},\n",
"\tcolumn 5/.style={nodes={align=center}, nosep, text width=23.40em},\n",
"\tcolumn 6/.style={nodes={align=left }, nosep, text width=23.40em},\n",
"\tcolumn 7/.style={text height=0.9em, text depth=0.2em, nosep, text width=0em}\t}]\n",
"\\matrix (TBM2NV7BWZEMG) [table, ampersand replacement=\\&]{\n",
" \\& \\& \\& \\& \\& \\& \\\\\n",
" \\grtspacer \\& A\\grtspacer \\& \\grtspacer \\& B\\grtspacer \\& \\grtspacer \\& C\\grtspacer \\& \\\\\n",
" years!\\grtspacer \\& Int\\grtspacer \\& Float\\grtspacer \\& Float\\grtspacer \\& 3\\grtspacer \\& Longer Text\\grtspacer \\& \\\\\n",
" 2007 \\& -41,667 \\& 14.374u \\& 32.62 \\& 2025-06-07 \\& not in Kansas anymore \\& \\\\\n",
" 2008 \\& -33,333 \\& 133.681u \\& 266.00 \\& 2025-06-19 \\& neutrinos are hard to detect \\& \\\\\n",
" 2014 \\& 16,667 \\& 86.490 \\& 1,666.25 \\& 2025-08-31 \\& Adam Smith is the father of economics \\& \\\\\n",
" 2016 \\& 33,333 \\& 7.481k \\& 2,133.00 \\& 2025-09-24 \\& risk is hard to define \\& \\\\\n",
" 2021 \\& 75,000 \\& 520.411M \\& 3,299.88 \\& 2025-11-24 \\& risk is hard to define \\& \\\\\n",
"};\n",
"\n",
"\\path[draw, thick] (TBM2NV7BWZEMG-1-1.south west) -- (TBM2NV7BWZEMG-1-7.south east);\n",
"\\path[draw, semithick] ([yshift=-0.0625em]TBM2NV7BWZEMG-3-1.south west) -- ([yshift=-0.0625em]TBM2NV7BWZEMG-3-7.south east);\n",
"\\path[draw, thick] ([yshift=-0.3125em]TBM2NV7BWZEMG-8-1.base west) -- ([yshift=-0.3125em]TBM2NV7BWZEMG-8-7.base east);\n",
"\\path[draw, very thin] ([xshift=-0.1875em, yshift=-0.0625em]TBM2NV7BWZEMG-2-2.south west) -- ([yshift=-0.0625em]TBM2NV7BWZEMG-2-7.south east);\n",
"\\path[draw, very thin] ([xshift=-0.1875em]TBM2NV7BWZEMG-1-2.south west) -- ([yshift=-0.3125em, xshift=-0.1875em]TBM2NV7BWZEMG-8-2.base west);\n",
"\\path[draw, ultra thin] ([xshift=0.1875em, yshift=-0.0625em]TBM2NV7BWZEMG-1-3.south east) -- ([yshift=-0.3125em, xshift=0.1875em]TBM2NV7BWZEMG-8-3.base east);\n",
"\\path[draw, ultra thin] ([xshift=0.1875em, yshift=-0.0625em]TBM2NV7BWZEMG-1-5.south east) -- ([yshift=-0.3125em, xshift=0.1875em]TBM2NV7BWZEMG-8-5.base east);\n",
"\n",
"\n",
"\n",
"\\end{tikzpicture}\n"
],
"text/plain": [
"GreaterTable(df_id=TBM2NV7BWZEMG)"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"#| echo: fenced\n",
"#| label: tbl-hard-rules-3c\n",
"#| tbl-cap: \"Change padding and debug mode, boxes (Quarto generated caption)\"\n",
"display(sGT(hard.sample(5).sort_index(),\n",
" caption='Change padding, debug mode lines',\n",
" padding_trbl=(10, 10, 20, 20), debug=True))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Here is the raw HTML and LaTeX output.\n",
"\n",
"\\footnotesize"
]
},
{
"cell_type": "code",
"execution_count": 68,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"HTML output\n",
"\n",
"<div class=\"greater-table\">\n",
"<style>\n",
" #TWRLFJOULVHRG {\n",
" border-collapse: collapse;\n",
" font-family: \"Roboto\", \"Open Sans Condensed\", \"Arial\", 'Segoe UI', sans-serif;\n",
" font-size: 0.9em;\n",
" width: auto;\n",
" /* tb and lr \n",
" width: fit-content; */\n",
" margin: 10px auto; \n",
" border: none;\n",
" overflow: auto;\n",
" margin-left: auto;\n",
" margin-right: auto;\n",
" }\n",
" /* tag formats */\n",
" #TWRLFJOULVHRG caption {\n",
" padding: 8px 10px 4px 10px;\n",
" font-size: 0.99em;\n",
" text-align: center;\n",
" font-weight: normal;\n",
" caption-side: top;\n",
" }\n",
" #TWRLFJOULVHRG thead {\n",
" /* top and bottom of header */\n",
" border-top: 1px solid #0ff;\n",
" border-bottom: 1px solid #0ff;\n",
" font-size: 0.99em;\n",
" }\n",
" #TWRLFJOULVHRG tbody {\n",
" /* bottom of body */\n",
" border-bottom: 1px solid #f0f;\n",
" }\n",
" #TWRLFJOULVHRG th {\n",
" vertical-align: bottom;\n",
" padding: 8px 10px 8px 10px;\n",
" }\n",
" #TWRLFJOULVHRG td {\n",
" /* top, right, bottom left cell padding */\n",
" padding: 4px 10px 4px 10px;\n",
" vertical-align: top;\n",
" }\n",
" /* class overrides */\n",
" #TWRLFJOULVHRG .grt-hrule-0 {\n",
" border-top: 0px solid #f00;\n",
" }\n",
" #TWRLFJOULVHRG .grt-hrule-1 {\n",
" border-top: 0px solid #b00;\n",
" }\n",
" #TWRLFJOULVHRG .grt-hrule-2 {\n",
" border-top: 0px solid #900;\n",
" }\n",
" /* for the header, there if you have v lines you want h lines\n",
" hence use vrule_widths */\n",
" #TWRLFJOULVHRG .grt-bhrule-0 {\n",
" border-bottom: 1.5px solid #f00;\n",
" }\n",
" #TWRLFJOULVHRG .grt-bhrule-1 {\n",
" border-bottom: 1px solid #b00;\n",
" }\n",
" #TWRLFJOULVHRG .grt-vrule-index {\n",
" border-left: 1.5px solid #0f0;\n",
" }\n",
" #TWRLFJOULVHRG .grt-vrule-0 {\n",
" border-left: 1.5px solid #0f0;\n",
" }\n",
" #TWRLFJOULVHRG .grt-vrule-1 {\n",
" border-left: 1px solid #0a0;\n",
" }\n",
" #TWRLFJOULVHRG .grt-vrule-2 {\n",
" border-left: 0.5px solid #090;\n",
" }\n",
" #TWRLFJOULVHRG .grt-left {\n",
" text-align: left;\n",
" }\n",
" #TWRLFJOULVHRG .grt-center {\n",
" text-align: center;\n",
" }\n",
" #TWRLFJOULVHRG .grt-right {\n",
" text-align: right;\n",
" font-variant-numeric: tabular-nums;\n",
" }\n",
" #TWRLFJOULVHRG .grt-head {\n",
" font-family: \"Times New Roman\", 'Courier New';\n",
" font-size: 0.99em;\n",
" }\n",
" #TWRLFJOULVHRG .grt-bold {\n",
" font-weight: bold;\n",
" }\n",
"\n",
" #TWRLFJOULVHRG .grt-c-0 { width: 5.5em; }\n",
" #TWRLFJOULVHRG .grt-c-1 { width: 6.5em; }\n",
" #TWRLFJOULVHRG .grt-c-2 { width: 7.0em; }\n",
" #TWRLFJOULVHRG .grt-c-3 { width: 7.0em; }\n",
" #TWRLFJOULVHRG .grt-c-4 { width: 7.5em; }\n",
" #TWRLFJOULVHRG .grt-c-5 { width: 17.0em; }\n",
"</style>\n",
"<table id=\"TWRLFJOULVHRG\">\n",
"<caption> (id: TWRLFJOULVHRG)</caption>\n",
"<colgroup>\n",
"<col style=\"width: 2.75em;\"/>\n",
"<col style=\"width: 3.25em;\"/>\n",
"<col style=\"width: 3.5em;\"/>\n",
"<col style=\"width: 3.5em;\"/>\n",
"<col style=\"width: 3.75em;\"/>\n",
"<col style=\"width: 8.5em;\"/>\n",
"</colgroup>\n",
"<thead>\n",
"<tr>\n",
"<th class=\"grt-left\"></th>\n",
"<th class=\"grt-center grt-bhrule-0 grt-vrule-index\" colspan=\"2\">A</th>\n",
"<th class=\"grt-center grt-bhrule-0 grt-vrule-0\" colspan=\"2\">B</th>\n",
"<th class=\"grt-center grt-bhrule-0 grt-vrule-0\" colspan=\"1\">C</th>\n",
"</tr>\n",
"<tr>\n",
"<th class=\"grt-left\">years!</th>\n",
"<th class=\"grt-center grt-vrule-index\" colspan=\"1\">Int</th>\n",
"<th class=\"grt-center grt-vrule-1\" colspan=\"1\">Float</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">Float</th>\n",
"<th class=\"grt-center grt-vrule-1\" colspan=\"1\">3</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">Longer Text</th>\n",
"</tr>\n",
"</thead>\n",
"<tbody>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">2000</td>\n",
"<td class=\"grt-c-1 grt-right grt-vrule-index\">-100,000</td>\n",
"<td class=\"grt-c-2 grt-right grt-vrule-1\"> 2.389p</td>\n",
"<td class=\"grt-c-3 grt-right grt-vrule-0\">-1,601.00</td>\n",
"<td class=\"grt-c-4 grt-center grt-vrule-1\">2025-03-14</td>\n",
"<td class=\"grt-c-5 grt-left grt-vrule-0\">once upon a time</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2001</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">-91,667</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 22.217p</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">-1,367.62</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-03-26</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> risk is hard to define</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2002</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">-83,333</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 206.619p</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">-1,134.25</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-04-07</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> not in Kansas anymore</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2003</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">-75,000</td>\n",
"<td class=\"grt-c-2 grt-right grt-hrule-0 grt-vrule-1\"> 1.922n</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">-900.88</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-1\">2025-04-19</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\"> neutrinos are hard to detect</td>\n",
"</tr>\n",
"</tbody>\n",
"</table></div>\n",
"\n",
"\n",
"\n",
"TeX output\n",
"\n",
"\n",
"\\begin{tikzpicture}[\n",
" auto,\n",
" transform shape,\n",
" nosep/.style={inner sep=0},\n",
" table/.style={\n",
" matrix of nodes,\n",
" row sep=0.125em,\n",
" column sep=0.375em,\n",
" nodes in empty cells,\n",
" nodes={rectangle, scale=0.635, text badly ragged , draw=blue!10},\n",
"\trow 1/.style={nodes={text=black, anchor=north, inner ysep=0, text height=0, text depth=0}},\n",
"\trow 2/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\\bfseries}},\n",
"\trow 3/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\\bfseries}},\n",
"\tcolumn 1/.style={nodes={align=left }, text height=0.9em, text depth=0.2em, inner xsep=0.375em, inner ysep=0, text width=3.60em},\n",
"\tcolumn 2/.style={nodes={align=right }, nosep, text width=6.59em},\n",
"\tcolumn 3/.style={nodes={align=right }, nosep, text width=7.41em},\n",
"\tcolumn 4/.style={nodes={align=right }, nosep, text width=7.41em},\n",
"\tcolumn 5/.style={nodes={align=center}, nosep, text width=8.24em},\n",
"\tcolumn 6/.style={nodes={align=left }, nosep, text width=23.89em},\n",
"\tcolumn 7/.style={text height=0.9em, text depth=0.2em, nosep, text width=0em}\t}]\n",
"\\matrix (TWRLFJOULVHRG) [table, ampersand replacement=\\&]{\n",
" \\& \\& \\& \\& \\& \\& \\\\\n",
" \\grtspacer \\& A\\grtspacer \\& \\grtspacer \\& B\\grtspacer \\& \\grtspacer \\& C\\grtspacer \\& \\\\\n",
" years!\\grtspacer \\& Int\\grtspacer \\& Float\\grtspacer \\& Float\\grtspacer \\& 3\\grtspacer \\& Longer Text\\grtspacer \\& \\\\\n",
" 2000 \\& -100,000 \\& 2.389p \\& -1,601.00 \\& 2025-03-14 \\& once upon a time \\& \\\\\n",
" 2001 \\& -91,667 \\& 22.217p \\& -1,367.62 \\& 2025-03-26 \\& risk is hard to define \\& \\\\\n",
" 2002 \\& -83,333 \\& 206.619p \\& -1,134.25 \\& 2025-04-07 \\& not in Kansas anymore \\& \\\\\n",
" 2003 \\& -75,000 \\& 1.922n \\& -900.88 \\& 2025-04-19 \\& neutrinos are hard to detect \\& \\\\\n",
"};\n",
"\n",
"\\path[draw, thick] (TWRLFJOULVHRG-1-1.south west) -- (TWRLFJOULVHRG-1-7.south east);\n",
"\\path[draw, semithick] ([yshift=-0.0625em]TWRLFJOULVHRG-3-1.south west) -- ([yshift=-0.0625em]TWRLFJOULVHRG-3-7.south east);\n",
"\\path[draw, thick] ([yshift=-0.3125em]TWRLFJOULVHRG-7-1.base west) -- ([yshift=-0.3125em]TWRLFJOULVHRG-7-7.base east);\n",
"\\path[draw, very thin] ([xshift=-0.1875em, yshift=-0.0625em]TWRLFJOULVHRG-2-2.south west) -- ([yshift=-0.0625em]TWRLFJOULVHRG-2-7.south east);\n",
"\\path[draw, very thin] ([xshift=-0.1875em]TWRLFJOULVHRG-1-2.south west) -- ([yshift=-0.3125em, xshift=-0.1875em]TWRLFJOULVHRG-7-2.base west);\n",
"\\path[draw, ultra thin] ([xshift=0.1875em, yshift=-0.0625em]TWRLFJOULVHRG-1-3.south east) -- ([yshift=-0.3125em, xshift=0.1875em]TWRLFJOULVHRG-7-3.base east);\n",
"\\path[draw, ultra thin] ([xshift=0.1875em, yshift=-0.0625em]TWRLFJOULVHRG-1-5.south east) -- ([yshift=-0.3125em, xshift=0.1875em]TWRLFJOULVHRG-7-5.base east);\n",
"\n",
"\n",
"\n",
"\\end{tikzpicture}\n",
"\n"
]
}
],
"source": [
"#| label: raw-output\n",
"f = sGT(hard.head(4), debug=True)\n",
"print('HTML output\\n')\n",
"print(f._repr_html_())\n",
"\n",
"print('\\n\\n\\nTeX output\\n')\n",
"print(f._repr_latex_())"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\\normalsize\n",
"\n",
"\n",
"# A Table with TeX Content"
]
},
{
"cell_type": "code",
"execution_count": 69,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>A</th>\n",
" <th>B</th>\n",
" <th>$C_1$</th>\n",
" <th>C_2 not tex</th>\n",
" <th>$\\cos(A)$</th>\n",
" </tr>\n",
" <tr>\n",
" <th>x</th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>2020</th>\n",
" <td>0.424657</td>\n",
" <td>$x^5$</td>\n",
" <td>$\\sin(5x\\pi/n)$</td>\n",
" <td>$x^5$</td>\n",
" <td>\\(x^5\\)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2021</th>\n",
" <td>0.209278</td>\n",
" <td>$x^6$</td>\n",
" <td>$\\sin(6x\\pi/n)$</td>\n",
" <td>$x^6$</td>\n",
" <td>\\(x^6\\)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2022</th>\n",
" <td>0.068308</td>\n",
" <td>$x^7$</td>\n",
" <td>$\\sin(7x\\pi/n)$</td>\n",
" <td>$x^7$</td>\n",
" <td>\\(x^7\\)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2023</th>\n",
" <td>0.797205</td>\n",
" <td>$x^8$</td>\n",
" <td>$\\sin(8x\\pi/n)$</td>\n",
" <td>$x^8$</td>\n",
" <td>\\(x^8\\)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2024</th>\n",
" <td>0.519346</td>\n",
" <td>$x^9$</td>\n",
" <td>$\\sin(9x\\pi/n)$</td>\n",
" <td>$x^9$</td>\n",
" <td>\\(x^9\\)</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" A B $C_1$ C_2 not tex $\\cos(A)$\n",
"x \n",
"2020 0.424657 $x^5$ $\\sin(5x\\pi/n)$ $x^5$ \\(x^5\\)\n",
"2021 0.209278 $x^6$ $\\sin(6x\\pi/n)$ $x^6$ \\(x^6\\)\n",
"2022 0.068308 $x^7$ $\\sin(7x\\pi/n)$ $x^7$ \\(x^7\\)\n",
"2023 0.797205 $x^8$ $\\sin(8x\\pi/n)$ $x^8$ \\(x^8\\)\n",
"2024 0.519346 $x^9$ $\\sin(9x\\pi/n)$ $x^9$ \\(x^9\\)"
]
},
"execution_count": 69,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"#| label: tbl-tex\n",
"#| tbl-cap: '(Quarto generated caption): table displayed by default routine.'\n",
"index = pd.Index([\"A\", \"B\", \"$C_1$\", \"C_2 not tex\", '$\\\\cos(A)$'])\n",
"tex = pd.DataFrame(\n",
"{'x': np.arange(2020, 2025, dtype=int),\n",
"'b': np.random.random(5),\n",
"'a1': [f'$x^{i}$' for i in range(5,10)],\n",
"'a2': [f'$\\\\sin({i}x\\\\pi/n)$' for i in range(5,10)],\n",
"'a3': [f'$x^{i}$' for i in range(5,10)],\n",
"'a4': [f'\\\\(x^{i}\\\\)' for i in range(5,10)],\n",
"}).set_index('x')\n",
"tex = tex.head()\n",
"tex.columns = index\n",
"tex"
]
},
{
"cell_type": "code",
"execution_count": 70,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div class=\"greater-table\">\n",
"<style>\n",
" #T5LVCCJLTOVH6 {\n",
" border-collapse: collapse;\n",
" font-family: \"Roboto\", \"Open Sans Condensed\", \"Arial\", 'Segoe UI', sans-serif;\n",
" font-size: 0.9em;\n",
" width: auto;\n",
" \n",
" margin: 10px auto; \n",
" border: none;\n",
" overflow: auto;\n",
" margin-left: auto;\n",
" margin-right: auto;\n",
" }\n",
" \n",
" #T5LVCCJLTOVH6 caption {\n",
" padding: 8px 10px 4px 10px;\n",
" font-size: 0.99em;\n",
" text-align: center;\n",
" font-weight: normal;\n",
" caption-side: top;\n",
" }\n",
" #T5LVCCJLTOVH6 thead {\n",
" \n",
" border-top: 1px solid #000;\n",
" border-bottom: 1px solid #000;\n",
" font-size: 0.99em;\n",
" }\n",
" #T5LVCCJLTOVH6 tbody {\n",
" \n",
" border-bottom: 1px solid #000;\n",
" }\n",
" #T5LVCCJLTOVH6 th {\n",
" vertical-align: bottom;\n",
" padding: 8px 10px 8px 10px;\n",
" }\n",
" #T5LVCCJLTOVH6 td {\n",
" \n",
" padding: 4px 10px 4px 10px;\n",
" vertical-align: top;\n",
" }\n",
" \n",
" #T5LVCCJLTOVH6 .grt-hrule-0 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" #T5LVCCJLTOVH6 .grt-hrule-1 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" #T5LVCCJLTOVH6 .grt-hrule-2 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" \n",
" #T5LVCCJLTOVH6 .grt-bhrule-0 {\n",
" border-bottom: 0px solid #000;\n",
" }\n",
" #T5LVCCJLTOVH6 .grt-bhrule-1 {\n",
" border-bottom: 0px solid #000;\n",
" }\n",
" #T5LVCCJLTOVH6 .grt-vrule-index {\n",
" border-left: 1px solid #000;\n",
" }\n",
" #T5LVCCJLTOVH6 .grt-vrule-0 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #T5LVCCJLTOVH6 .grt-vrule-1 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #T5LVCCJLTOVH6 .grt-vrule-2 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #T5LVCCJLTOVH6 .grt-left {\n",
" text-align: left;\n",
" }\n",
" #T5LVCCJLTOVH6 .grt-center {\n",
" text-align: center;\n",
" }\n",
" #T5LVCCJLTOVH6 .grt-right {\n",
" text-align: right;\n",
" font-variant-numeric: tabular-nums;\n",
" }\n",
" #T5LVCCJLTOVH6 .grt-head {\n",
" font-family: \"Times New Roman\", 'Courier New';\n",
" font-size: 0.99em;\n",
" }\n",
" #T5LVCCJLTOVH6 .grt-bold {\n",
" font-weight: bold;\n",
" }\n",
"\n",
" #T5LVCCJLTOVH6 .grt-c-0 { width: 4.5em; }\n",
" #T5LVCCJLTOVH6 .grt-c-1 { width: 6.0em; }\n",
" #T5LVCCJLTOVH6 .grt-c-2 { width: 5.0em; }\n",
" #T5LVCCJLTOVH6 .grt-c-3 { width: 10.0em; }\n",
" #T5LVCCJLTOVH6 .grt-c-4 { width: 5.0em; }\n",
" #T5LVCCJLTOVH6 .grt-c-5 { width: 7.0em; }\n",
"</style>\n",
"<table id=\"T5LVCCJLTOVH6\">\n",
"<caption>GT Caption</caption>\n",
"<colgroup>\n",
"<col style=\"width: 2.25em;\"/>\n",
"<col style=\"width: 3.0em;\"/>\n",
"<col style=\"width: 2.5em;\"/>\n",
"<col style=\"width: 5.0em;\"/>\n",
"<col style=\"width: 2.5em;\"/>\n",
"<col style=\"width: 3.5em;\"/>\n",
"</colgroup>\n",
"<thead>\n",
"<tr>\n",
"<th class=\"grt-left\">x</th>\n",
"<th class=\"grt-center grt-vrule-index\" colspan=\"1\">A</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">B</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">\\(C_1\\)</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">C_2 not tex</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">\\(\\cos(A)\\)</th>\n",
"</tr>\n",
"</thead>\n",
"<tbody>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">2020</td>\n",
"<td class=\"grt-c-1 grt-right grt-vrule-index\">0.42466</td>\n",
"<td class=\"grt-c-2 grt-left grt-vrule-0\">\\(x^5\\)</td>\n",
"<td class=\"grt-c-3 grt-left grt-vrule-0\">\\(\\sin(5x\\pi/n)\\)</td>\n",
"<td class=\"grt-c-4 grt-left grt-vrule-0\">\\(x^5\\)</td>\n",
"<td class=\"grt-c-5 grt-left grt-vrule-0\">\\(x^5\\)</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2021</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">0.20928</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0 grt-vrule-0\">\\(x^6\\)</td>\n",
"<td class=\"grt-c-3 grt-left grt-hrule-0 grt-vrule-0\">\\(\\sin(6x\\pi/n)\\)</td>\n",
"<td class=\"grt-c-4 grt-left grt-hrule-0 grt-vrule-0\">\\(x^6\\)</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\">\\(x^6\\)</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2022</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">0.06831</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0 grt-vrule-0\">\\(x^7\\)</td>\n",
"<td class=\"grt-c-3 grt-left grt-hrule-0 grt-vrule-0\">\\(\\sin(7x\\pi/n)\\)</td>\n",
"<td class=\"grt-c-4 grt-left grt-hrule-0 grt-vrule-0\">\\(x^7\\)</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\">\\(x^7\\)</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2023</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">0.79721</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0 grt-vrule-0\">\\(x^8\\)</td>\n",
"<td class=\"grt-c-3 grt-left grt-hrule-0 grt-vrule-0\">\\(\\sin(8x\\pi/n)\\)</td>\n",
"<td class=\"grt-c-4 grt-left grt-hrule-0 grt-vrule-0\">\\(x^8\\)</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\">\\(x^8\\)</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2024</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">0.51935</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0 grt-vrule-0\">\\(x^9\\)</td>\n",
"<td class=\"grt-c-3 grt-left grt-hrule-0 grt-vrule-0\">\\(\\sin(9x\\pi/n)\\)</td>\n",
"<td class=\"grt-c-4 grt-left grt-hrule-0 grt-vrule-0\">\\(x^9\\)</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\">\\(x^9\\)</td>\n",
"</tr>\n",
"</tbody>\n",
"</table></div>"
],
"text/latex": [
"\n",
"\\begin{tikzpicture}[\n",
" auto,\n",
" transform shape,\n",
" nosep/.style={inner sep=0},\n",
" table/.style={\n",
" matrix of nodes,\n",
" row sep=0.125em,\n",
" column sep=0.375em,\n",
" nodes in empty cells,\n",
" nodes={rectangle, scale=0.635, text badly ragged },\n",
"\trow 1/.style={nodes={text=black, anchor=north, inner ysep=0, text height=0, text depth=0}},\n",
"\trow 2/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\\bfseries}},\n",
"\tcolumn 1/.style={nodes={align=left }, text height=0.9em, text depth=0.2em, inner xsep=0.375em, inner ysep=0, text width=2.40em},\n",
"\tcolumn 2/.style={nodes={align=right }, nosep, text width=6.61em},\n",
"\tcolumn 3/.style={nodes={align=left }, nosep, text width=4.72em},\n",
"\tcolumn 4/.style={nodes={align=left }, nosep, text width=14.17em},\n",
"\tcolumn 5/.style={nodes={align=left }, nosep, text width=4.72em},\n",
"\tcolumn 6/.style={nodes={align=left }, nosep, text width=8.50em},\n",
"\tcolumn 7/.style={text height=0.9em, text depth=0.2em, nosep, text width=0em}\t}]\n",
"\\matrix (T5LVCCJLTOVH6) [table, ampersand replacement=\\&]{\n",
" \\& \\& \\& \\& \\& \\& \\\\\n",
" x\\grtspacer \\& A\\grtspacer \\& B\\grtspacer \\& $C_1$\\grtspacer \\& C\\_2 not tex\\grtspacer \\& $\\cos(A)$\\grtspacer \\& \\\\\n",
" 2020 \\& 0.42466 \\& $x^5$ \\& $\\sin(5x\\pi/n)$ \\& $x^5$ \\& \\(x^5\\) \\& \\\\\n",
" 2021 \\& 0.20928 \\& $x^6$ \\& $\\sin(6x\\pi/n)$ \\& $x^6$ \\& \\(x^6\\) \\& \\\\\n",
" 2022 \\& 0.06831 \\& $x^7$ \\& $\\sin(7x\\pi/n)$ \\& $x^7$ \\& \\(x^7\\) \\& \\\\\n",
" 2023 \\& 0.79721 \\& $x^8$ \\& $\\sin(8x\\pi/n)$ \\& $x^8$ \\& \\(x^8\\) \\& \\\\\n",
" 2024 \\& 0.51935 \\& $x^9$ \\& $\\sin(9x\\pi/n)$ \\& $x^9$ \\& \\(x^9\\) \\& \\\\\n",
"};\n",
"\n",
"\\path[draw, thick] (T5LVCCJLTOVH6-1-1.south west) -- (T5LVCCJLTOVH6-1-7.south east);\n",
"\\path[draw, semithick] ([yshift=-0.0625em]T5LVCCJLTOVH6-2-1.south west) -- ([yshift=-0.0625em]T5LVCCJLTOVH6-2-7.south east);\n",
"\\path[draw, thick] ([yshift=-0.3125em]T5LVCCJLTOVH6-7-1.base west) -- ([yshift=-0.3125em]T5LVCCJLTOVH6-7-7.base east);\n",
"\\path[draw, very thin] ([xshift=-0.1875em]T5LVCCJLTOVH6-1-2.south west) -- ([yshift=-0.3125em, xshift=-0.1875em]T5LVCCJLTOVH6-7-2.base west);\n",
"\n",
"\n",
"\n",
"\\end{tikzpicture}\n"
],
"text/plain": [
"GreaterTable(df_id=T5LVCCJLTOVH6)"
]
},
"execution_count": 70,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"#| label: tbl-tex-2\n",
"#| tbl-cap: GT output (Quarto generated caption)\n",
"sGT(tex, 'GT Caption')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Ratio columns."
]
},
{
"cell_type": "code",
"execution_count": 71,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div class=\"greater-table\">\n",
"<style>\n",
" #THHAXSGJ6KMIB {\n",
" border-collapse: collapse;\n",
" font-family: \"Roboto\", \"Open Sans Condensed\", \"Arial\", 'Segoe UI', sans-serif;\n",
" font-size: 0.9em;\n",
" width: auto;\n",
" \n",
" margin: 10px auto; \n",
" border: none;\n",
" overflow: auto;\n",
" margin-left: auto;\n",
" margin-right: auto;\n",
" }\n",
" \n",
" #THHAXSGJ6KMIB caption {\n",
" padding: 8px 10px 4px 10px;\n",
" font-size: 0.99em;\n",
" text-align: center;\n",
" font-weight: normal;\n",
" caption-side: top;\n",
" }\n",
" #THHAXSGJ6KMIB thead {\n",
" \n",
" border-top: 1px solid #000;\n",
" border-bottom: 1px solid #000;\n",
" font-size: 0.99em;\n",
" }\n",
" #THHAXSGJ6KMIB tbody {\n",
" \n",
" border-bottom: 1px solid #000;\n",
" }\n",
" #THHAXSGJ6KMIB th {\n",
" vertical-align: bottom;\n",
" padding: 8px 10px 8px 10px;\n",
" }\n",
" #THHAXSGJ6KMIB td {\n",
" \n",
" padding: 4px 10px 4px 10px;\n",
" vertical-align: top;\n",
" }\n",
" \n",
" #THHAXSGJ6KMIB .grt-hrule-0 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" #THHAXSGJ6KMIB .grt-hrule-1 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" #THHAXSGJ6KMIB .grt-hrule-2 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" \n",
" #THHAXSGJ6KMIB .grt-bhrule-0 {\n",
" border-bottom: 0px solid #000;\n",
" }\n",
" #THHAXSGJ6KMIB .grt-bhrule-1 {\n",
" border-bottom: 0px solid #000;\n",
" }\n",
" #THHAXSGJ6KMIB .grt-vrule-index {\n",
" border-left: 1px solid #000;\n",
" }\n",
" #THHAXSGJ6KMIB .grt-vrule-0 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #THHAXSGJ6KMIB .grt-vrule-1 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #THHAXSGJ6KMIB .grt-vrule-2 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #THHAXSGJ6KMIB .grt-left {\n",
" text-align: left;\n",
" }\n",
" #THHAXSGJ6KMIB .grt-center {\n",
" text-align: center;\n",
" }\n",
" #THHAXSGJ6KMIB .grt-right {\n",
" text-align: right;\n",
" font-variant-numeric: tabular-nums;\n",
" }\n",
" #THHAXSGJ6KMIB .grt-head {\n",
" font-family: \"Times New Roman\", 'Courier New';\n",
" font-size: 0.99em;\n",
" }\n",
" #THHAXSGJ6KMIB .grt-bold {\n",
" font-weight: bold;\n",
" }\n",
"\n",
" #THHAXSGJ6KMIB .grt-c-0 { width: 4.5em; }\n",
" #THHAXSGJ6KMIB .grt-c-1 { width: 5.0em; }\n",
" #THHAXSGJ6KMIB .grt-c-2 { width: 5.0em; }\n",
" #THHAXSGJ6KMIB .grt-c-3 { width: 10.0em; }\n",
" #THHAXSGJ6KMIB .grt-c-4 { width: 5.0em; }\n",
" #THHAXSGJ6KMIB .grt-c-5 { width: 7.0em; }\n",
"</style>\n",
"<table id=\"THHAXSGJ6KMIB\">\n",
"<caption>Ratio columns in A</caption>\n",
"<colgroup>\n",
"<col style=\"width: 2.25em;\"/>\n",
"<col style=\"width: 2.5em;\"/>\n",
"<col style=\"width: 2.5em;\"/>\n",
"<col style=\"width: 5.0em;\"/>\n",
"<col style=\"width: 2.5em;\"/>\n",
"<col style=\"width: 3.5em;\"/>\n",
"</colgroup>\n",
"<thead>\n",
"<tr>\n",
"<th class=\"grt-left\">x</th>\n",
"<th class=\"grt-center grt-vrule-index\" colspan=\"1\">A (%)</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">B</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">\\(C_1\\)</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">C_2 not tex</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">\\(\\cos(A)\\)</th>\n",
"</tr>\n",
"</thead>\n",
"<tbody>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">2020</td>\n",
"<td class=\"grt-c-1 grt-right grt-vrule-index\">42.5%</td>\n",
"<td class=\"grt-c-2 grt-left grt-vrule-0\">\\(x^5\\)</td>\n",
"<td class=\"grt-c-3 grt-left grt-vrule-0\">\\(\\sin(5x\\pi/n)\\)</td>\n",
"<td class=\"grt-c-4 grt-left grt-vrule-0\">\\(x^5\\)</td>\n",
"<td class=\"grt-c-5 grt-left grt-vrule-0\">\\(x^5\\)</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2021</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">20.9%</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0 grt-vrule-0\">\\(x^6\\)</td>\n",
"<td class=\"grt-c-3 grt-left grt-hrule-0 grt-vrule-0\">\\(\\sin(6x\\pi/n)\\)</td>\n",
"<td class=\"grt-c-4 grt-left grt-hrule-0 grt-vrule-0\">\\(x^6\\)</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\">\\(x^6\\)</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2022</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">6.8%</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0 grt-vrule-0\">\\(x^7\\)</td>\n",
"<td class=\"grt-c-3 grt-left grt-hrule-0 grt-vrule-0\">\\(\\sin(7x\\pi/n)\\)</td>\n",
"<td class=\"grt-c-4 grt-left grt-hrule-0 grt-vrule-0\">\\(x^7\\)</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\">\\(x^7\\)</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2023</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">79.7%</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0 grt-vrule-0\">\\(x^8\\)</td>\n",
"<td class=\"grt-c-3 grt-left grt-hrule-0 grt-vrule-0\">\\(\\sin(8x\\pi/n)\\)</td>\n",
"<td class=\"grt-c-4 grt-left grt-hrule-0 grt-vrule-0\">\\(x^8\\)</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\">\\(x^8\\)</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2024</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">51.9%</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0 grt-vrule-0\">\\(x^9\\)</td>\n",
"<td class=\"grt-c-3 grt-left grt-hrule-0 grt-vrule-0\">\\(\\sin(9x\\pi/n)\\)</td>\n",
"<td class=\"grt-c-4 grt-left grt-hrule-0 grt-vrule-0\">\\(x^9\\)</td>\n",
"<td class=\"grt-c-5 grt-left grt-hrule-0 grt-vrule-0\">\\(x^9\\)</td>\n",
"</tr>\n",
"</tbody>\n",
"</table></div>"
],
"text/latex": [
"\n",
"\\begin{tikzpicture}[\n",
" auto,\n",
" transform shape,\n",
" nosep/.style={inner sep=0},\n",
" table/.style={\n",
" matrix of nodes,\n",
" row sep=0.125em,\n",
" column sep=0.375em,\n",
" nodes in empty cells,\n",
" nodes={rectangle, scale=0.635, text badly ragged },\n",
"\trow 1/.style={nodes={text=black, anchor=north, inner ysep=0, text height=0, text depth=0}},\n",
"\trow 2/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\\bfseries}},\n",
"\tcolumn 1/.style={nodes={align=left }, text height=0.9em, text depth=0.2em, inner xsep=0.375em, inner ysep=0, text width=2.40em},\n",
"\tcolumn 2/.style={nodes={align=right }, nosep, text width=5.67em},\n",
"\tcolumn 3/.style={nodes={align=left }, nosep, text width=4.72em},\n",
"\tcolumn 4/.style={nodes={align=left }, nosep, text width=14.17em},\n",
"\tcolumn 5/.style={nodes={align=left }, nosep, text width=4.72em},\n",
"\tcolumn 6/.style={nodes={align=left }, nosep, text width=8.50em},\n",
"\tcolumn 7/.style={text height=0.9em, text depth=0.2em, nosep, text width=0em}\t}]\n",
"\\matrix (THHAXSGJ6KMIB) [table, ampersand replacement=\\&]{\n",
" \\& \\& \\& \\& \\& \\& \\\\\n",
" x\\grtspacer \\& A (\\%)\\grtspacer \\& B\\grtspacer \\& $C_1$\\grtspacer \\& C\\_2 not tex\\grtspacer \\& $\\cos(A)$\\grtspacer \\& \\\\\n",
" 2020 \\& 42.5\\% \\& $x^5$ \\& $\\sin(5x\\pi/n)$ \\& $x^5$ \\& \\(x^5\\) \\& \\\\\n",
" 2021 \\& 20.9\\% \\& $x^6$ \\& $\\sin(6x\\pi/n)$ \\& $x^6$ \\& \\(x^6\\) \\& \\\\\n",
" 2022 \\& 6.8\\% \\& $x^7$ \\& $\\sin(7x\\pi/n)$ \\& $x^7$ \\& \\(x^7\\) \\& \\\\\n",
" 2023 \\& 79.7\\% \\& $x^8$ \\& $\\sin(8x\\pi/n)$ \\& $x^8$ \\& \\(x^8\\) \\& \\\\\n",
" 2024 \\& 51.9\\% \\& $x^9$ \\& $\\sin(9x\\pi/n)$ \\& $x^9$ \\& \\(x^9\\) \\& \\\\\n",
"};\n",
"\n",
"\\path[draw, thick] (THHAXSGJ6KMIB-1-1.south west) -- (THHAXSGJ6KMIB-1-7.south east);\n",
"\\path[draw, semithick] ([yshift=-0.0625em]THHAXSGJ6KMIB-2-1.south west) -- ([yshift=-0.0625em]THHAXSGJ6KMIB-2-7.south east);\n",
"\\path[draw, thick] ([yshift=-0.3125em]THHAXSGJ6KMIB-7-1.base west) -- ([yshift=-0.3125em]THHAXSGJ6KMIB-7-7.base east);\n",
"\\path[draw, very thin] ([xshift=-0.1875em]THHAXSGJ6KMIB-1-2.south west) -- ([yshift=-0.3125em, xshift=-0.1875em]THHAXSGJ6KMIB-7-2.base west);\n",
"\n",
"\n",
"\n",
"\\end{tikzpicture}\n"
],
"text/plain": [
"GreaterTable(df_id=THHAXSGJ6KMIB)"
]
},
"execution_count": 71,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"#| label: tbl-tex-3\n",
"#| tbl-cap: greater table output\n",
"tex.columns = [\"A (%)\", \"B\", \"$C_1$\", \"C_2 not tex\", '$\\\\cos(A)$']\n",
"sGT(tex, 'Ratio columns in A', ratio_cols='A (%)')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Greater_tables Test Suite"
]
},
{
"cell_type": "code",
"execution_count": 72,
"metadata": {},
"outputs": [],
"source": [
"#| echo: true\n",
"#| label: greater-tables-test\n",
"test_gen = gtu.TestDFGenerator(0, 0)\n",
"ans = test_gen.test_suite() "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Test Table: basic"
]
},
{
"cell_type": "code",
"execution_count": 73,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div class=\"greater-table\">\n",
"<style>\n",
" #TH37PJBJRXHJV {\n",
" border-collapse: collapse;\n",
" font-family: \"Roboto\", \"Open Sans Condensed\", \"Arial\", 'Segoe UI', sans-serif;\n",
" font-size: 0.9em;\n",
" width: auto;\n",
" \n",
" margin: 10px auto; \n",
" border: none;\n",
" overflow: auto;\n",
" margin-left: auto;\n",
" margin-right: auto;\n",
" }\n",
" \n",
" #TH37PJBJRXHJV caption {\n",
" padding: 8px 10px 4px 10px;\n",
" font-size: 0.99em;\n",
" text-align: center;\n",
" font-weight: normal;\n",
" caption-side: top;\n",
" }\n",
" #TH37PJBJRXHJV thead {\n",
" \n",
" border-top: 1px solid #000;\n",
" border-bottom: 1px solid #000;\n",
" font-size: 0.99em;\n",
" }\n",
" #TH37PJBJRXHJV tbody {\n",
" \n",
" border-bottom: 1px solid #000;\n",
" }\n",
" #TH37PJBJRXHJV th {\n",
" vertical-align: bottom;\n",
" padding: 8px 10px 8px 10px;\n",
" }\n",
" #TH37PJBJRXHJV td {\n",
" \n",
" padding: 4px 10px 4px 10px;\n",
" vertical-align: top;\n",
" }\n",
" \n",
" #TH37PJBJRXHJV .grt-hrule-0 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" #TH37PJBJRXHJV .grt-hrule-1 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" #TH37PJBJRXHJV .grt-hrule-2 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" \n",
" #TH37PJBJRXHJV .grt-bhrule-0 {\n",
" border-bottom: 0px solid #000;\n",
" }\n",
" #TH37PJBJRXHJV .grt-bhrule-1 {\n",
" border-bottom: 0px solid #000;\n",
" }\n",
" #TH37PJBJRXHJV .grt-vrule-index {\n",
" border-left: 1px solid #000;\n",
" }\n",
" #TH37PJBJRXHJV .grt-vrule-0 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #TH37PJBJRXHJV .grt-vrule-1 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #TH37PJBJRXHJV .grt-vrule-2 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #TH37PJBJRXHJV .grt-left {\n",
" text-align: left;\n",
" }\n",
" #TH37PJBJRXHJV .grt-center {\n",
" text-align: center;\n",
" }\n",
" #TH37PJBJRXHJV .grt-right {\n",
" text-align: right;\n",
" font-variant-numeric: tabular-nums;\n",
" }\n",
" #TH37PJBJRXHJV .grt-head {\n",
" font-family: \"Times New Roman\", 'Courier New';\n",
" font-size: 0.99em;\n",
" }\n",
" #TH37PJBJRXHJV .grt-bold {\n",
" font-weight: bold;\n",
" }\n",
"\n",
" #TH37PJBJRXHJV .grt-c-0 { width: 5.5em; }\n",
" #TH37PJBJRXHJV .grt-c-1 { width: 7.0em; }\n",
" #TH37PJBJRXHJV .grt-c-2 { width: 9.0em; }\n",
" #TH37PJBJRXHJV .grt-c-3 { width: 7.5em; }\n",
" #TH37PJBJRXHJV .grt-c-4 { width: 7.5em; }\n",
" #TH37PJBJRXHJV .grt-c-5 { width: 5.5em; }\n",
" #TH37PJBJRXHJV .grt-c-6 { width: 8.0em; }\n",
" #TH37PJBJRXHJV .grt-c-7 { width: 8.5em; }\n",
" #TH37PJBJRXHJV .grt-c-8 { width: 7.0em; }\n",
"</style>\n",
"<table id=\"TH37PJBJRXHJV\">\n",
"<caption>Basic</caption>\n",
"<colgroup>\n",
"<col style=\"width: 2.75em;\"/>\n",
"<col style=\"width: 3.5em;\"/>\n",
"<col style=\"width: 4.5em;\"/>\n",
"<col style=\"width: 3.75em;\"/>\n",
"<col style=\"width: 3.75em;\"/>\n",
"<col style=\"width: 2.75em;\"/>\n",
"<col style=\"width: 4.0em;\"/>\n",
"<col style=\"width: 4.25em;\"/>\n",
"<col style=\"width: 3.5em;\"/>\n",
"</colgroup>\n",
"<thead>\n",
"<tr>\n",
"<th class=\"grt-left\">unintentionally</th>\n",
"<th class=\"grt-center grt-vrule-index\" colspan=\"1\">amply float</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">deeper str</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">grains date</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">indicators datetime</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">inject int</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">originates str</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">philosophers int</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">snowy float</th>\n",
"</tr>\n",
"</thead>\n",
"<tbody>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">8,003</td>\n",
"<td class=\"grt-c-1 grt-right grt-vrule-index\"> 12.899M</td>\n",
"<td class=\"grt-c-2 grt-left grt-vrule-0\">malicious</td>\n",
"<td class=\"grt-c-3 grt-center grt-vrule-0\">2025-09-08</td>\n",
"<td class=\"grt-c-4 grt-center grt-vrule-0\">2010-07-06</td>\n",
"<td class=\"grt-c-5 grt-right grt-vrule-0\">-3,452</td>\n",
"<td class=\"grt-c-6 grt-left grt-vrule-0\">contracts</td>\n",
"<td class=\"grt-c-7 grt-right grt-vrule-0\">693,336,903</td>\n",
"<td class=\"grt-c-8 grt-right grt-vrule-0\"> 5.120</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">18,582</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\"> 858.904</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0 grt-vrule-0\">manufacturers</td>\n",
"<td class=\"grt-c-3 grt-center grt-hrule-0 grt-vrule-0\">2023-05-02</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-0\">2015-06-12</td>\n",
"<td class=\"grt-c-5 grt-right grt-hrule-0 grt-vrule-0\">7,457</td>\n",
"<td class=\"grt-c-6 grt-left grt-hrule-0 grt-vrule-0\">collapse</td>\n",
"<td class=\"grt-c-7 grt-right grt-hrule-0 grt-vrule-0\">789,639,196</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-0 grt-vrule-0\"> 765.357m</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">18,825</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\"> 229.354k</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0 grt-vrule-0\">shortfall</td>\n",
"<td class=\"grt-c-3 grt-center grt-hrule-0 grt-vrule-0\">2030-08-24</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-0\">2008-08-21</td>\n",
"<td class=\"grt-c-5 grt-right grt-hrule-0 grt-vrule-0\">-2,476</td>\n",
"<td class=\"grt-c-6 grt-left grt-hrule-0 grt-vrule-0\">sprawl</td>\n",
"<td class=\"grt-c-7 grt-right grt-hrule-0 grt-vrule-0\">741,809,916</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-0 grt-vrule-0\"> 8.096k</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">20,431</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\"> 5.300</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0 grt-vrule-0\">plugs</td>\n",
"<td class=\"grt-c-3 grt-center grt-hrule-0 grt-vrule-0\">2023-03-07</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-0\">2019-03-27</td>\n",
"<td class=\"grt-c-5 grt-right grt-hrule-0 grt-vrule-0\">2,255</td>\n",
"<td class=\"grt-c-6 grt-left grt-hrule-0 grt-vrule-0\">generalize</td>\n",
"<td class=\"grt-c-7 grt-right grt-hrule-0 grt-vrule-0\">993,293,639</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-0 grt-vrule-0\"> 106.115m</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">61,650</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\"> 461.180m</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0 grt-vrule-0\">setter</td>\n",
"<td class=\"grt-c-3 grt-center grt-hrule-0 grt-vrule-0\">2023-03-07</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-0\">2015-06-12</td>\n",
"<td class=\"grt-c-5 grt-right grt-hrule-0 grt-vrule-0\">9,625</td>\n",
"<td class=\"grt-c-6 grt-left grt-hrule-0 grt-vrule-0\">downright</td>\n",
"<td class=\"grt-c-7 grt-right grt-hrule-0 grt-vrule-0\">577,547,084</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-0 grt-vrule-0\"> 178.442k</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">65,395</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\"> 230.601</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0 grt-vrule-0\">longhorn</td>\n",
"<td class=\"grt-c-3 grt-center grt-hrule-0 grt-vrule-0\">2033-05-29</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-0\">2024-10-10</td>\n",
"<td class=\"grt-c-5 grt-right grt-hrule-0 grt-vrule-0\">-5,797</td>\n",
"<td class=\"grt-c-6 grt-left grt-hrule-0 grt-vrule-0\">humor</td>\n",
"<td class=\"grt-c-7 grt-right grt-hrule-0 grt-vrule-0\">821,555,659</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-0 grt-vrule-0\"> 2.267M</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">69,741</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\"> 829.476</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0 grt-vrule-0\">secretly</td>\n",
"<td class=\"grt-c-3 grt-center grt-hrule-0 grt-vrule-0\">2025-02-10</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-0\">2024-09-18</td>\n",
"<td class=\"grt-c-5 grt-right grt-hrule-0 grt-vrule-0\">9,649</td>\n",
"<td class=\"grt-c-6 grt-left grt-hrule-0 grt-vrule-0\">hills</td>\n",
"<td class=\"grt-c-7 grt-right grt-hrule-0 grt-vrule-0\">99,644,183</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-0 grt-vrule-0\"> 97.579k</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">74,709</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\"> 110.246</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0 grt-vrule-0\">strove</td>\n",
"<td class=\"grt-c-3 grt-center grt-hrule-0 grt-vrule-0\">2033-05-29</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-0\">2008-08-21</td>\n",
"<td class=\"grt-c-5 grt-right grt-hrule-0 grt-vrule-0\">1,255</td>\n",
"<td class=\"grt-c-6 grt-left grt-hrule-0 grt-vrule-0\">monster</td>\n",
"<td class=\"grt-c-7 grt-right grt-hrule-0 grt-vrule-0\">128,426,346</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-0 grt-vrule-0\"> 404.926k</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">77,783</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\"> 7.586</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0 grt-vrule-0\">conclusive</td>\n",
"<td class=\"grt-c-3 grt-center grt-hrule-0 grt-vrule-0\">2030-08-24</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-0\">2023-04-29</td>\n",
"<td class=\"grt-c-5 grt-right grt-hrule-0 grt-vrule-0\">4,827</td>\n",
"<td class=\"grt-c-6 grt-left grt-hrule-0 grt-vrule-0\">proffer</td>\n",
"<td class=\"grt-c-7 grt-right grt-hrule-0 grt-vrule-0\">818,501,173</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-0 grt-vrule-0\"> 18.774k</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">97,969</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\"> 10.485k</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0 grt-vrule-0\">josephine</td>\n",
"<td class=\"grt-c-3 grt-center grt-hrule-0 grt-vrule-0\">2025-02-10</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-0\">2024-09-18</td>\n",
"<td class=\"grt-c-5 grt-right grt-hrule-0 grt-vrule-0\">7,937</td>\n",
"<td class=\"grt-c-6 grt-left grt-hrule-0 grt-vrule-0\">permissions</td>\n",
"<td class=\"grt-c-7 grt-right grt-hrule-0 grt-vrule-0\">38,019,258</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-0 grt-vrule-0\"> 538.646</td>\n",
"</tr>\n",
"</tbody>\n",
"</table></div>"
],
"text/latex": [
"\n",
"\\begin{tikzpicture}[\n",
" auto,\n",
" transform shape,\n",
" nosep/.style={inner sep=0},\n",
" table/.style={\n",
" matrix of nodes,\n",
" row sep=0.125em,\n",
" column sep=0.375em,\n",
" nodes in empty cells,\n",
" nodes={rectangle, scale=0.635, text badly ragged },\n",
"\trow 1/.style={nodes={text=black, anchor=north, inner ysep=0, text height=0, text depth=0}},\n",
"\trow 2/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\\bfseries}},\n",
"\tcolumn 1/.style={nodes={align=left }, text height=0.9em, text depth=0.2em, inner xsep=0.375em, inner ysep=0, text width=3.60em},\n",
"\tcolumn 2/.style={nodes={align=right }, nosep, text width=6.02em},\n",
"\tcolumn 3/.style={nodes={align=left }, nosep, text width=8.70em},\n",
"\tcolumn 4/.style={nodes={align=center}, nosep, text width=6.69em},\n",
"\tcolumn 5/.style={nodes={align=center}, nosep, text width=6.69em},\n",
"\tcolumn 6/.style={nodes={align=right }, nosep, text width=4.02em},\n",
"\tcolumn 7/.style={nodes={align=left }, nosep, text width=7.36em},\n",
"\tcolumn 8/.style={nodes={align=right }, nosep, text width=8.03em},\n",
"\tcolumn 9/.style={nodes={align=right }, nosep, text width=6.02em},\n",
"\tcolumn 10/.style={text height=0.9em, text depth=0.2em, nosep, text width=0em}\t}]\n",
"\\matrix (TH37PJBJRXHJV) [table, ampersand replacement=\\&]{\n",
" \\& \\& \\& \\& \\& \\& \\& \\& \\& \\\\\n",
" unintentionally\\grtspacer \\& amply float\\grtspacer \\& deeper str\\grtspacer \\& grains date\\grtspacer \\& indicators datetime\\grtspacer \\& inject int\\grtspacer \\& originates str\\grtspacer \\& philosophers int\\grtspacer \\& snowy float\\grtspacer \\& \\\\\n",
" 8,003 \\& 12.899M \\& malicious \\& 2025-09-08 \\& 2010-07-06 \\& -3,452 \\& contracts \\& 693,336,903 \\& 5.120 \\& \\\\\n",
" 18,582 \\& 858.904 \\& manufacturers \\& 2023-05-02 \\& 2015-06-12 \\& 7,457 \\& collapse \\& 789,639,196 \\& 765.357m \\& \\\\\n",
" 18,825 \\& 229.354k \\& shortfall \\& 2030-08-24 \\& 2008-08-21 \\& -2,476 \\& sprawl \\& 741,809,916 \\& 8.096k \\& \\\\\n",
" 20,431 \\& 5.300 \\& plugs \\& 2023-03-07 \\& 2019-03-27 \\& 2,255 \\& generalize \\& 993,293,639 \\& 106.115m \\& \\\\\n",
" 61,650 \\& 461.180m \\& setter \\& 2023-03-07 \\& 2015-06-12 \\& 9,625 \\& downright \\& 577,547,084 \\& 178.442k \\& \\\\\n",
" 65,395 \\& 230.601 \\& longhorn \\& 2033-05-29 \\& 2024-10-10 \\& -5,797 \\& humor \\& 821,555,659 \\& 2.267M \\& \\\\\n",
" 69,741 \\& 829.476 \\& secretly \\& 2025-02-10 \\& 2024-09-18 \\& 9,649 \\& hills \\& 99,644,183 \\& 97.579k \\& \\\\\n",
" 74,709 \\& 110.246 \\& strove \\& 2033-05-29 \\& 2008-08-21 \\& 1,255 \\& monster \\& 128,426,346 \\& 404.926k \\& \\\\\n",
" 77,783 \\& 7.586 \\& conclusive \\& 2030-08-24 \\& 2023-04-29 \\& 4,827 \\& proffer \\& 818,501,173 \\& 18.774k \\& \\\\\n",
" 97,969 \\& 10.485k \\& josephine \\& 2025-02-10 \\& 2024-09-18 \\& 7,937 \\& permissions \\& 38,019,258 \\& 538.646 \\& \\\\\n",
"};\n",
"\n",
"\\path[draw, thick] (TH37PJBJRXHJV-1-1.south west) -- (TH37PJBJRXHJV-1-10.south east);\n",
"\\path[draw, semithick] ([yshift=-0.0625em]TH37PJBJRXHJV-2-1.south west) -- ([yshift=-0.0625em]TH37PJBJRXHJV-2-10.south east);\n",
"\\path[draw, thick] ([yshift=-0.3125em]TH37PJBJRXHJV-12-1.base west) -- ([yshift=-0.3125em]TH37PJBJRXHJV-12-10.base east);\n",
"\\path[draw, very thin] ([xshift=-0.1875em]TH37PJBJRXHJV-1-2.south west) -- ([yshift=-0.3125em, xshift=-0.1875em]TH37PJBJRXHJV-12-2.base west);\n",
"\n",
"\n",
"\n",
"\\end{tikzpicture}\n"
],
"text/plain": [
"GreaterTable(df_id=TH37PJBJRXHJV)"
]
},
"execution_count": 73,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"#| echo: true\n",
"#| label: tbl-greater-tables-test-0\n",
"#| tbl-cap: GT output for test table basic\n",
"hrw = (0, 0, 0)\n",
"sGT(ans['basic'], \"Basic\", ratio_cols='z', aligners={'w': 'l'},\n",
" hrule_widths=hrw)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Comments go here. \n",
"\n",
"\n",
"\n",
"## Test Table: timeseries"
]
},
{
"cell_type": "code",
"execution_count": 74,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div class=\"greater-table\">\n",
"<style>\n",
" #TRP5OQHAK77OA {\n",
" border-collapse: collapse;\n",
" font-family: \"Roboto\", \"Open Sans Condensed\", \"Arial\", 'Segoe UI', sans-serif;\n",
" font-size: 0.9em;\n",
" width: auto;\n",
" \n",
" margin: 10px auto; \n",
" border: none;\n",
" overflow: auto;\n",
" margin-left: auto;\n",
" margin-right: auto;\n",
" }\n",
" \n",
" #TRP5OQHAK77OA caption {\n",
" padding: 4px 10px 2px 10px;\n",
" font-size: 0.99em;\n",
" text-align: center;\n",
" font-weight: normal;\n",
" caption-side: top;\n",
" }\n",
" #TRP5OQHAK77OA thead {\n",
" \n",
" border-top: 1px solid #000;\n",
" border-bottom: 1px solid #000;\n",
" font-size: 0.99em;\n",
" }\n",
" #TRP5OQHAK77OA tbody {\n",
" \n",
" border-bottom: 1px solid #000;\n",
" }\n",
" #TRP5OQHAK77OA th {\n",
" vertical-align: bottom;\n",
" padding: 4px 10px 4px 10px;\n",
" }\n",
" #TRP5OQHAK77OA td {\n",
" \n",
" padding: 2px 10px 2px 10px;\n",
" vertical-align: top;\n",
" }\n",
" \n",
" #TRP5OQHAK77OA .grt-hrule-0 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" #TRP5OQHAK77OA .grt-hrule-1 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" #TRP5OQHAK77OA .grt-hrule-2 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" \n",
" #TRP5OQHAK77OA .grt-bhrule-0 {\n",
" border-bottom: 0px solid #000;\n",
" }\n",
" #TRP5OQHAK77OA .grt-bhrule-1 {\n",
" border-bottom: 0px solid #000;\n",
" }\n",
" #TRP5OQHAK77OA .grt-vrule-index {\n",
" border-left: 1px solid #000;\n",
" }\n",
" #TRP5OQHAK77OA .grt-vrule-0 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #TRP5OQHAK77OA .grt-vrule-1 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #TRP5OQHAK77OA .grt-vrule-2 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #TRP5OQHAK77OA .grt-left {\n",
" text-align: left;\n",
" }\n",
" #TRP5OQHAK77OA .grt-center {\n",
" text-align: center;\n",
" }\n",
" #TRP5OQHAK77OA .grt-right {\n",
" text-align: right;\n",
" font-variant-numeric: tabular-nums;\n",
" }\n",
" #TRP5OQHAK77OA .grt-head {\n",
" font-family: \"Times New Roman\", 'Courier New';\n",
" font-size: 0.99em;\n",
" }\n",
" #TRP5OQHAK77OA .grt-bold {\n",
" font-weight: bold;\n",
" }\n",
"\n",
" #TRP5OQHAK77OA .grt-c-0 { width: 7.5em; }\n",
" #TRP5OQHAK77OA .grt-c-1 { width: 7.5em; }\n",
" #TRP5OQHAK77OA .grt-c-2 { width: 7.5em; }\n",
" #TRP5OQHAK77OA .grt-c-3 { width: 10.5em; }\n",
"</style>\n",
"<table id=\"TRP5OQHAK77OA\">\n",
"<caption>Timeseries</caption>\n",
"<colgroup>\n",
"<col style=\"width: 3.75em;\"/>\n",
"<col style=\"width: 3.75em;\"/>\n",
"<col style=\"width: 3.75em;\"/>\n",
"<col style=\"width: 5.25em;\"/>\n",
"</colgroup>\n",
"<thead>\n",
"<tr>\n",
"<th class=\"grt-left\">bushes</th>\n",
"<th class=\"grt-center grt-vrule-index\" colspan=\"1\">Acquired Bars Renter date</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">Bristle Engagement Backwater datetime</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">Heighten Boning Unlucky float</th>\n",
"</tr>\n",
"</thead>\n",
"<tbody>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">2008-07-10</td>\n",
"<td class=\"grt-c-1 grt-center grt-vrule-index\">2012-05-16</td>\n",
"<td class=\"grt-c-2 grt-center grt-vrule-0\">2010-10-14</td>\n",
"<td class=\"grt-c-3 grt-right grt-vrule-0\"> 517.008E</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2009-03-25</td>\n",
"<td class=\"grt-c-1 grt-center grt-hrule-0 grt-vrule-index\">2026-04-05</td>\n",
"<td class=\"grt-c-2 grt-center grt-hrule-0 grt-vrule-0\">2020-03-31</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\"> 0.000y</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2009-08-09</td>\n",
"<td class=\"grt-c-1 grt-center grt-hrule-0 grt-vrule-index\">2017-04-25</td>\n",
"<td class=\"grt-c-2 grt-center grt-hrule-0 grt-vrule-0\">2016-04-01</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">-29.269u</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2010-02-01</td>\n",
"<td class=\"grt-c-1 grt-center grt-hrule-0 grt-vrule-index\">2026-04-05</td>\n",
"<td class=\"grt-c-2 grt-center grt-hrule-0 grt-vrule-0\">2013-07-14</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\"> 0.000y</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2010-12-31</td>\n",
"<td class=\"grt-c-1 grt-center grt-hrule-0 grt-vrule-index\">2024-01-03</td>\n",
"<td class=\"grt-c-2 grt-center grt-hrule-0 grt-vrule-0\">2016-11-20</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">-30.741u</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2014-06-20</td>\n",
"<td class=\"grt-c-1 grt-center grt-hrule-0 grt-vrule-index\">2032-11-16</td>\n",
"<td class=\"grt-c-2 grt-center grt-hrule-0 grt-vrule-0\">2016-04-01</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\"> 1.250m</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2015-02-13</td>\n",
"<td class=\"grt-c-1 grt-center grt-hrule-0 grt-vrule-index\">2026-04-05</td>\n",
"<td class=\"grt-c-2 grt-center grt-hrule-0 grt-vrule-0\">2016-11-20</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\"> 335.357f</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2018-03-19</td>\n",
"<td class=\"grt-c-1 grt-center grt-hrule-0 grt-vrule-index\">2012-05-16</td>\n",
"<td class=\"grt-c-2 grt-center grt-hrule-0 grt-vrule-0\">2029-02-11</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">-102.890Z</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2018-12-07</td>\n",
"<td class=\"grt-c-1 grt-center grt-hrule-0 grt-vrule-index\">2024-07-26</td>\n",
"<td class=\"grt-c-2 grt-center grt-hrule-0 grt-vrule-0\">2019-01-14</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">-0.022y</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2019-10-29</td>\n",
"<td class=\"grt-c-1 grt-center grt-hrule-0 grt-vrule-index\">2007-07-13</td>\n",
"<td class=\"grt-c-2 grt-center grt-hrule-0 grt-vrule-0\">2013-07-14</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\"> 1.216k</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2021-08-21</td>\n",
"<td class=\"grt-c-1 grt-center grt-hrule-0 grt-vrule-index\">2024-10-12</td>\n",
"<td class=\"grt-c-2 grt-center grt-hrule-0 grt-vrule-0\">2025-07-11</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\"> 43.521a</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2021-11-12</td>\n",
"<td class=\"grt-c-1 grt-center grt-hrule-0 grt-vrule-index\">2007-07-13</td>\n",
"<td class=\"grt-c-2 grt-center grt-hrule-0 grt-vrule-0\">2031-10-24</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">-0.000y</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2025-01-01</td>\n",
"<td class=\"grt-c-1 grt-center grt-hrule-0 grt-vrule-index\">2009-04-13</td>\n",
"<td class=\"grt-c-2 grt-center grt-hrule-0 grt-vrule-0\">2016-04-01</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">-631123020.816Y</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2026-01-10</td>\n",
"<td class=\"grt-c-1 grt-center grt-hrule-0 grt-vrule-index\">2017-04-25</td>\n",
"<td class=\"grt-c-2 grt-center grt-hrule-0 grt-vrule-0\">2029-02-11</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\"> 0.000y</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2026-12-27</td>\n",
"<td class=\"grt-c-1 grt-center grt-hrule-0 grt-vrule-index\">2017-04-25</td>\n",
"<td class=\"grt-c-2 grt-center grt-hrule-0 grt-vrule-0\">2016-11-20</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">-0.000y</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2027-09-20</td>\n",
"<td class=\"grt-c-1 grt-center grt-hrule-0 grt-vrule-index\">2026-04-05</td>\n",
"<td class=\"grt-c-2 grt-center grt-hrule-0 grt-vrule-0\">2016-04-01</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\"> 3321909909.577Y</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2028-12-23</td>\n",
"<td class=\"grt-c-1 grt-center grt-hrule-0 grt-vrule-index\">2014-04-09</td>\n",
"<td class=\"grt-c-2 grt-center grt-hrule-0 grt-vrule-0\">2032-03-29</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">-25.876Z</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2029-11-14</td>\n",
"<td class=\"grt-c-1 grt-center grt-hrule-0 grt-vrule-index\">2018-03-16</td>\n",
"<td class=\"grt-c-2 grt-center grt-hrule-0 grt-vrule-0\">2029-02-11</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">-69.776E</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2031-04-20</td>\n",
"<td class=\"grt-c-1 grt-center grt-hrule-0 grt-vrule-index\">2007-07-13</td>\n",
"<td class=\"grt-c-2 grt-center grt-hrule-0 grt-vrule-0\">2016-04-01</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\">-2.204k</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">2031-08-19</td>\n",
"<td class=\"grt-c-1 grt-center grt-hrule-0 grt-vrule-index\">2032-11-16</td>\n",
"<td class=\"grt-c-2 grt-center grt-hrule-0 grt-vrule-0\">2019-01-14</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-0\"> 32915.427Y</td>\n",
"</tr>\n",
"</tbody>\n",
"</table></div>"
],
"text/latex": [
"\n",
"\\begin{tikzpicture}[\n",
" auto,\n",
" transform shape,\n",
" nosep/.style={inner sep=0},\n",
" table/.style={\n",
" matrix of nodes,\n",
" row sep=0.125em,\n",
" column sep=0.375em,\n",
" nodes in empty cells,\n",
" nodes={rectangle, scale=0.635, text badly ragged },\n",
"\trow 1/.style={nodes={text=black, anchor=north, inner ysep=0, text height=0, text depth=0}},\n",
"\trow 2/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\\bfseries}},\n",
"\tcolumn 1/.style={nodes={align=left }, text height=0.9em, text depth=0.2em, inner xsep=0.375em, inner ysep=0, text width=6.00em},\n",
"\tcolumn 2/.style={nodes={align=center}, nosep, text width=9.45em},\n",
"\tcolumn 3/.style={nodes={align=center}, nosep, text width=9.45em},\n",
"\tcolumn 4/.style={nodes={align=right }, nosep, text width=15.12em},\n",
"\tcolumn 5/.style={text height=0.9em, text depth=0.2em, nosep, text width=0em}\t}]\n",
"\\matrix (TRP5OQHAK77OA) [table, ampersand replacement=\\&]{\n",
" \\& \\& \\& \\& \\\\\n",
" bushes\\grtspacer \\& Acquired Bars Renter date\\grtspacer \\& Bristle Engagement Backwater datetime\\grtspacer \\& Heighten Boning Unlucky float\\grtspacer \\& \\\\\n",
" 2008-07-10 \\& 2012-05-16 \\& 2010-10-14 \\& 517.008E \\& \\\\\n",
" 2009-03-25 \\& 2026-04-05 \\& 2020-03-31 \\& 0.000y \\& \\\\\n",
" 2009-08-09 \\& 2017-04-25 \\& 2016-04-01 \\& -29.269u \\& \\\\\n",
" 2010-02-01 \\& 2026-04-05 \\& 2013-07-14 \\& 0.000y \\& \\\\\n",
" 2010-12-31 \\& 2024-01-03 \\& 2016-11-20 \\& -30.741u \\& \\\\\n",
" 2014-06-20 \\& 2032-11-16 \\& 2016-04-01 \\& 1.250m \\& \\\\\n",
" 2015-02-13 \\& 2026-04-05 \\& 2016-11-20 \\& 335.357f \\& \\\\\n",
" 2018-03-19 \\& 2012-05-16 \\& 2029-02-11 \\& -102.890Z \\& \\\\\n",
" 2018-12-07 \\& 2024-07-26 \\& 2019-01-14 \\& -0.022y \\& \\\\\n",
" 2019-10-29 \\& 2007-07-13 \\& 2013-07-14 \\& 1.216k \\& \\\\\n",
" 2021-08-21 \\& 2024-10-12 \\& 2025-07-11 \\& 43.521a \\& \\\\\n",
" 2021-11-12 \\& 2007-07-13 \\& 2031-10-24 \\& -0.000y \\& \\\\\n",
" 2025-01-01 \\& 2009-04-13 \\& 2016-04-01 \\& -631123020.816Y \\& \\\\\n",
" 2026-01-10 \\& 2017-04-25 \\& 2029-02-11 \\& 0.000y \\& \\\\\n",
" 2026-12-27 \\& 2017-04-25 \\& 2016-11-20 \\& -0.000y \\& \\\\\n",
" 2027-09-20 \\& 2026-04-05 \\& 2016-04-01 \\& 3321909909.577Y \\& \\\\\n",
" 2028-12-23 \\& 2014-04-09 \\& 2032-03-29 \\& -25.876Z \\& \\\\\n",
" 2029-11-14 \\& 2018-03-16 \\& 2029-02-11 \\& -69.776E \\& \\\\\n",
" 2031-04-20 \\& 2007-07-13 \\& 2016-04-01 \\& -2.204k \\& \\\\\n",
" 2031-08-19 \\& 2032-11-16 \\& 2019-01-14 \\& 32915.427Y \\& \\\\\n",
"};\n",
"\n",
"\\path[draw, thick] (TRP5OQHAK77OA-1-1.south west) -- (TRP5OQHAK77OA-1-5.south east);\n",
"\\path[draw, semithick] ([yshift=-0.0625em]TRP5OQHAK77OA-2-1.south west) -- ([yshift=-0.0625em]TRP5OQHAK77OA-2-5.south east);\n",
"\\path[draw, thick] ([yshift=-0.3125em]TRP5OQHAK77OA-22-1.base west) -- ([yshift=-0.3125em]TRP5OQHAK77OA-22-5.base east);\n",
"\\path[draw, very thin] ([xshift=-0.1875em]TRP5OQHAK77OA-1-2.south west) -- ([yshift=-0.3125em, xshift=-0.1875em]TRP5OQHAK77OA-22-2.base west);\n",
"\n",
"\n",
"\n",
"\\end{tikzpicture}\n"
],
"text/plain": [
"GreaterTable(df_id=TRP5OQHAK77OA)"
]
},
"execution_count": 74,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"#| echo: true\n",
"#| label: tbl-greater-tables-test-1\n",
"#| tbl-cap: GT output for test table timeseries\n",
"hrw = (0, 0, 0)\n",
"sGT(ans['timeseries'], \"Timeseries\", ratio_cols='z', aligners={'w': 'l'},\n",
" hrule_widths=hrw)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Comments go here. \n",
"\n",
"\n",
"\n",
"\n",
"## Test Table: multiindex"
]
},
{
"cell_type": "code",
"execution_count": 75,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div class=\"greater-table\">\n",
"<style>\n",
" #TUYH5E6KQ5P65 {\n",
" border-collapse: collapse;\n",
" font-family: \"Roboto\", \"Open Sans Condensed\", \"Arial\", 'Segoe UI', sans-serif;\n",
" font-size: 0.9em;\n",
" width: auto;\n",
" \n",
" margin: 10px auto; \n",
" border: none;\n",
" overflow: auto;\n",
" margin-left: auto;\n",
" margin-right: auto;\n",
" }\n",
" \n",
" #TUYH5E6KQ5P65 caption {\n",
" padding: 8px 10px 4px 10px;\n",
" font-size: 0.99em;\n",
" text-align: center;\n",
" font-weight: normal;\n",
" caption-side: top;\n",
" }\n",
" #TUYH5E6KQ5P65 thead {\n",
" \n",
" border-top: 2px solid #000;\n",
" border-bottom: 2px solid #000;\n",
" font-size: 0.99em;\n",
" }\n",
" #TUYH5E6KQ5P65 tbody {\n",
" \n",
" border-bottom: 2px solid #000;\n",
" }\n",
" #TUYH5E6KQ5P65 th {\n",
" vertical-align: bottom;\n",
" padding: 8px 10px 8px 10px;\n",
" }\n",
" #TUYH5E6KQ5P65 td {\n",
" \n",
" padding: 4px 10px 4px 10px;\n",
" vertical-align: top;\n",
" }\n",
" \n",
" #TUYH5E6KQ5P65 .grt-hrule-0 {\n",
" border-top: 1.5px solid #000;\n",
" }\n",
" #TUYH5E6KQ5P65 .grt-hrule-1 {\n",
" border-top: 1.0px solid #000;\n",
" }\n",
" #TUYH5E6KQ5P65 .grt-hrule-2 {\n",
" border-top: 0.5px solid #000;\n",
" }\n",
" \n",
" #TUYH5E6KQ5P65 .grt-bhrule-0 {\n",
" border-bottom: 0px solid #000;\n",
" }\n",
" #TUYH5E6KQ5P65 .grt-bhrule-1 {\n",
" border-bottom: 0px solid #000;\n",
" }\n",
" #TUYH5E6KQ5P65 .grt-vrule-index {\n",
" border-left: 1px solid #000;\n",
" }\n",
" #TUYH5E6KQ5P65 .grt-vrule-0 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #TUYH5E6KQ5P65 .grt-vrule-1 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #TUYH5E6KQ5P65 .grt-vrule-2 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #TUYH5E6KQ5P65 .grt-left {\n",
" text-align: left;\n",
" }\n",
" #TUYH5E6KQ5P65 .grt-center {\n",
" text-align: center;\n",
" }\n",
" #TUYH5E6KQ5P65 .grt-right {\n",
" text-align: right;\n",
" font-variant-numeric: tabular-nums;\n",
" }\n",
" #TUYH5E6KQ5P65 .grt-head {\n",
" font-family: \"Times New Roman\", 'Courier New';\n",
" font-size: 0.99em;\n",
" }\n",
" #TUYH5E6KQ5P65 .grt-bold {\n",
" font-weight: bold;\n",
" }\n",
"\n",
" #TUYH5E6KQ5P65 .grt-c-0 { width: 5.5em; }\n",
" #TUYH5E6KQ5P65 .grt-c-1 { width: 6.5em; }\n",
" #TUYH5E6KQ5P65 .grt-c-2 { width: 5.5em; }\n",
" #TUYH5E6KQ5P65 .grt-c-3 { width: 6.5em; }\n",
" #TUYH5E6KQ5P65 .grt-c-4 { width: 7.5em; }\n",
" #TUYH5E6KQ5P65 .grt-c-5 { width: 7.5em; }\n",
" #TUYH5E6KQ5P65 .grt-c-6 { width: 8.0em; }\n",
" #TUYH5E6KQ5P65 .grt-c-7 { width: 8.5em; }\n",
"</style>\n",
"<table id=\"TUYH5E6KQ5P65\">\n",
"<caption>Multiindex</caption>\n",
"<colgroup>\n",
"<col style=\"width: 2.75em;\"/>\n",
"<col style=\"width: 3.25em;\"/>\n",
"<col style=\"width: 2.75em;\"/>\n",
"<col style=\"width: 3.25em;\"/>\n",
"<col style=\"width: 3.75em;\"/>\n",
"<col style=\"width: 3.75em;\"/>\n",
"<col style=\"width: 4.0em;\"/>\n",
"<col style=\"width: 4.25em;\"/>\n",
"</colgroup>\n",
"<thead>\n",
"<tr>\n",
"<th class=\"grt-left\">phantom</th>\n",
"<th class=\"grt-left\">animal</th>\n",
"<th class=\"grt-left\">direction</th>\n",
"<th class=\"grt-center grt-vrule-index\" colspan=\"1\">Bitty Youthful Express float</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">Immunity Counts Hose date</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">Pennies Reveals Afresh date</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">Spotty Paralleling Discreet date</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">Stanley Quarrel Alligator str</th>\n",
"</tr>\n",
"</thead>\n",
"<tbody>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">18,496</td>\n",
"<td class=\"grt-c-1 grt-left\">assent</td>\n",
"<td class=\"grt-c-2 grt-left\">43,086</td>\n",
"<td class=\"grt-c-3 grt-right grt-vrule-index\">0.00003</td>\n",
"<td class=\"grt-c-4 grt-center grt-vrule-0\">2010-04-13</td>\n",
"<td class=\"grt-c-5 grt-center grt-vrule-0\">2033-01-25</td>\n",
"<td class=\"grt-c-6 grt-center grt-vrule-0\">2033-01-12</td>\n",
"<td class=\"grt-c-7 grt-left grt-vrule-0\">areas</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\"></td>\n",
"<td class=\"grt-c-1 grt-left\"></td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-2\">85,780</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-2 grt-vrule-index\">0.36067</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-2 grt-vrule-0\">2027-07-10</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-2 grt-vrule-0\">2032-01-23</td>\n",
"<td class=\"grt-c-6 grt-center grt-hrule-2 grt-vrule-0\">2025-10-22</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-2 grt-vrule-0\">mantra</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\"></td>\n",
"<td class=\"grt-c-1 grt-left grt-hrule-1\">crusader</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-1\">63,535</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-1 grt-vrule-index\">0.00000</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-1 grt-vrule-0\">2027-07-10</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-1 grt-vrule-0\">2029-09-04</td>\n",
"<td class=\"grt-c-6 grt-center grt-hrule-1 grt-vrule-0\">2008-11-09</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-1 grt-vrule-0\">refers</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\"></td>\n",
"<td class=\"grt-c-1 grt-left\"></td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-2\">87,826</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-2 grt-vrule-index\">0.00003</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-2 grt-vrule-0\">2029-08-31</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-2 grt-vrule-0\">2021-11-14</td>\n",
"<td class=\"grt-c-6 grt-center grt-hrule-2 grt-vrule-0\">2010-09-03</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-2 grt-vrule-0\">ministerial</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\"></td>\n",
"<td class=\"grt-c-1 grt-left grt-hrule-1\">magnetic</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-1\">10,111</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-1 grt-vrule-index\">0.00462</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-1 grt-vrule-0\">2022-12-07</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-1 grt-vrule-0\">2021-06-14</td>\n",
"<td class=\"grt-c-6 grt-center grt-hrule-1 grt-vrule-0\">2023-01-22</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-1 grt-vrule-0\">woods</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\"></td>\n",
"<td class=\"grt-c-1 grt-left\"></td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-2\">14,350</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-2 grt-vrule-index\">0.00000</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-2 grt-vrule-0\">2010-04-13</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-2 grt-vrule-0\">2022-03-16</td>\n",
"<td class=\"grt-c-6 grt-center grt-hrule-2 grt-vrule-0\">2023-01-22</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-2 grt-vrule-0\">codification</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\"></td>\n",
"<td class=\"grt-c-1 grt-left\"></td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-2\">43,753</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-2 grt-vrule-index\">0.01100</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-2 grt-vrule-0\">2019-02-17</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-2 grt-vrule-0\">2029-09-04</td>\n",
"<td class=\"grt-c-6 grt-center grt-hrule-2 grt-vrule-0\">2009-05-18</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-2 grt-vrule-0\">object</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\"></td>\n",
"<td class=\"grt-c-1 grt-left\"></td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-2\">98,682</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-2 grt-vrule-index\">0.00000</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-2 grt-vrule-0\">2027-07-10</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-2 grt-vrule-0\">2033-01-25</td>\n",
"<td class=\"grt-c-6 grt-center grt-hrule-2 grt-vrule-0\">2009-02-12</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-2 grt-vrule-0\">dusty</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">51,439</td>\n",
"<td class=\"grt-c-1 grt-left grt-hrule-0\">assent</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0\">93,001</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-index\">0.00000</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-0\">2031-07-03</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-0 grt-vrule-0\">2021-11-14</td>\n",
"<td class=\"grt-c-6 grt-center grt-hrule-0 grt-vrule-0\">2020-10-04</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-0 grt-vrule-0\">lama</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\"></td>\n",
"<td class=\"grt-c-1 grt-left grt-hrule-1\">crusader</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-1\">49,688</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-1 grt-vrule-index\">0.00000</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-1 grt-vrule-0\">2022-12-07</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-1 grt-vrule-0\">2021-11-14</td>\n",
"<td class=\"grt-c-6 grt-center grt-hrule-1 grt-vrule-0\">2033-01-12</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-1 grt-vrule-0\">citizen</td>\n",
"</tr>\n",
"</tbody>\n",
"</table></div>"
],
"text/latex": [
"\n",
"\\begin{tikzpicture}[\n",
" auto,\n",
" transform shape,\n",
" nosep/.style={inner sep=0},\n",
" table/.style={\n",
" matrix of nodes,\n",
" row sep=0.125em,\n",
" column sep=0.375em,\n",
" nodes in empty cells,\n",
" nodes={rectangle, scale=0.635, text badly ragged },\n",
"\trow 1/.style={nodes={text=black, anchor=north, inner ysep=0, text height=0, text depth=0}},\n",
"\trow 2/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\\bfseries}},\n",
"\tcolumn 1/.style={nodes={align=left }, text height=0.9em, text depth=0.2em, inner xsep=0.375em, inner ysep=0, text width=3.60em},\n",
"\tcolumn 2/.style={nodes={align=left }, nosep, text width=4.80em},\n",
"\tcolumn 3/.style={nodes={align=left }, nosep, text width=3.60em},\n",
"\tcolumn 4/.style={nodes={align=right }, nosep, text width=7.08em},\n",
"\tcolumn 5/.style={nodes={align=center}, nosep, text width=8.85em},\n",
"\tcolumn 6/.style={nodes={align=center}, nosep, text width=8.85em},\n",
"\tcolumn 7/.style={nodes={align=center}, nosep, text width=9.74em},\n",
"\tcolumn 8/.style={nodes={align=left }, nosep, text width=10.62em},\n",
"\tcolumn 9/.style={text height=0.9em, text depth=0.2em, nosep, text width=0em}\t}]\n",
"\\matrix (TUYH5E6KQ5P65) [table, ampersand replacement=\\&]{\n",
" \\& \\& \\& \\& \\& \\& \\& \\& \\\\\n",
" phantom\\grtspacer \\& animal\\grtspacer \\& direction\\grtspacer \\& Bitty Youthful Express float\\grtspacer \\& Immunity Counts Hose date\\grtspacer \\& Pennies Reveals Afresh date\\grtspacer \\& Spotty Paralleling Discreet date\\grtspacer \\& Stanley Quarrel Alligator str\\grtspacer \\& \\\\\n",
" 18,496 \\& assent \\& 43,086 \\& 0.00003 \\& 2010-04-13 \\& 2033-01-25 \\& 2033-01-12 \\& areas \\& \\\\\n",
" \\& assent \\& 85,780 \\& 0.36067 \\& 2027-07-10 \\& 2032-01-23 \\& 2025-10-22 \\& mantra \\& \\\\\n",
" \\& crusader \\& 63,535 \\& 0.00000 \\& 2027-07-10 \\& 2029-09-04 \\& 2008-11-09 \\& refers \\& \\\\\n",
" \\& crusader \\& 87,826 \\& 0.00003 \\& 2029-08-31 \\& 2021-11-14 \\& 2010-09-03 \\& ministerial \\& \\\\\n",
" \\& magnetic \\& 10,111 \\& 0.00462 \\& 2022-12-07 \\& 2021-06-14 \\& 2023-01-22 \\& woods \\& \\\\\n",
" \\& magnetic \\& 14,350 \\& 0.00000 \\& 2010-04-13 \\& 2022-03-16 \\& 2023-01-22 \\& codification \\& \\\\\n",
" \\& magnetic \\& 43,753 \\& 0.01100 \\& 2019-02-17 \\& 2029-09-04 \\& 2009-05-18 \\& object \\& \\\\\n",
" \\& magnetic \\& 98,682 \\& 0.00000 \\& 2027-07-10 \\& 2033-01-25 \\& 2009-02-12 \\& dusty \\& \\\\\n",
" 51,439 \\& assent \\& 93,001 \\& 0.00000 \\& 2031-07-03 \\& 2021-11-14 \\& 2020-10-04 \\& lama \\& \\\\\n",
" \\& crusader \\& 49,688 \\& 0.00000 \\& 2022-12-07 \\& 2021-11-14 \\& 2033-01-12 \\& citizen \\& \\\\\n",
"};\n",
"\n",
"\\path[draw, thick] (TUYH5E6KQ5P65-1-1.south west) -- (TUYH5E6KQ5P65-1-9.south east);\n",
"\\path[draw, very thin] ([yshift=-0.0625em]TUYH5E6KQ5P65-10-1.south west) -- ([yshift=-0.0625em]TUYH5E6KQ5P65-10-9.south east);\n",
"\\path[draw, semithick] ([yshift=-0.0625em]TUYH5E6KQ5P65-2-1.south west) -- ([yshift=-0.0625em]TUYH5E6KQ5P65-2-9.south east);\n",
"\\path[draw, thick] ([yshift=-0.3125em]TUYH5E6KQ5P65-12-1.base west) -- ([yshift=-0.3125em]TUYH5E6KQ5P65-12-9.base east);\n",
"\\path[draw, very thin] ([xshift=-0.1875em]TUYH5E6KQ5P65-1-4.south west) -- ([yshift=-0.3125em, xshift=-0.1875em]TUYH5E6KQ5P65-12-4.base west);\n",
"\n",
"\n",
"\n",
"\\end{tikzpicture}\n"
],
"text/plain": [
"GreaterTable(df_id=TUYH5E6KQ5P65)"
]
},
"execution_count": 75,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"#| echo: true\n",
"#| label: tbl-greater-tables-test-2\n",
"#| tbl-cap: GT output for test table multiindex\n",
"hrw = (1.5, 1.0, 0.5)\n",
"sGT(ans['multiindex'], \"Multiindex\", ratio_cols='z', aligners={'w': 'l'},\n",
" hrule_widths=hrw)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Comments go here. \n",
"\n",
"\n",
"\n",
"\n",
"## Test Table: multicolumns"
]
},
{
"cell_type": "code",
"execution_count": 76,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div class=\"greater-table\">\n",
"<style>\n",
" #TDLCUKI46XK4B {\n",
" border-collapse: collapse;\n",
" font-family: \"Roboto\", \"Open Sans Condensed\", \"Arial\", 'Segoe UI', sans-serif;\n",
" font-size: 0.9em;\n",
" width: auto;\n",
" \n",
" margin: 10px auto; \n",
" border: none;\n",
" overflow: auto;\n",
" margin-left: auto;\n",
" margin-right: auto;\n",
" }\n",
" \n",
" #TDLCUKI46XK4B caption {\n",
" padding: 8px 10px 4px 10px;\n",
" font-size: 0.99em;\n",
" text-align: center;\n",
" font-weight: normal;\n",
" caption-side: top;\n",
" }\n",
" #TDLCUKI46XK4B thead {\n",
" \n",
" border-top: 1px solid #000;\n",
" border-bottom: 1px solid #000;\n",
" font-size: 0.99em;\n",
" }\n",
" #TDLCUKI46XK4B tbody {\n",
" \n",
" border-bottom: 1px solid #000;\n",
" }\n",
" #TDLCUKI46XK4B th {\n",
" vertical-align: bottom;\n",
" padding: 8px 10px 8px 10px;\n",
" }\n",
" #TDLCUKI46XK4B td {\n",
" \n",
" padding: 4px 10px 4px 10px;\n",
" vertical-align: top;\n",
" }\n",
" \n",
" #TDLCUKI46XK4B .grt-hrule-0 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" #TDLCUKI46XK4B .grt-hrule-1 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" #TDLCUKI46XK4B .grt-hrule-2 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" \n",
" #TDLCUKI46XK4B .grt-bhrule-0 {\n",
" border-bottom: 1.5px solid #000;\n",
" }\n",
" #TDLCUKI46XK4B .grt-bhrule-1 {\n",
" border-bottom: 1px solid #000;\n",
" }\n",
" #TDLCUKI46XK4B .grt-vrule-index {\n",
" border-left: 2px solid #000;\n",
" }\n",
" #TDLCUKI46XK4B .grt-vrule-0 {\n",
" border-left: 1.5px solid #000;\n",
" }\n",
" #TDLCUKI46XK4B .grt-vrule-1 {\n",
" border-left: 1px solid #000;\n",
" }\n",
" #TDLCUKI46XK4B .grt-vrule-2 {\n",
" border-left: 0.5px solid #000;\n",
" }\n",
" #TDLCUKI46XK4B .grt-left {\n",
" text-align: left;\n",
" }\n",
" #TDLCUKI46XK4B .grt-center {\n",
" text-align: center;\n",
" }\n",
" #TDLCUKI46XK4B .grt-right {\n",
" text-align: right;\n",
" font-variant-numeric: tabular-nums;\n",
" }\n",
" #TDLCUKI46XK4B .grt-head {\n",
" font-family: \"Times New Roman\", 'Courier New';\n",
" font-size: 0.99em;\n",
" }\n",
" #TDLCUKI46XK4B .grt-bold {\n",
" font-weight: bold;\n",
" }\n",
"\n",
" #TDLCUKI46XK4B .grt-c-0 { width: 8.0em; }\n",
" #TDLCUKI46XK4B .grt-c-1 { width: 6.0em; }\n",
" #TDLCUKI46XK4B .grt-c-2 { width: 9.0em; }\n",
" #TDLCUKI46XK4B .grt-c-3 { width: 7.0em; }\n",
" #TDLCUKI46XK4B .grt-c-4 { width: 7.5em; }\n",
" #TDLCUKI46XK4B .grt-c-5 { width: 6.5em; }\n",
"</style>\n",
"<table id=\"TDLCUKI46XK4B\">\n",
"<caption>Multicolumns</caption>\n",
"<colgroup>\n",
"<col style=\"width: 4.0em;\"/>\n",
"<col style=\"width: 3.0em;\"/>\n",
"<col style=\"width: 4.5em;\"/>\n",
"<col style=\"width: 3.5em;\"/>\n",
"<col style=\"width: 3.75em;\"/>\n",
"<col style=\"width: 3.25em;\"/>\n",
"</colgroup>\n",
"<thead>\n",
"<tr>\n",
"<th class=\"grt-left\"></th>\n",
"<th class=\"grt-center grt-bhrule-0 grt-vrule-index\" colspan=\"4\">psychic</th>\n",
"<th class=\"grt-center grt-bhrule-0 grt-vrule-0\" colspan=\"1\">skirted</th>\n",
"</tr>\n",
"<tr>\n",
"<th class=\"grt-left\"></th>\n",
"<th class=\"grt-center grt-bhrule-1 grt-vrule-index\" colspan=\"2\">press</th>\n",
"<th class=\"grt-center grt-bhrule-1 grt-vrule-1\" colspan=\"2\">ventured</th>\n",
"<th class=\"grt-center grt-bhrule-1 grt-vrule-0\" colspan=\"1\">ventured</th>\n",
"</tr>\n",
"<tr>\n",
"<th class=\"grt-left\">stimulation</th>\n",
"<th class=\"grt-center grt-vrule-index\" colspan=\"1\">galling</th>\n",
"<th class=\"grt-center grt-vrule-2\" colspan=\"1\">unopened</th>\n",
"<th class=\"grt-center grt-vrule-1\" colspan=\"1\">pessimism</th>\n",
"<th class=\"grt-center grt-vrule-2\" colspan=\"1\">skin</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">geneva</th>\n",
"</tr>\n",
"</thead>\n",
"<tbody>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">5,309</td>\n",
"<td class=\"grt-c-1 grt-right grt-vrule-index\">0.00001</td>\n",
"<td class=\"grt-c-2 grt-left grt-vrule-2\">penalizing</td>\n",
"<td class=\"grt-c-3 grt-right grt-vrule-1\">2020</td>\n",
"<td class=\"grt-c-4 grt-center grt-vrule-2\">2030-02-11</td>\n",
"<td class=\"grt-c-5 grt-right grt-vrule-0\">0.20600</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">6,029</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">0.00000</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0 grt-vrule-2\">guise</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-1\">2009</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-2\">2022-03-18</td>\n",
"<td class=\"grt-c-5 grt-right grt-hrule-0 grt-vrule-0\">0.00003</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">8,065</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">3.27603</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0 grt-vrule-2\">pseudo</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-1\">2008</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-2\">2008-07-27</td>\n",
"<td class=\"grt-c-5 grt-right grt-hrule-0 grt-vrule-0\">5.65328</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">14,749</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">0.04182</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0 grt-vrule-2\">instituted</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-1\">2025</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-2\">2009-06-05</td>\n",
"<td class=\"grt-c-5 grt-right grt-hrule-0 grt-vrule-0\">0.00034</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">43,062</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">0.00000</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0 grt-vrule-2\">redeemable</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-1\">1995</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-2\">2029-05-29</td>\n",
"<td class=\"grt-c-5 grt-right grt-hrule-0 grt-vrule-0\">0.00000</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">61,872</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">0.19522</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0 grt-vrule-2\">seth</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-1\">2006</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-2\">2022-03-18</td>\n",
"<td class=\"grt-c-5 grt-right grt-hrule-0 grt-vrule-0\">0.00000</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">69,979</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">0.22767</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0 grt-vrule-2\">aimless</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-1\">2000</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-2\">2028-03-06</td>\n",
"<td class=\"grt-c-5 grt-right grt-hrule-0 grt-vrule-0\">0.00000</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">70,526</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">0.00226</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0 grt-vrule-2\">affirms</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-1\">1993</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-2\">2008-07-27</td>\n",
"<td class=\"grt-c-5 grt-right grt-hrule-0 grt-vrule-0\">0.00035</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">81,072</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">0.00000</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0 grt-vrule-2\">spain</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-1\">2022</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-2\">2028-03-06</td>\n",
"<td class=\"grt-c-5 grt-right grt-hrule-0 grt-vrule-0\">0.00000</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">89,060</td>\n",
"<td class=\"grt-c-1 grt-right grt-hrule-0 grt-vrule-index\">0.00001</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0 grt-vrule-2\">underemployed</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-1\">2011</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-2\">2008-07-27</td>\n",
"<td class=\"grt-c-5 grt-right grt-hrule-0 grt-vrule-0\">0.02550</td>\n",
"</tr>\n",
"</tbody>\n",
"</table></div>"
],
"text/latex": [
"\n",
"\\begin{tikzpicture}[\n",
" auto,\n",
" transform shape,\n",
" nosep/.style={inner sep=0},\n",
" table/.style={\n",
" matrix of nodes,\n",
" row sep=0.125em,\n",
" column sep=0.375em,\n",
" nodes in empty cells,\n",
" nodes={rectangle, scale=0.635, text badly ragged },\n",
"\trow 1/.style={nodes={text=black, anchor=north, inner ysep=0, text height=0, text depth=0}},\n",
"\trow 2/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\\bfseries}},\n",
"\trow 3/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\\bfseries}},\n",
"\trow 4/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\\bfseries}},\n",
"\tcolumn 1/.style={nodes={align=left }, text height=0.9em, text depth=0.2em, inner xsep=0.375em, inner ysep=0, text width=6.60em},\n",
"\tcolumn 2/.style={nodes={align=right }, nosep, text width=6.61em},\n",
"\tcolumn 3/.style={nodes={align=left }, nosep, text width=12.28em},\n",
"\tcolumn 4/.style={nodes={align=right }, nosep, text width=8.50em},\n",
"\tcolumn 5/.style={nodes={align=center}, nosep, text width=9.45em},\n",
"\tcolumn 6/.style={nodes={align=right }, nosep, text width=7.56em},\n",
"\tcolumn 7/.style={text height=0.9em, text depth=0.2em, nosep, text width=0em}\t}]\n",
"\\matrix (TDLCUKI46XK4B) [table, ampersand replacement=\\&]{\n",
" \\& \\& \\& \\& \\& \\& \\\\\n",
" \\grtspacer \\& psychic\\grtspacer \\& \\grtspacer \\& \\grtspacer \\& \\grtspacer \\& skirted\\grtspacer \\& \\\\\n",
" \\grtspacer \\& press\\grtspacer \\& \\grtspacer \\& ventured\\grtspacer \\& \\grtspacer \\& \\grtspacer \\& \\\\\n",
" stimulation\\grtspacer \\& galling\\grtspacer \\& unopened\\grtspacer \\& pessimism\\grtspacer \\& skin\\grtspacer \\& geneva\\grtspacer \\& \\\\\n",
" 5,309 \\& 0.00001 \\& penalizing \\& 2020 \\& 2030-02-11 \\& 0.20600 \\& \\\\\n",
" 6,029 \\& 0.00000 \\& guise \\& 2009 \\& 2022-03-18 \\& 0.00003 \\& \\\\\n",
" 8,065 \\& 3.27603 \\& pseudo \\& 2008 \\& 2008-07-27 \\& 5.65328 \\& \\\\\n",
" 14,749 \\& 0.04182 \\& instituted \\& 2025 \\& 2009-06-05 \\& 0.00034 \\& \\\\\n",
" 43,062 \\& 0.00000 \\& redeemable \\& 1995 \\& 2029-05-29 \\& 0.00000 \\& \\\\\n",
" 61,872 \\& 0.19522 \\& seth \\& 2006 \\& 2022-03-18 \\& 0.00000 \\& \\\\\n",
" 69,979 \\& 0.22767 \\& aimless \\& 2000 \\& 2028-03-06 \\& 0.00000 \\& \\\\\n",
" 70,526 \\& 0.00226 \\& affirms \\& 1993 \\& 2008-07-27 \\& 0.00035 \\& \\\\\n",
" 81,072 \\& 0.00000 \\& spain \\& 2022 \\& 2028-03-06 \\& 0.00000 \\& \\\\\n",
" 89,060 \\& 0.00001 \\& underemployed \\& 2011 \\& 2008-07-27 \\& 0.02550 \\& \\\\\n",
"};\n",
"\n",
"\\path[draw, thick] (TDLCUKI46XK4B-1-1.south west) -- (TDLCUKI46XK4B-1-7.south east);\n",
"\\path[draw, semithick] ([yshift=-0.0625em]TDLCUKI46XK4B-4-1.south west) -- ([yshift=-0.0625em]TDLCUKI46XK4B-4-7.south east);\n",
"\\path[draw, thick] ([yshift=-0.3125em]TDLCUKI46XK4B-14-1.base west) -- ([yshift=-0.3125em]TDLCUKI46XK4B-14-7.base east);\n",
"\\path[draw, very thin] ([xshift=-0.1875em, yshift=-0.0625em]TDLCUKI46XK4B-2-2.south west) -- ([yshift=-0.0625em]TDLCUKI46XK4B-2-7.south east);\n",
"\\path[draw, very thin] ([xshift=-0.1875em, yshift=-0.0625em]TDLCUKI46XK4B-3-2.south west) -- ([yshift=-0.0625em]TDLCUKI46XK4B-3-7.south east);\n",
"\\path[draw, very thin] ([xshift=-0.1875em]TDLCUKI46XK4B-1-2.south west) -- ([yshift=-0.3125em, xshift=-0.1875em]TDLCUKI46XK4B-14-2.base west);\n",
"\\path[draw, ultra thin] ([xshift=0.1875em, yshift=-0.0625em]TDLCUKI46XK4B-1-5.south east) -- ([yshift=-0.3125em, xshift=0.1875em]TDLCUKI46XK4B-14-5.base east);\n",
"\\path[draw, ultra thin] ([xshift=0.1875em, yshift=-0.0625em]TDLCUKI46XK4B-2-3.south east) -- ([yshift=-0.3125em, xshift=0.1875em]TDLCUKI46XK4B-14-3.base east);\n",
"\n",
"\n",
"\n",
"\\end{tikzpicture}\n"
],
"text/plain": [
"GreaterTable(df_id=TDLCUKI46XK4B)"
]
},
"execution_count": 76,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"#| echo: true\n",
"#| label: tbl-greater-tables-test-3\n",
"#| tbl-cap: GT output for test table multicolumns\n",
"hrw = (0, 0, 0)\n",
"sGT(ans['multicolumns'], \"Multicolumns\", ratio_cols='z', aligners={'w': 'l'},\n",
" hrule_widths=hrw)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Comments go here. \n",
"\n",
"\n",
"\n",
"\n",
"## Test Table: complex"
]
},
{
"cell_type": "code",
"execution_count": 77,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div class=\"greater-table\">\n",
"<style>\n",
" #TQT25W6I6LKNW {\n",
" border-collapse: collapse;\n",
" font-family: \"Roboto\", \"Open Sans Condensed\", \"Arial\", 'Segoe UI', sans-serif;\n",
" font-size: 0.9em;\n",
" width: auto;\n",
" \n",
" margin: 10px auto; \n",
" border: none;\n",
" overflow: auto;\n",
" margin-left: auto;\n",
" margin-right: auto;\n",
" }\n",
" \n",
" #TQT25W6I6LKNW caption {\n",
" padding: 4px 5px 2px 5px;\n",
" font-size: 0.99em;\n",
" text-align: center;\n",
" font-weight: normal;\n",
" caption-side: top;\n",
" }\n",
" #TQT25W6I6LKNW thead {\n",
" \n",
" border-top: 2px solid #000;\n",
" border-bottom: 2px solid #000;\n",
" font-size: 0.99em;\n",
" }\n",
" #TQT25W6I6LKNW tbody {\n",
" \n",
" border-bottom: 2px solid #000;\n",
" }\n",
" #TQT25W6I6LKNW th {\n",
" vertical-align: bottom;\n",
" padding: 4px 5px 4px 5px;\n",
" }\n",
" #TQT25W6I6LKNW td {\n",
" \n",
" padding: 2px 5px 2px 5px;\n",
" vertical-align: top;\n",
" }\n",
" \n",
" #TQT25W6I6LKNW .grt-hrule-0 {\n",
" border-top: 1.5px solid #000;\n",
" }\n",
" #TQT25W6I6LKNW .grt-hrule-1 {\n",
" border-top: 1.0px solid #000;\n",
" }\n",
" #TQT25W6I6LKNW .grt-hrule-2 {\n",
" border-top: 0.5px solid #000;\n",
" }\n",
" \n",
" #TQT25W6I6LKNW .grt-bhrule-0 {\n",
" border-bottom: 1.5px solid #000;\n",
" }\n",
" #TQT25W6I6LKNW .grt-bhrule-1 {\n",
" border-bottom: 1px solid #000;\n",
" }\n",
" #TQT25W6I6LKNW .grt-vrule-index {\n",
" border-left: 2px solid #000;\n",
" }\n",
" #TQT25W6I6LKNW .grt-vrule-0 {\n",
" border-left: 1.5px solid #000;\n",
" }\n",
" #TQT25W6I6LKNW .grt-vrule-1 {\n",
" border-left: 1px solid #000;\n",
" }\n",
" #TQT25W6I6LKNW .grt-vrule-2 {\n",
" border-left: 0.5px solid #000;\n",
" }\n",
" #TQT25W6I6LKNW .grt-left {\n",
" text-align: left;\n",
" }\n",
" #TQT25W6I6LKNW .grt-center {\n",
" text-align: center;\n",
" }\n",
" #TQT25W6I6LKNW .grt-right {\n",
" text-align: right;\n",
" font-variant-numeric: tabular-nums;\n",
" }\n",
" #TQT25W6I6LKNW .grt-head {\n",
" font-family: \"Times New Roman\", 'Courier New';\n",
" font-size: 0.99em;\n",
" }\n",
" #TQT25W6I6LKNW .grt-bold {\n",
" font-weight: bold;\n",
" }\n",
"\n",
" #TQT25W6I6LKNW .grt-c-0 { width: 4.75em; }\n",
" #TQT25W6I6LKNW .grt-c-1 { width: 4.75em; }\n",
" #TQT25W6I6LKNW .grt-c-2 { width: 5.25em; }\n",
" #TQT25W6I6LKNW .grt-c-3 { width: 5.25em; }\n",
" #TQT25W6I6LKNW .grt-c-4 { width: 6.25em; }\n",
" #TQT25W6I6LKNW .grt-c-5 { width: 6.25em; }\n",
" #TQT25W6I6LKNW .grt-c-6 { width: 5.75em; }\n",
" #TQT25W6I6LKNW .grt-c-7 { width: 7.75em; }\n",
" #TQT25W6I6LKNW .grt-c-8 { width: 6.75em; }\n",
" #TQT25W6I6LKNW .grt-c-9 { width: 6.25em; }\n",
" #TQT25W6I6LKNW .grt-c-10 { width: 6.25em; }\n",
" #TQT25W6I6LKNW .grt-c-11 { width: 6.25em; }\n",
" #TQT25W6I6LKNW .grt-c-12 { width: 6.25em; }\n",
"</style>\n",
"<table id=\"TQT25W6I6LKNW\">\n",
"<caption>Complex</caption>\n",
"<colgroup>\n",
"<col style=\"width: 2.375em;\"/>\n",
"<col style=\"width: 2.375em;\"/>\n",
"<col style=\"width: 2.625em;\"/>\n",
"<col style=\"width: 2.625em;\"/>\n",
"<col style=\"width: 3.125em;\"/>\n",
"<col style=\"width: 3.125em;\"/>\n",
"<col style=\"width: 2.875em;\"/>\n",
"<col style=\"width: 3.875em;\"/>\n",
"<col style=\"width: 3.375em;\"/>\n",
"<col style=\"width: 3.125em;\"/>\n",
"<col style=\"width: 3.125em;\"/>\n",
"<col style=\"width: 3.125em;\"/>\n",
"<col style=\"width: 3.125em;\"/>\n",
"</colgroup>\n",
"<thead>\n",
"<tr>\n",
"<th class=\"grt-left\"></th>\n",
"<th class=\"grt-left\"></th>\n",
"<th class=\"grt-left\"></th>\n",
"<th class=\"grt-center grt-bhrule-0 grt-vrule-index\" colspan=\"4\">casualty</th>\n",
"<th class=\"grt-center grt-bhrule-0 grt-vrule-0\" colspan=\"6\">copenhagen</th>\n",
"</tr>\n",
"<tr>\n",
"<th class=\"grt-left\"></th>\n",
"<th class=\"grt-left\"></th>\n",
"<th class=\"grt-left\"></th>\n",
"<th class=\"grt-center grt-bhrule-1 grt-vrule-index\" colspan=\"2\">negating</th>\n",
"<th class=\"grt-center grt-bhrule-1 grt-vrule-1\" colspan=\"2\">simmering</th>\n",
"<th class=\"grt-center grt-bhrule-1 grt-vrule-0\" colspan=\"2\">autistic</th>\n",
"<th class=\"grt-center grt-bhrule-1 grt-vrule-1\" colspan=\"2\">negating</th>\n",
"<th class=\"grt-center grt-bhrule-1 grt-vrule-1\" colspan=\"2\">simmering</th>\n",
"</tr>\n",
"<tr>\n",
"<th class=\"grt-left\">harding</th>\n",
"<th class=\"grt-left\">broken</th>\n",
"<th class=\"grt-left\">loosened</th>\n",
"<th class=\"grt-center grt-vrule-index\" colspan=\"1\">bachelor</th>\n",
"<th class=\"grt-center grt-vrule-2\" colspan=\"1\">drawings</th>\n",
"<th class=\"grt-center grt-vrule-1\" colspan=\"1\">arbitrated</th>\n",
"<th class=\"grt-center grt-vrule-2\" colspan=\"1\">cashing</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">angels</th>\n",
"<th class=\"grt-center grt-vrule-2\" colspan=\"1\">beneficiary</th>\n",
"<th class=\"grt-center grt-vrule-1\" colspan=\"1\">lending</th>\n",
"<th class=\"grt-center grt-vrule-2\" colspan=\"1\">studiously</th>\n",
"<th class=\"grt-center grt-vrule-1\" colspan=\"1\">paraplegic</th>\n",
"<th class=\"grt-center grt-vrule-2\" colspan=\"1\">unwieldy</th>\n",
"</tr>\n",
"</thead>\n",
"<tbody>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">49,146</td>\n",
"<td class=\"grt-c-1 grt-left\">brew</td>\n",
"<td class=\"grt-c-2 grt-left\">293</td>\n",
"<td class=\"grt-c-3 grt-right grt-vrule-index\">0.06295</td>\n",
"<td class=\"grt-c-4 grt-center grt-vrule-2\">2010-05-15</td>\n",
"<td class=\"grt-c-5 grt-center grt-vrule-1\">2031-06-12</td>\n",
"<td class=\"grt-c-6 grt-right grt-vrule-2\">1997</td>\n",
"<td class=\"grt-c-7 grt-left grt-vrule-0\">chore</td>\n",
"<td class=\"grt-c-8 grt-right grt-vrule-2\">937,952,742</td>\n",
"<td class=\"grt-c-9 grt-right grt-vrule-1\">0.00001</td>\n",
"<td class=\"grt-c-10 grt-center grt-vrule-2\">2031-08-06</td>\n",
"<td class=\"grt-c-11 grt-right grt-vrule-1\">0.00000</td>\n",
"<td class=\"grt-c-12 grt-right grt-vrule-2\">2014</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\"></td>\n",
"<td class=\"grt-c-1 grt-left\"></td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-2\">3,426</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-2 grt-vrule-index\">1.96586</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-2 grt-vrule-2\">2013-08-05</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-2 grt-vrule-1\">2029-08-20</td>\n",
"<td class=\"grt-c-6 grt-right grt-hrule-2 grt-vrule-2\">2008</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-2 grt-vrule-0\">race</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-2 grt-vrule-2\">804,609,967</td>\n",
"<td class=\"grt-c-9 grt-right grt-hrule-2 grt-vrule-1\">0.00000</td>\n",
"<td class=\"grt-c-10 grt-center grt-hrule-2 grt-vrule-2\">2013-10-19</td>\n",
"<td class=\"grt-c-11 grt-right grt-hrule-2 grt-vrule-1\">0.00138</td>\n",
"<td class=\"grt-c-12 grt-right grt-hrule-2 grt-vrule-2\">2015</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\"></td>\n",
"<td class=\"grt-c-1 grt-left\"></td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-2\">19,871</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-2 grt-vrule-index\">0.00000</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-2 grt-vrule-2\">2028-03-18</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-2 grt-vrule-1\">2011-02-16</td>\n",
"<td class=\"grt-c-6 grt-right grt-hrule-2 grt-vrule-2\">1993</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-2 grt-vrule-0\">economy</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-2 grt-vrule-2\">268,719,618</td>\n",
"<td class=\"grt-c-9 grt-right grt-hrule-2 grt-vrule-1\">0.00001</td>\n",
"<td class=\"grt-c-10 grt-center grt-hrule-2 grt-vrule-2\">2013-10-19</td>\n",
"<td class=\"grt-c-11 grt-right grt-hrule-2 grt-vrule-1\">0.00028</td>\n",
"<td class=\"grt-c-12 grt-right grt-hrule-2 grt-vrule-2\">1994</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\"></td>\n",
"<td class=\"grt-c-1 grt-left\"></td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-2\">77,970</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-2 grt-vrule-index\">0.00003</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-2 grt-vrule-2\">2028-03-18</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-2 grt-vrule-1\">2008-09-29</td>\n",
"<td class=\"grt-c-6 grt-right grt-hrule-2 grt-vrule-2\">2023</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-2 grt-vrule-0\">exes</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-2 grt-vrule-2\">4,595,844</td>\n",
"<td class=\"grt-c-9 grt-right grt-hrule-2 grt-vrule-1\">4.23108</td>\n",
"<td class=\"grt-c-10 grt-center grt-hrule-2 grt-vrule-2\">2013-10-19</td>\n",
"<td class=\"grt-c-11 grt-right grt-hrule-2 grt-vrule-1\">0.00854</td>\n",
"<td class=\"grt-c-12 grt-right grt-hrule-2 grt-vrule-2\">2015</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\"></td>\n",
"<td class=\"grt-c-1 grt-left grt-hrule-1\">fastest</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-1\">13,856</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-1 grt-vrule-index\">0.00000</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-1 grt-vrule-2\">2008-07-29</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-1 grt-vrule-1\">2007-03-02</td>\n",
"<td class=\"grt-c-6 grt-right grt-hrule-1 grt-vrule-2\">1995</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-1 grt-vrule-0\">intrinsically</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-1 grt-vrule-2\">655,235,802</td>\n",
"<td class=\"grt-c-9 grt-right grt-hrule-1 grt-vrule-1\">0.00009</td>\n",
"<td class=\"grt-c-10 grt-center grt-hrule-1 grt-vrule-2\">2033-05-09</td>\n",
"<td class=\"grt-c-11 grt-right grt-hrule-1 grt-vrule-1\">0.00002</td>\n",
"<td class=\"grt-c-12 grt-right grt-hrule-1 grt-vrule-2\">2004</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\"></td>\n",
"<td class=\"grt-c-1 grt-left\"></td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-2\">31,418</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-2 grt-vrule-index\">0.00001</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-2 grt-vrule-2\">2031-03-12</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-2 grt-vrule-1\">2028-10-19</td>\n",
"<td class=\"grt-c-6 grt-right grt-hrule-2 grt-vrule-2\">2019</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-2 grt-vrule-0\">cradles</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-2 grt-vrule-2\">657,320,759</td>\n",
"<td class=\"grt-c-9 grt-right grt-hrule-2 grt-vrule-1\">0.00000</td>\n",
"<td class=\"grt-c-10 grt-center grt-hrule-2 grt-vrule-2\">2018-11-17</td>\n",
"<td class=\"grt-c-11 grt-right grt-hrule-2 grt-vrule-1\">0.00000</td>\n",
"<td class=\"grt-c-12 grt-right grt-hrule-2 grt-vrule-2\">2001</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\"></td>\n",
"<td class=\"grt-c-1 grt-left\"></td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-2\">35,022</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-2 grt-vrule-index\">0.00000</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-2 grt-vrule-2\">2016-08-01</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-2 grt-vrule-1\">2010-04-21</td>\n",
"<td class=\"grt-c-6 grt-right grt-hrule-2 grt-vrule-2\">2027</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-2 grt-vrule-0\">massage</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-2 grt-vrule-2\">283,304,167</td>\n",
"<td class=\"grt-c-9 grt-right grt-hrule-2 grt-vrule-1\">0.00000</td>\n",
"<td class=\"grt-c-10 grt-center grt-hrule-2 grt-vrule-2\">2020-09-02</td>\n",
"<td class=\"grt-c-11 grt-right grt-hrule-2 grt-vrule-1\">0.00549</td>\n",
"<td class=\"grt-c-12 grt-right grt-hrule-2 grt-vrule-2\">2029</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\"></td>\n",
"<td class=\"grt-c-1 grt-left\"></td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-2\">80,108</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-2 grt-vrule-index\">0.17548</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-2 grt-vrule-2\">2031-03-12</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-2 grt-vrule-1\">2017-05-22</td>\n",
"<td class=\"grt-c-6 grt-right grt-hrule-2 grt-vrule-2\">2018</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-2 grt-vrule-0\">puzzled</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-2 grt-vrule-2\">925,082,070</td>\n",
"<td class=\"grt-c-9 grt-right grt-hrule-2 grt-vrule-1\">0.00000</td>\n",
"<td class=\"grt-c-10 grt-center grt-hrule-2 grt-vrule-2\">2013-10-19</td>\n",
"<td class=\"grt-c-11 grt-right grt-hrule-2 grt-vrule-1\">1.88962</td>\n",
"<td class=\"grt-c-12 grt-right grt-hrule-2 grt-vrule-2\">2021</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\"></td>\n",
"<td class=\"grt-c-1 grt-left grt-hrule-1\">fliers</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-1\">25,936</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-1 grt-vrule-index\">0.00015</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-1 grt-vrule-2\">2016-09-04</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-1 grt-vrule-1\">2017-12-13</td>\n",
"<td class=\"grt-c-6 grt-right grt-hrule-1 grt-vrule-2\">2029</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-1 grt-vrule-0\">computations</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-1 grt-vrule-2\">426,967,583</td>\n",
"<td class=\"grt-c-9 grt-right grt-hrule-1 grt-vrule-1\">0.00000</td>\n",
"<td class=\"grt-c-10 grt-center grt-hrule-1 grt-vrule-2\">2032-04-15</td>\n",
"<td class=\"grt-c-11 grt-right grt-hrule-1 grt-vrule-1\">0.00000</td>\n",
"<td class=\"grt-c-12 grt-right grt-hrule-1 grt-vrule-2\">1999</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\"></td>\n",
"<td class=\"grt-c-1 grt-left\"></td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-2\">64,433</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-2 grt-vrule-index\">0.00000</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-2 grt-vrule-2\">2016-06-18</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-2 grt-vrule-1\">2007-05-29</td>\n",
"<td class=\"grt-c-6 grt-right grt-hrule-2 grt-vrule-2\">2004</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-2 grt-vrule-0\">passages</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-2 grt-vrule-2\">612,446,471</td>\n",
"<td class=\"grt-c-9 grt-right grt-hrule-2 grt-vrule-1\">0.00017</td>\n",
"<td class=\"grt-c-10 grt-center grt-hrule-2 grt-vrule-2\">2032-04-15</td>\n",
"<td class=\"grt-c-11 grt-right grt-hrule-2 grt-vrule-1\">0.49959</td>\n",
"<td class=\"grt-c-12 grt-right grt-hrule-2 grt-vrule-2\">2009</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\"></td>\n",
"<td class=\"grt-c-1 grt-left\"></td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-2\">80,229</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-2 grt-vrule-index\">0.22559</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-2 grt-vrule-2\">2016-06-18</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-2 grt-vrule-1\">2017-07-05</td>\n",
"<td class=\"grt-c-6 grt-right grt-hrule-2 grt-vrule-2\">2018</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-2 grt-vrule-0\">repeat</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-2 grt-vrule-2\">112,776,801</td>\n",
"<td class=\"grt-c-9 grt-right grt-hrule-2 grt-vrule-1\">6.77617</td>\n",
"<td class=\"grt-c-10 grt-center grt-hrule-2 grt-vrule-2\">2024-07-09</td>\n",
"<td class=\"grt-c-11 grt-right grt-hrule-2 grt-vrule-1\">0.00000</td>\n",
"<td class=\"grt-c-12 grt-right grt-hrule-2 grt-vrule-2\">2022</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left grt-hrule-0\">86,639</td>\n",
"<td class=\"grt-c-1 grt-left grt-hrule-0\">brew</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-0\">13,964</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-0 grt-vrule-index\">0.00000</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-0 grt-vrule-2\">2016-08-01</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-0 grt-vrule-1\">2007-03-02</td>\n",
"<td class=\"grt-c-6 grt-right grt-hrule-0 grt-vrule-2\">2017</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-0 grt-vrule-0\">frills</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-0 grt-vrule-2\">821,529,783</td>\n",
"<td class=\"grt-c-9 grt-right grt-hrule-0 grt-vrule-1\">0.07168</td>\n",
"<td class=\"grt-c-10 grt-center grt-hrule-0 grt-vrule-2\">2014-09-27</td>\n",
"<td class=\"grt-c-11 grt-right grt-hrule-0 grt-vrule-1\">0.00000</td>\n",
"<td class=\"grt-c-12 grt-right grt-hrule-0 grt-vrule-2\">2025</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\"></td>\n",
"<td class=\"grt-c-1 grt-left\"></td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-2\">41,593</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-2 grt-vrule-index\">0.00003</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-2 grt-vrule-2\">2008-07-29</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-2 grt-vrule-1\">2007-05-29</td>\n",
"<td class=\"grt-c-6 grt-right grt-hrule-2 grt-vrule-2\">2016</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-2 grt-vrule-0\">endorsing</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-2 grt-vrule-2\">806,241,846</td>\n",
"<td class=\"grt-c-9 grt-right grt-hrule-2 grt-vrule-1\">0.02960</td>\n",
"<td class=\"grt-c-10 grt-center grt-hrule-2 grt-vrule-2\">2027-10-15</td>\n",
"<td class=\"grt-c-11 grt-right grt-hrule-2 grt-vrule-1\">0.00001</td>\n",
"<td class=\"grt-c-12 grt-right grt-hrule-2 grt-vrule-2\">2002</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\"></td>\n",
"<td class=\"grt-c-1 grt-left\"></td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-2\">43,850</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-2 grt-vrule-index\">0.00000</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-2 grt-vrule-2\">2007-01-12</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-2 grt-vrule-1\">2011-02-21</td>\n",
"<td class=\"grt-c-6 grt-right grt-hrule-2 grt-vrule-2\">1991</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-2 grt-vrule-0\">editorially</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-2 grt-vrule-2\">521,714,110</td>\n",
"<td class=\"grt-c-9 grt-right grt-hrule-2 grt-vrule-1\">0.22257</td>\n",
"<td class=\"grt-c-10 grt-center grt-hrule-2 grt-vrule-2\">2031-08-06</td>\n",
"<td class=\"grt-c-11 grt-right grt-hrule-2 grt-vrule-1\">0.00015</td>\n",
"<td class=\"grt-c-12 grt-right grt-hrule-2 grt-vrule-2\">2024</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\"></td>\n",
"<td class=\"grt-c-1 grt-left\"></td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-2\">82,547</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-2 grt-vrule-index\">0.00000</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-2 grt-vrule-2\">2016-08-01</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-2 grt-vrule-1\">2007-03-02</td>\n",
"<td class=\"grt-c-6 grt-right grt-hrule-2 grt-vrule-2\">2027</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-2 grt-vrule-0\">february</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-2 grt-vrule-2\">971,932,927</td>\n",
"<td class=\"grt-c-9 grt-right grt-hrule-2 grt-vrule-1\">1.45559</td>\n",
"<td class=\"grt-c-10 grt-center grt-hrule-2 grt-vrule-2\">2015-10-18</td>\n",
"<td class=\"grt-c-11 grt-right grt-hrule-2 grt-vrule-1\">0.00006</td>\n",
"<td class=\"grt-c-12 grt-right grt-hrule-2 grt-vrule-2\">1997</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\"></td>\n",
"<td class=\"grt-c-1 grt-left grt-hrule-1\">fastest</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-1\">49,901</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-1 grt-vrule-index\">0.00000</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-1 grt-vrule-2\">2027-11-12</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-1 grt-vrule-1\">2029-08-20</td>\n",
"<td class=\"grt-c-6 grt-right grt-hrule-1 grt-vrule-2\">2022</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-1 grt-vrule-0\">fancier</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-1 grt-vrule-2\">69,371,825</td>\n",
"<td class=\"grt-c-9 grt-right grt-hrule-1 grt-vrule-1\">1.23570</td>\n",
"<td class=\"grt-c-10 grt-center grt-hrule-1 grt-vrule-2\">2008-10-25</td>\n",
"<td class=\"grt-c-11 grt-right grt-hrule-1 grt-vrule-1\">0.00117</td>\n",
"<td class=\"grt-c-12 grt-right grt-hrule-1 grt-vrule-2\">2009</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\"></td>\n",
"<td class=\"grt-c-1 grt-left\"></td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-2\">59,151</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-2 grt-vrule-index\">0.00723</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-2 grt-vrule-2\">2018-04-24</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-2 grt-vrule-1\">2029-11-19</td>\n",
"<td class=\"grt-c-6 grt-right grt-hrule-2 grt-vrule-2\">2022</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-2 grt-vrule-0\">hope</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-2 grt-vrule-2\">675,380,408</td>\n",
"<td class=\"grt-c-9 grt-right grt-hrule-2 grt-vrule-1\">0.08046</td>\n",
"<td class=\"grt-c-10 grt-center grt-hrule-2 grt-vrule-2\">2015-10-18</td>\n",
"<td class=\"grt-c-11 grt-right grt-hrule-2 grt-vrule-1\">0.00001</td>\n",
"<td class=\"grt-c-12 grt-right grt-hrule-2 grt-vrule-2\">1992</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\"></td>\n",
"<td class=\"grt-c-1 grt-left\"></td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-2\">85,930</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-2 grt-vrule-index\">0.00000</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-2 grt-vrule-2\">2015-06-24</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-2 grt-vrule-1\">2025-05-14</td>\n",
"<td class=\"grt-c-6 grt-right grt-hrule-2 grt-vrule-2\">2020</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-2 grt-vrule-0\">decried</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-2 grt-vrule-2\">923,139,367</td>\n",
"<td class=\"grt-c-9 grt-right grt-hrule-2 grt-vrule-1\">0.00000</td>\n",
"<td class=\"grt-c-10 grt-center grt-hrule-2 grt-vrule-2\">2015-10-18</td>\n",
"<td class=\"grt-c-11 grt-right grt-hrule-2 grt-vrule-1\">0.00001</td>\n",
"<td class=\"grt-c-12 grt-right grt-hrule-2 grt-vrule-2\">2009</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\"></td>\n",
"<td class=\"grt-c-1 grt-left grt-hrule-1\">fliers</td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-1\">45,876</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-1 grt-vrule-index\">0.00830</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-1 grt-vrule-2\">2018-12-17</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-1 grt-vrule-1\">2025-05-14</td>\n",
"<td class=\"grt-c-6 grt-right grt-hrule-1 grt-vrule-2\">2019</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-1 grt-vrule-0\">proximate</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-1 grt-vrule-2\">721,860,881</td>\n",
"<td class=\"grt-c-9 grt-right grt-hrule-1 grt-vrule-1\">0.00006</td>\n",
"<td class=\"grt-c-10 grt-center grt-hrule-1 grt-vrule-2\">2012-02-23</td>\n",
"<td class=\"grt-c-11 grt-right grt-hrule-1 grt-vrule-1\">0.02256</td>\n",
"<td class=\"grt-c-12 grt-right grt-hrule-1 grt-vrule-2\">2028</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\"></td>\n",
"<td class=\"grt-c-1 grt-left\"></td>\n",
"<td class=\"grt-c-2 grt-left grt-hrule-2\">74,667</td>\n",
"<td class=\"grt-c-3 grt-right grt-hrule-2 grt-vrule-index\">0.00000</td>\n",
"<td class=\"grt-c-4 grt-center grt-hrule-2 grt-vrule-2\">2023-08-03</td>\n",
"<td class=\"grt-c-5 grt-center grt-hrule-2 grt-vrule-1\">2028-10-13</td>\n",
"<td class=\"grt-c-6 grt-right grt-hrule-2 grt-vrule-2\">2001</td>\n",
"<td class=\"grt-c-7 grt-left grt-hrule-2 grt-vrule-0\">cautionary</td>\n",
"<td class=\"grt-c-8 grt-right grt-hrule-2 grt-vrule-2\">44,092,454</td>\n",
"<td class=\"grt-c-9 grt-right grt-hrule-2 grt-vrule-1\">0.00001</td>\n",
"<td class=\"grt-c-10 grt-center grt-hrule-2 grt-vrule-2\">2008-10-25</td>\n",
"<td class=\"grt-c-11 grt-right grt-hrule-2 grt-vrule-1\">2.24084</td>\n",
"<td class=\"grt-c-12 grt-right grt-hrule-2 grt-vrule-2\">2027</td>\n",
"</tr>\n",
"</tbody>\n",
"</table></div>"
],
"text/latex": [
"\n",
"\\begin{tikzpicture}[\n",
" auto,\n",
" transform shape,\n",
" nosep/.style={inner sep=0},\n",
" table/.style={\n",
" matrix of nodes,\n",
" row sep=0.125em,\n",
" column sep=0.375em,\n",
" nodes in empty cells,\n",
" nodes={rectangle, scale=0.635, text badly ragged },\n",
"\trow 1/.style={nodes={text=black, anchor=north, inner ysep=0, text height=0, text depth=0}},\n",
"\trow 2/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\\bfseries}},\n",
"\trow 3/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\\bfseries}},\n",
"\trow 4/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\\bfseries}},\n",
"\tcolumn 1/.style={nodes={align=left }, text height=0.9em, text depth=0.2em, inner xsep=0.375em, inner ysep=0, text width=4.20em},\n",
"\tcolumn 2/.style={nodes={align=left }, nosep, text width=4.20em},\n",
"\tcolumn 3/.style={nodes={align=left }, nosep, text width=4.80em},\n",
"\tcolumn 4/.style={nodes={align=right }, nosep, text width=4.80em},\n",
"\tcolumn 5/.style={nodes={align=center}, nosep, text width=6.00em},\n",
"\tcolumn 6/.style={nodes={align=center}, nosep, text width=6.00em},\n",
"\tcolumn 7/.style={nodes={align=right }, nosep, text width=5.40em},\n",
"\tcolumn 8/.style={nodes={align=left }, nosep, text width=7.80em},\n",
"\tcolumn 9/.style={nodes={align=right }, nosep, text width=6.60em},\n",
"\tcolumn 10/.style={nodes={align=right }, nosep, text width=6.00em},\n",
"\tcolumn 11/.style={nodes={align=center}, nosep, text width=6.00em},\n",
"\tcolumn 12/.style={nodes={align=right }, nosep, text width=6.00em},\n",
"\tcolumn 13/.style={nodes={align=right }, nosep, text width=6.00em},\n",
"\tcolumn 14/.style={text height=0.9em, text depth=0.2em, nosep, text width=0em}\t}]\n",
"\\matrix (TQT25W6I6LKNW) [table, ampersand replacement=\\&]{\n",
" \\& \\& \\& \\& \\& \\& \\& \\& \\& \\& \\& \\& \\& \\\\\n",
" \\grtspacer \\& \\grtspacer \\& \\grtspacer \\& casualty\\grtspacer \\& \\grtspacer \\& \\grtspacer \\& \\grtspacer \\& copenhagen\\grtspacer \\& \\grtspacer \\& \\grtspacer \\& \\grtspacer \\& \\grtspacer \\& \\grtspacer \\& \\\\\n",
" \\grtspacer \\& \\grtspacer \\& \\grtspacer \\& negating\\grtspacer \\& \\grtspacer \\& simmering\\grtspacer \\& \\grtspacer \\& autistic\\grtspacer \\& \\grtspacer \\& negating\\grtspacer \\& \\grtspacer \\& simmering\\grtspacer \\& \\grtspacer \\& \\\\\n",
" harding\\grtspacer \\& broken\\grtspacer \\& loosened\\grtspacer \\& bachelor\\grtspacer \\& drawings\\grtspacer \\& arbitrated\\grtspacer \\& cashing\\grtspacer \\& angels\\grtspacer \\& beneficiary\\grtspacer \\& lending\\grtspacer \\& studiously\\grtspacer \\& paraplegic\\grtspacer \\& unwieldy\\grtspacer \\& \\\\\n",
" 49,146 \\& brew \\& 293 \\& 0.06295 \\& 2010-05-15 \\& 2031-06-12 \\& 1997 \\& chore \\& 937,952,742 \\& 0.00001 \\& 2031-08-06 \\& 0.00000 \\& 2014 \\& \\\\\n",
" \\& brew \\& 3,426 \\& 1.96586 \\& 2013-08-05 \\& 2029-08-20 \\& 2008 \\& race \\& 804,609,967 \\& 0.00000 \\& 2013-10-19 \\& 0.00138 \\& 2015 \\& \\\\\n",
" \\& brew \\& 19,871 \\& 0.00000 \\& 2028-03-18 \\& 2011-02-16 \\& 1993 \\& economy \\& 268,719,618 \\& 0.00001 \\& 2013-10-19 \\& 0.00028 \\& 1994 \\& \\\\\n",
" \\& brew \\& 77,970 \\& 0.00003 \\& 2028-03-18 \\& 2008-09-29 \\& 2023 \\& exes \\& 4,595,844 \\& 4.23108 \\& 2013-10-19 \\& 0.00854 \\& 2015 \\& \\\\\n",
" \\& fastest \\& 13,856 \\& 0.00000 \\& 2008-07-29 \\& 2007-03-02 \\& 1995 \\& intrinsically \\& 655,235,802 \\& 0.00009 \\& 2033-05-09 \\& 0.00002 \\& 2004 \\& \\\\\n",
" \\& fastest \\& 31,418 \\& 0.00001 \\& 2031-03-12 \\& 2028-10-19 \\& 2019 \\& cradles \\& 657,320,759 \\& 0.00000 \\& 2018-11-17 \\& 0.00000 \\& 2001 \\& \\\\\n",
" \\& fastest \\& 35,022 \\& 0.00000 \\& 2016-08-01 \\& 2010-04-21 \\& 2027 \\& massage \\& 283,304,167 \\& 0.00000 \\& 2020-09-02 \\& 0.00549 \\& 2029 \\& \\\\\n",
" \\& fastest \\& 80,108 \\& 0.17548 \\& 2031-03-12 \\& 2017-05-22 \\& 2018 \\& puzzled \\& 925,082,070 \\& 0.00000 \\& 2013-10-19 \\& 1.88962 \\& 2021 \\& \\\\\n",
" \\& fliers \\& 25,936 \\& 0.00015 \\& 2016-09-04 \\& 2017-12-13 \\& 2029 \\& computations \\& 426,967,583 \\& 0.00000 \\& 2032-04-15 \\& 0.00000 \\& 1999 \\& \\\\\n",
" \\& fliers \\& 64,433 \\& 0.00000 \\& 2016-06-18 \\& 2007-05-29 \\& 2004 \\& passages \\& 612,446,471 \\& 0.00017 \\& 2032-04-15 \\& 0.49959 \\& 2009 \\& \\\\\n",
" \\& fliers \\& 80,229 \\& 0.22559 \\& 2016-06-18 \\& 2017-07-05 \\& 2018 \\& repeat \\& 112,776,801 \\& 6.77617 \\& 2024-07-09 \\& 0.00000 \\& 2022 \\& \\\\\n",
" 86,639 \\& brew \\& 13,964 \\& 0.00000 \\& 2016-08-01 \\& 2007-03-02 \\& 2017 \\& frills \\& 821,529,783 \\& 0.07168 \\& 2014-09-27 \\& 0.00000 \\& 2025 \\& \\\\\n",
" \\& brew \\& 41,593 \\& 0.00003 \\& 2008-07-29 \\& 2007-05-29 \\& 2016 \\& endorsing \\& 806,241,846 \\& 0.02960 \\& 2027-10-15 \\& 0.00001 \\& 2002 \\& \\\\\n",
" \\& brew \\& 43,850 \\& 0.00000 \\& 2007-01-12 \\& 2011-02-21 \\& 1991 \\& editorially \\& 521,714,110 \\& 0.22257 \\& 2031-08-06 \\& 0.00015 \\& 2024 \\& \\\\\n",
" \\& brew \\& 82,547 \\& 0.00000 \\& 2016-08-01 \\& 2007-03-02 \\& 2027 \\& february \\& 971,932,927 \\& 1.45559 \\& 2015-10-18 \\& 0.00006 \\& 1997 \\& \\\\\n",
" \\& fastest \\& 49,901 \\& 0.00000 \\& 2027-11-12 \\& 2029-08-20 \\& 2022 \\& fancier \\& 69,371,825 \\& 1.23570 \\& 2008-10-25 \\& 0.00117 \\& 2009 \\& \\\\\n",
" \\& fastest \\& 59,151 \\& 0.00723 \\& 2018-04-24 \\& 2029-11-19 \\& 2022 \\& hope \\& 675,380,408 \\& 0.08046 \\& 2015-10-18 \\& 0.00001 \\& 1992 \\& \\\\\n",
" \\& fastest \\& 85,930 \\& 0.00000 \\& 2015-06-24 \\& 2025-05-14 \\& 2020 \\& decried \\& 923,139,367 \\& 0.00000 \\& 2015-10-18 \\& 0.00001 \\& 2009 \\& \\\\\n",
" \\& fliers \\& 45,876 \\& 0.00830 \\& 2018-12-17 \\& 2025-05-14 \\& 2019 \\& proximate \\& 721,860,881 \\& 0.00006 \\& 2012-02-23 \\& 0.02256 \\& 2028 \\& \\\\\n",
" \\& fliers \\& 74,667 \\& 0.00000 \\& 2023-08-03 \\& 2028-10-13 \\& 2001 \\& cautionary \\& 44,092,454 \\& 0.00001 \\& 2008-10-25 \\& 2.24084 \\& 2027 \\& \\\\\n",
"};\n",
"\n",
"\\path[draw, thick] (TQT25W6I6LKNW-1-1.south west) -- (TQT25W6I6LKNW-1-14.south east);\n",
"\\path[draw, thick] ([yshift=-0.3125em]TQT25W6I6LKNW-24-1.base west) -- ([yshift=-0.3125em]TQT25W6I6LKNW-24-14.base east);\n",
"\\path[draw, semithick] ([yshift=-0.0625em]TQT25W6I6LKNW-4-1.south west) -- ([yshift=-0.0625em]TQT25W6I6LKNW-4-14.south east);\n",
"\\path[draw, very thin] ([yshift=-0.0625em]TQT25W6I6LKNW-15-1.south west) -- ([yshift=-0.0625em]TQT25W6I6LKNW-15-14.south east);\n",
"\\path[draw, very thin] ([xshift=-0.1875em, yshift=-0.0625em]TQT25W6I6LKNW-2-4.south west) -- ([yshift=-0.0625em]TQT25W6I6LKNW-2-14.south east);\n",
"\\path[draw, very thin] ([xshift=-0.1875em, yshift=-0.0625em]TQT25W6I6LKNW-3-4.south west) -- ([yshift=-0.0625em]TQT25W6I6LKNW-3-14.south east);\n",
"\\path[draw, very thin] ([xshift=-0.1875em]TQT25W6I6LKNW-1-4.south west) -- ([yshift=-0.3125em, xshift=-0.1875em]TQT25W6I6LKNW-24-4.base west);\n",
"\\path[draw, ultra thin] ([xshift=0.1875em, yshift=-0.0625em]TQT25W6I6LKNW-1-7.south east) -- ([yshift=-0.3125em, xshift=0.1875em]TQT25W6I6LKNW-24-7.base east);\n",
"\\path[draw, ultra thin] ([xshift=0.1875em, yshift=-0.0625em]TQT25W6I6LKNW-2-5.south east) -- ([yshift=-0.3125em, xshift=0.1875em]TQT25W6I6LKNW-24-5.base east);\n",
"\\path[draw, ultra thin] ([xshift=0.1875em, yshift=-0.0625em]TQT25W6I6LKNW-2-9.south east) -- ([yshift=-0.3125em, xshift=0.1875em]TQT25W6I6LKNW-24-9.base east);\n",
"\\path[draw, ultra thin] ([xshift=0.1875em, yshift=-0.0625em]TQT25W6I6LKNW-2-11.south east) -- ([yshift=-0.3125em, xshift=0.1875em]TQT25W6I6LKNW-24-11.base east);\n",
"\n",
"\n",
"\n",
"\\end{tikzpicture}\n"
],
"text/plain": [
"GreaterTable(df_id=TQT25W6I6LKNW)"
]
},
"execution_count": 77,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"#| echo: true\n",
"#| label: tbl-greater-tables-test-4\n",
"#| tbl-cap: GT output for test table complex\n",
"hrw = (1.5, 1.0, 0.5)\n",
"sGT(ans['complex'], \"Complex\", ratio_cols='z', aligners={'w': 'l'},\n",
" hrule_widths=hrw)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Comments go here. \n",
"\n",
"# Other input formats\n",
"\n",
"## Markown\n",
"\n",
"| **Insured group or insurance product** | **Sat** | **RP** | **RF** |\n",
"|:------------------------------------------------------------|:-------:|:------:|:------:|\n",
"| Non-standard auto | x | | |\n",
"| General liability for judgment proof corporation | x | | |\n",
"| Term life insurance | | x | |\n",
"| Catastrophe Reinsurance, outside rating agency bounds | | x | |\n",
"| High limit property per risk reinsurance | | x | |\n",
"| Personal lines for affluent individuals | x | x | |\n",
"| Small commercial lines | x | x | |\n",
"| Catastrophe reinsurance, within rating agency bounds | x | x | |\n",
"| Large account captive reinsurance | | | x |\n",
"| Structured quota share, requiring a risk transfer test | x | | x |\n",
"| Working layer casualty excess of loss | | x | x |\n",
"| Surplus relief quota share on cat exposed line | x | x | x |\n",
"| Middle market commercial lines work comp or commercial auto | x | x | x |\n"
]
},
{
"cell_type": "code",
"execution_count": 78,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div class=\"greater-table\">\n",
"<style>\n",
" #TGZV3SACILXPU {\n",
" border-collapse: collapse;\n",
" font-family: \"Roboto\", \"Open Sans Condensed\", \"Arial\", 'Segoe UI', sans-serif;\n",
" font-size: 0.9em;\n",
" width: auto;\n",
" \n",
" margin: 10px auto; \n",
" border: none;\n",
" overflow: auto;\n",
" margin-left: auto;\n",
" margin-right: auto;\n",
" }\n",
" \n",
" #TGZV3SACILXPU caption {\n",
" padding: 4px 10px 2px 10px;\n",
" font-size: 1.1em;\n",
" text-align: center;\n",
" font-weight: normal;\n",
" caption-side: top;\n",
" }\n",
" #TGZV3SACILXPU thead {\n",
" \n",
" border-top: 1px solid #000;\n",
" border-bottom: 1px solid #000;\n",
" font-size: 1.0em;\n",
" }\n",
" #TGZV3SACILXPU tbody {\n",
" \n",
" border-bottom: 1px solid #000;\n",
" }\n",
" #TGZV3SACILXPU th {\n",
" vertical-align: bottom;\n",
" padding: 4px 10px 4px 10px;\n",
" }\n",
" #TGZV3SACILXPU td {\n",
" \n",
" padding: 2px 10px 2px 10px;\n",
" vertical-align: top;\n",
" }\n",
" \n",
" #TGZV3SACILXPU .grt-hrule-0 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" #TGZV3SACILXPU .grt-hrule-1 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" #TGZV3SACILXPU .grt-hrule-2 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" \n",
" #TGZV3SACILXPU .grt-bhrule-0 {\n",
" border-bottom: 0px solid #000;\n",
" }\n",
" #TGZV3SACILXPU .grt-bhrule-1 {\n",
" border-bottom: 0px solid #000;\n",
" }\n",
" #TGZV3SACILXPU .grt-vrule-index {\n",
" border-left: 1px solid #000;\n",
" }\n",
" #TGZV3SACILXPU .grt-vrule-0 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #TGZV3SACILXPU .grt-vrule-1 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #TGZV3SACILXPU .grt-vrule-2 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #TGZV3SACILXPU .grt-left {\n",
" text-align: left;\n",
" }\n",
" #TGZV3SACILXPU .grt-center {\n",
" text-align: center;\n",
" }\n",
" #TGZV3SACILXPU .grt-right {\n",
" text-align: right;\n",
" font-variant-numeric: tabular-nums;\n",
" }\n",
" #TGZV3SACILXPU .grt-head {\n",
" font-family: \"Times New Roman\", 'Courier New';\n",
" font-size: 1.0em;\n",
" }\n",
" #TGZV3SACILXPU .grt-bold {\n",
" font-weight: bold;\n",
" }\n",
"\n",
" #TGZV3SACILXPU .grt-c-0 { width: 32.0em; }\n",
" #TGZV3SACILXPU .grt-c-1 { width: 4.0em; }\n",
" #TGZV3SACILXPU .grt-c-2 { width: 3.5em; }\n",
" #TGZV3SACILXPU .grt-c-3 { width: 3.5em; }\n",
"</style>\n",
"<table id=\"TGZV3SACILXPU\">\n",
"<colgroup>\n",
"<col style=\"width: 16.0em;\"/>\n",
"<col style=\"width: 2.0em;\"/>\n",
"<col style=\"width: 1.75em;\"/>\n",
"<col style=\"width: 1.75em;\"/>\n",
"</colgroup>\n",
"<thead>\n",
"<tr>\n",
"<th class=\"grt-left\" colspan=\"1\">Insured group or insurance product</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">Sat</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">RP</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">RF</th>\n",
"</tr>\n",
"</thead>\n",
"<tbody>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">Non-standard auto</td>\n",
"<td class=\"grt-c-1 grt-center grt-vrule-0\">x</td>\n",
"<td class=\"grt-c-2 grt-center grt-vrule-0\"></td>\n",
"<td class=\"grt-c-3 grt-center grt-vrule-0\"></td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">General liability for judgment proof corporation</td>\n",
"<td class=\"grt-c-1 grt-center grt-vrule-0\">x</td>\n",
"<td class=\"grt-c-2 grt-center grt-vrule-0\"></td>\n",
"<td class=\"grt-c-3 grt-center grt-vrule-0\"></td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">Term life insurance</td>\n",
"<td class=\"grt-c-1 grt-center grt-vrule-0\"></td>\n",
"<td class=\"grt-c-2 grt-center grt-vrule-0\">x</td>\n",
"<td class=\"grt-c-3 grt-center grt-vrule-0\"></td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">Catastrophe Reinsurance, outside rating agency bounds</td>\n",
"<td class=\"grt-c-1 grt-center grt-vrule-0\"></td>\n",
"<td class=\"grt-c-2 grt-center grt-vrule-0\">x</td>\n",
"<td class=\"grt-c-3 grt-center grt-vrule-0\"></td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">High limit property per risk reinsurance</td>\n",
"<td class=\"grt-c-1 grt-center grt-vrule-0\"></td>\n",
"<td class=\"grt-c-2 grt-center grt-vrule-0\">x</td>\n",
"<td class=\"grt-c-3 grt-center grt-vrule-0\"></td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">Personal lines for affluent individuals</td>\n",
"<td class=\"grt-c-1 grt-center grt-vrule-0\">x</td>\n",
"<td class=\"grt-c-2 grt-center grt-vrule-0\">x</td>\n",
"<td class=\"grt-c-3 grt-center grt-vrule-0\"></td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">Small commercial lines</td>\n",
"<td class=\"grt-c-1 grt-center grt-vrule-0\">x</td>\n",
"<td class=\"grt-c-2 grt-center grt-vrule-0\">x</td>\n",
"<td class=\"grt-c-3 grt-center grt-vrule-0\"></td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">Catastrophe reinsurance, within rating agency bounds</td>\n",
"<td class=\"grt-c-1 grt-center grt-vrule-0\">x</td>\n",
"<td class=\"grt-c-2 grt-center grt-vrule-0\">x</td>\n",
"<td class=\"grt-c-3 grt-center grt-vrule-0\"></td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">Large account captive reinsurance</td>\n",
"<td class=\"grt-c-1 grt-center grt-vrule-0\"></td>\n",
"<td class=\"grt-c-2 grt-center grt-vrule-0\"></td>\n",
"<td class=\"grt-c-3 grt-center grt-vrule-0\">x</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">Structured quota share, requiring a risk transfer test</td>\n",
"<td class=\"grt-c-1 grt-center grt-vrule-0\">x</td>\n",
"<td class=\"grt-c-2 grt-center grt-vrule-0\"></td>\n",
"<td class=\"grt-c-3 grt-center grt-vrule-0\">x</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">Working layer casualty excess of loss</td>\n",
"<td class=\"grt-c-1 grt-center grt-vrule-0\"></td>\n",
"<td class=\"grt-c-2 grt-center grt-vrule-0\">x</td>\n",
"<td class=\"grt-c-3 grt-center grt-vrule-0\">x</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">Surplus relief quota share on cat exposed line</td>\n",
"<td class=\"grt-c-1 grt-center grt-vrule-0\">x</td>\n",
"<td class=\"grt-c-2 grt-center grt-vrule-0\">x</td>\n",
"<td class=\"grt-c-3 grt-center grt-vrule-0\">x</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">Middle market commercial lines work comp or commercial auto</td>\n",
"<td class=\"grt-c-1 grt-center grt-vrule-0\">x</td>\n",
"<td class=\"grt-c-2 grt-center grt-vrule-0\">x</td>\n",
"<td class=\"grt-c-3 grt-center grt-vrule-0\">x</td>\n",
"</tr>\n",
"</tbody>\n",
"</table></div>"
],
"text/latex": [
"\n",
"\\begin{tikzpicture}[\n",
" auto,\n",
" transform shape,\n",
" nosep/.style={inner sep=0},\n",
" table/.style={\n",
" matrix of nodes,\n",
" row sep=0.125em,\n",
" column sep=0.375em,\n",
" nodes in empty cells,\n",
" nodes={rectangle, scale=0.635, text badly ragged },\n",
"\trow 1/.style={nodes={text=black, anchor=north, inner ysep=0, text height=0, text depth=0}},\n",
"\trow 2/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\\bfseries}},\n",
"\tcolumn 1/.style={nodes={align=left }, text height=0.9em, text depth=0.2em, inner xsep=0.375em, inner ysep=0, text width=51.09em},\n",
"\tcolumn 2/.style={nodes={align=center}, nosep, text width=2.60em},\n",
"\tcolumn 3/.style={nodes={align=center}, nosep, text width=2.00em},\n",
"\tcolumn 4/.style={nodes={align=center}, nosep, text width=2.00em},\n",
"\tcolumn 5/.style={text height=0.9em, text depth=0.2em, nosep, text width=0em}\t}]\n",
"\\matrix (TGZV3SACILXPU) [table, ampersand replacement=\\&]{\n",
" \\& \\& \\& \\& \\\\\n",
" Insured group or insurance product\\grtspacer \\& Sat\\grtspacer \\& RP\\grtspacer \\& RF\\grtspacer \\& \\\\\n",
" Non-standard auto \\& x \\& \\& \\& \\\\\n",
" General liability for judgment proof corporation \\& x \\& \\& \\& \\\\\n",
" Term life insurance \\& \\& x \\& \\& \\\\\n",
" Catastrophe Reinsurance, outside rating agency bounds \\& \\& x \\& \\& \\\\\n",
" High limit property per risk reinsurance \\& \\& x \\& \\& \\\\\n",
" Personal lines for affluent individuals \\& x \\& x \\& \\& \\\\\n",
" Small commercial lines \\& x \\& x \\& \\& \\\\\n",
" Catastrophe reinsurance, within rating agency bounds \\& x \\& x \\& \\& \\\\\n",
" Large account captive reinsurance \\& \\& \\& x \\& \\\\\n",
" Structured quota share, requiring a risk transfer test \\& x \\& \\& x \\& \\\\\n",
" Working layer casualty excess of loss \\& \\& x \\& x \\& \\\\\n",
" Surplus relief quota share on cat exposed line \\& x \\& x \\& x \\& \\\\\n",
" Middle market commercial lines work comp or commercial auto \\& x \\& x \\& x \\& \\\\\n",
"};\n",
"\n",
"\\path[draw, thick] (TGZV3SACILXPU-1-1.south west) -- (TGZV3SACILXPU-1-5.south east);\n",
"\\path[draw, semithick] ([yshift=-0.0625em]TGZV3SACILXPU-2-1.south west) -- ([yshift=-0.0625em]TGZV3SACILXPU-2-5.south east);\n",
"\\path[draw, thick] ([yshift=-0.3125em]TGZV3SACILXPU-15-1.base west) -- ([yshift=-0.3125em]TGZV3SACILXPU-15-5.base east);\n",
"\\path[draw, very thin] ([xshift=-0.1875em]TGZV3SACILXPU-1-1.south west) -- ([yshift=-0.3125em, xshift=-0.1875em]TGZV3SACILXPU-15-1.base west);\n",
"\n",
"\n",
"\n",
"\\end{tikzpicture}\n"
],
"text/plain": [
"GreaterTable(df_id=TGZV3SACILXPU)"
]
},
"execution_count": 78,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"#| echo: true\n",
"#| label: tbl-greater-tables-test-5\n",
"#| tbl-cap: GT from markdown table input\n",
"txt = '''\n",
"\n",
"| **Insured group or insurance product** | **Sat** | **RP** | **RF** |\n",
"|:------------------------------------------------------------|:-------:|:------:|:------:|\n",
"| Non-standard auto | x | | |\n",
"| General liability for judgment proof corporation | x | | |\n",
"| Term life insurance | | x | |\n",
"| Catastrophe Reinsurance, outside rating agency bounds | | x | |\n",
"| High limit property per risk reinsurance | | x | |\n",
"| Personal lines for affluent individuals | x | x | |\n",
"| Small commercial lines | x | x | |\n",
"| Catastrophe reinsurance, within rating agency bounds | x | x | |\n",
"| Large account captive reinsurance | | | x |\n",
"| Structured quota share, requiring a risk transfer test | x | | x |\n",
"| Working layer casualty excess of loss | | x | x |\n",
"| Surplus relief quota share on cat exposed line | x | x | x |\n",
"| Middle market commercial lines work comp or commercial auto | x | x | x |\n",
"\n",
"\n",
"'''\n",
"\n",
"GT(txt)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## List of lists"
]
},
{
"cell_type": "code",
"execution_count": 83,
"metadata": {},
"outputs": [],
"source": [
"x = None\n",
"if x:\n",
" print(123)"
]
},
{
"cell_type": "code",
"execution_count": 79,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div class=\"greater-table\">\n",
"<style>\n",
" #THCUMQL66N455 {\n",
" border-collapse: collapse;\n",
" font-family: \"Roboto\", \"Open Sans Condensed\", \"Arial\", 'Segoe UI', sans-serif;\n",
" font-size: 0.9em;\n",
" width: auto;\n",
" \n",
" margin: 10px auto; \n",
" border: none;\n",
" overflow: auto;\n",
" margin-left: auto;\n",
" margin-right: auto;\n",
" }\n",
" \n",
" #THCUMQL66N455 caption {\n",
" padding: 4px 10px 2px 10px;\n",
" font-size: 1.1em;\n",
" text-align: center;\n",
" font-weight: normal;\n",
" caption-side: top;\n",
" }\n",
" #THCUMQL66N455 thead {\n",
" \n",
" border-top: 1px solid #000;\n",
" border-bottom: 1px solid #000;\n",
" font-size: 1.0em;\n",
" }\n",
" #THCUMQL66N455 tbody {\n",
" \n",
" border-bottom: 1px solid #000;\n",
" }\n",
" #THCUMQL66N455 th {\n",
" vertical-align: bottom;\n",
" padding: 4px 10px 4px 10px;\n",
" }\n",
" #THCUMQL66N455 td {\n",
" \n",
" padding: 2px 10px 2px 10px;\n",
" vertical-align: top;\n",
" }\n",
" \n",
" #THCUMQL66N455 .grt-hrule-0 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" #THCUMQL66N455 .grt-hrule-1 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" #THCUMQL66N455 .grt-hrule-2 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" \n",
" #THCUMQL66N455 .grt-bhrule-0 {\n",
" border-bottom: 0px solid #000;\n",
" }\n",
" #THCUMQL66N455 .grt-bhrule-1 {\n",
" border-bottom: 0px solid #000;\n",
" }\n",
" #THCUMQL66N455 .grt-vrule-index {\n",
" border-left: 1px solid #000;\n",
" }\n",
" #THCUMQL66N455 .grt-vrule-0 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #THCUMQL66N455 .grt-vrule-1 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #THCUMQL66N455 .grt-vrule-2 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #THCUMQL66N455 .grt-left {\n",
" text-align: left;\n",
" }\n",
" #THCUMQL66N455 .grt-center {\n",
" text-align: center;\n",
" }\n",
" #THCUMQL66N455 .grt-right {\n",
" text-align: right;\n",
" font-variant-numeric: tabular-nums;\n",
" }\n",
" #THCUMQL66N455 .grt-head {\n",
" font-family: \"Times New Roman\", 'Courier New';\n",
" font-size: 1.0em;\n",
" }\n",
" #THCUMQL66N455 .grt-bold {\n",
" font-weight: bold;\n",
" }\n",
"\n",
" #THCUMQL66N455 .grt-c-0 { width: 5.0em; }\n",
" #THCUMQL66N455 .grt-c-1 { width: 4.0em; }\n",
" #THCUMQL66N455 .grt-c-2 { width: 4.0em; }\n",
" #THCUMQL66N455 .grt-c-3 { width: 4.0em; }\n",
"</style>\n",
"<table id=\"THCUMQL66N455\">\n",
"<colgroup>\n",
"<col style=\"width: 2.5em;\"/>\n",
"<col style=\"width: 2.0em;\"/>\n",
"<col style=\"width: 2.0em;\"/>\n",
"<col style=\"width: 2.0em;\"/>\n",
"</colgroup>\n",
"<thead>\n",
"<tr>\n",
"<th class=\"grt-left\" colspan=\"1\">a</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">b</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">c</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">d</th>\n",
"</tr>\n",
"</thead>\n",
"<tbody>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">west</td>\n",
"<td class=\"grt-c-1 grt-left grt-vrule-0\">10</td>\n",
"<td class=\"grt-c-2 grt-left grt-vrule-0\">20</td>\n",
"<td class=\"grt-c-3 grt-left grt-vrule-0\">30</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">east</td>\n",
"<td class=\"grt-c-1 grt-left grt-vrule-0\">10</td>\n",
"<td class=\"grt-c-2 grt-left grt-vrule-0\">200</td>\n",
"<td class=\"grt-c-3 grt-left grt-vrule-0\">30</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">north</td>\n",
"<td class=\"grt-c-1 grt-left grt-vrule-0\">10</td>\n",
"<td class=\"grt-c-2 grt-left grt-vrule-0\">20</td>\n",
"<td class=\"grt-c-3 grt-left grt-vrule-0\">300</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">south</td>\n",
"<td class=\"grt-c-1 grt-left grt-vrule-0\">100</td>\n",
"<td class=\"grt-c-2 grt-left grt-vrule-0\">20</td>\n",
"<td class=\"grt-c-3 grt-left grt-vrule-0\">30</td>\n",
"</tr>\n",
"</tbody>\n",
"</table></div>"
],
"text/latex": [
"\n",
"\\begin{tikzpicture}[\n",
" auto,\n",
" transform shape,\n",
" nosep/.style={inner sep=0},\n",
" table/.style={\n",
" matrix of nodes,\n",
" row sep=0.125em,\n",
" column sep=0.375em,\n",
" nodes in empty cells,\n",
" nodes={rectangle, scale=0.635, text badly ragged },\n",
"\trow 1/.style={nodes={text=black, anchor=north, inner ysep=0, text height=0, text depth=0}},\n",
"\trow 2/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\\bfseries}},\n",
"\tcolumn 1/.style={nodes={align=left }, text height=0.9em, text depth=0.2em, inner xsep=0.375em, inner ysep=0, text width=4.72em},\n",
"\tcolumn 2/.style={nodes={align=left }, nosep, text width=2.83em},\n",
"\tcolumn 3/.style={nodes={align=left }, nosep, text width=2.83em},\n",
"\tcolumn 4/.style={nodes={align=left }, nosep, text width=2.83em},\n",
"\tcolumn 5/.style={text height=0.9em, text depth=0.2em, nosep, text width=0em}\t}]\n",
"\\matrix (THCUMQL66N455) [table, ampersand replacement=\\&]{\n",
" \\& \\& \\& \\& \\\\\n",
" a\\grtspacer \\& b\\grtspacer \\& c\\grtspacer \\& d\\grtspacer \\& \\\\\n",
" west \\& 10 \\& 20 \\& 30 \\& \\\\\n",
" east \\& 10 \\& 200 \\& 30 \\& \\\\\n",
" north \\& 10 \\& 20 \\& 300 \\& \\\\\n",
" south \\& 100 \\& 20 \\& 30 \\& \\\\\n",
"};\n",
"\n",
"\\path[draw, thick] (THCUMQL66N455-1-1.south west) -- (THCUMQL66N455-1-5.south east);\n",
"\\path[draw, semithick] ([yshift=-0.0625em]THCUMQL66N455-2-1.south west) -- ([yshift=-0.0625em]THCUMQL66N455-2-5.south east);\n",
"\\path[draw, thick] ([yshift=-0.3125em]THCUMQL66N455-6-1.base west) -- ([yshift=-0.3125em]THCUMQL66N455-6-5.base east);\n",
"\\path[draw, very thin] ([xshift=-0.1875em]THCUMQL66N455-1-1.south west) -- ([yshift=-0.3125em, xshift=-0.1875em]THCUMQL66N455-6-1.base west);\n",
"\n",
"\n",
"\n",
"\\end{tikzpicture}\n"
],
"text/plain": [
"GreaterTable(df_id=THCUMQL66N455)"
]
},
"execution_count": 79,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"#| echo: true\n",
"#| label: tbl-greater-tables-test-6\n",
"#| tbl-cap: GT output for list of lists input\n",
"lol = [['a', 'b', 'c', 'd'], ['west', 10, 20, 30], ['east', 10, 200, 30], ['north', 10, 20, 300], ['south', 100, 20, 30]]\n",
"GT(lol)"
]
},
{
"cell_type": "code",
"execution_count": 80,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div class=\"greater-table\">\n",
"<style>\n",
" #TMTFI3L7TGZ44 {\n",
" border-collapse: collapse;\n",
" font-family: \"Roboto\", \"Open Sans Condensed\", \"Arial\", 'Segoe UI', sans-serif;\n",
" font-size: 0.9em;\n",
" width: auto;\n",
" \n",
" margin: 10px auto; \n",
" border: none;\n",
" overflow: auto;\n",
" margin-left: auto;\n",
" margin-right: auto;\n",
" }\n",
" \n",
" #TMTFI3L7TGZ44 caption {\n",
" padding: 4px 10px 2px 10px;\n",
" font-size: 1.1em;\n",
" text-align: center;\n",
" font-weight: normal;\n",
" caption-side: top;\n",
" }\n",
" #TMTFI3L7TGZ44 thead {\n",
" \n",
" border-top: 1px solid #000;\n",
" border-bottom: 1px solid #000;\n",
" font-size: 1.0em;\n",
" }\n",
" #TMTFI3L7TGZ44 tbody {\n",
" \n",
" border-bottom: 1px solid #000;\n",
" }\n",
" #TMTFI3L7TGZ44 th {\n",
" vertical-align: bottom;\n",
" padding: 4px 10px 4px 10px;\n",
" }\n",
" #TMTFI3L7TGZ44 td {\n",
" \n",
" padding: 2px 10px 2px 10px;\n",
" vertical-align: top;\n",
" }\n",
" \n",
" #TMTFI3L7TGZ44 .grt-hrule-0 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" #TMTFI3L7TGZ44 .grt-hrule-1 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" #TMTFI3L7TGZ44 .grt-hrule-2 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" \n",
" #TMTFI3L7TGZ44 .grt-bhrule-0 {\n",
" border-bottom: 0px solid #000;\n",
" }\n",
" #TMTFI3L7TGZ44 .grt-bhrule-1 {\n",
" border-bottom: 0px solid #000;\n",
" }\n",
" #TMTFI3L7TGZ44 .grt-vrule-index {\n",
" border-left: 1px solid #000;\n",
" }\n",
" #TMTFI3L7TGZ44 .grt-vrule-0 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #TMTFI3L7TGZ44 .grt-vrule-1 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #TMTFI3L7TGZ44 .grt-vrule-2 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #TMTFI3L7TGZ44 .grt-left {\n",
" text-align: left;\n",
" }\n",
" #TMTFI3L7TGZ44 .grt-center {\n",
" text-align: center;\n",
" }\n",
" #TMTFI3L7TGZ44 .grt-right {\n",
" text-align: right;\n",
" font-variant-numeric: tabular-nums;\n",
" }\n",
" #TMTFI3L7TGZ44 .grt-head {\n",
" font-family: \"Times New Roman\", 'Courier New';\n",
" font-size: 1.0em;\n",
" }\n",
" #TMTFI3L7TGZ44 .grt-bold {\n",
" font-weight: bold;\n",
" }\n",
"\n",
" #TMTFI3L7TGZ44 .grt-c-0 { width: 5.0em; }\n",
" #TMTFI3L7TGZ44 .grt-c-1 { width: 4.0em; }\n",
" #TMTFI3L7TGZ44 .grt-c-2 { width: 4.0em; }\n",
" #TMTFI3L7TGZ44 .grt-c-3 { width: 4.0em; }\n",
"</style>\n",
"<table id=\"TMTFI3L7TGZ44\">\n",
"<colgroup>\n",
"<col style=\"width: 2.5em;\"/>\n",
"<col style=\"width: 2.0em;\"/>\n",
"<col style=\"width: 2.0em;\"/>\n",
"<col style=\"width: 2.0em;\"/>\n",
"</colgroup>\n",
"<thead>\n",
"<tr>\n",
"<th class=\"grt-left\" colspan=\"1\">a</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">b</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">c</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">d</th>\n",
"</tr>\n",
"</thead>\n",
"<tbody>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">west</td>\n",
"<td class=\"grt-c-1 grt-left grt-vrule-0\">10</td>\n",
"<td class=\"grt-c-2 grt-left grt-vrule-0\">20</td>\n",
"<td class=\"grt-c-3 grt-left grt-vrule-0\">30</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">east</td>\n",
"<td class=\"grt-c-1 grt-left grt-vrule-0\">10</td>\n",
"<td class=\"grt-c-2 grt-left grt-vrule-0\">200</td>\n",
"<td class=\"grt-c-3 grt-left grt-vrule-0\">30</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">north</td>\n",
"<td class=\"grt-c-1 grt-left grt-vrule-0\">10</td>\n",
"<td class=\"grt-c-2 grt-left grt-vrule-0\">20</td>\n",
"<td class=\"grt-c-3 grt-left grt-vrule-0\">300</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">south</td>\n",
"<td class=\"grt-c-1 grt-left grt-vrule-0\">100</td>\n",
"<td class=\"grt-c-2 grt-left grt-vrule-0\">20</td>\n",
"<td class=\"grt-c-3 grt-left grt-vrule-0\">30</td>\n",
"</tr>\n",
"</tbody>\n",
"</table></div>"
],
"text/latex": [
"\n",
"\\begin{tikzpicture}[\n",
" auto,\n",
" transform shape,\n",
" nosep/.style={inner sep=0},\n",
" table/.style={\n",
" matrix of nodes,\n",
" row sep=0.125em,\n",
" column sep=0.375em,\n",
" nodes in empty cells,\n",
" nodes={rectangle, scale=0.635, text badly ragged },\n",
"\trow 1/.style={nodes={text=black, anchor=north, inner ysep=0, text height=0, text depth=0}},\n",
"\trow 2/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\\bfseries}},\n",
"\tcolumn 1/.style={nodes={align=left }, text height=0.9em, text depth=0.2em, inner xsep=0.375em, inner ysep=0, text width=4.72em},\n",
"\tcolumn 2/.style={nodes={align=left }, nosep, text width=2.83em},\n",
"\tcolumn 3/.style={nodes={align=left }, nosep, text width=2.83em},\n",
"\tcolumn 4/.style={nodes={align=left }, nosep, text width=2.83em},\n",
"\tcolumn 5/.style={text height=0.9em, text depth=0.2em, nosep, text width=0em}\t}]\n",
"\\matrix (TMTFI3L7TGZ44) [table, ampersand replacement=\\&]{\n",
" \\& \\& \\& \\& \\\\\n",
" a\\grtspacer \\& b\\grtspacer \\& c\\grtspacer \\& d\\grtspacer \\& \\\\\n",
" west \\& 10 \\& 20 \\& 30 \\& \\\\\n",
" east \\& 10 \\& 200 \\& 30 \\& \\\\\n",
" north \\& 10 \\& 20 \\& 300 \\& \\\\\n",
" south \\& 100 \\& 20 \\& 30 \\& \\\\\n",
"};\n",
"\n",
"\\path[draw, thick] (TMTFI3L7TGZ44-1-1.south west) -- (TMTFI3L7TGZ44-1-5.south east);\n",
"\\path[draw, semithick] ([yshift=-0.0625em]TMTFI3L7TGZ44-2-1.south west) -- ([yshift=-0.0625em]TMTFI3L7TGZ44-2-5.south east);\n",
"\\path[draw, thick] ([yshift=-0.3125em]TMTFI3L7TGZ44-6-1.base west) -- ([yshift=-0.3125em]TMTFI3L7TGZ44-6-5.base east);\n",
"\\path[draw, very thin] ([xshift=-0.1875em]TMTFI3L7TGZ44-1-1.south west) -- ([yshift=-0.3125em, xshift=-0.1875em]TMTFI3L7TGZ44-6-1.base west);\n",
"\n",
"\n",
"\n",
"\\end{tikzpicture}\n"
],
"text/plain": [
"GreaterTable(df_id=TMTFI3L7TGZ44)"
]
},
"execution_count": 80,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"f = GT(lol)\n",
"f"
]
},
{
"cell_type": "code",
"execution_count": 87,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div class=\"greater-table\">\n",
"<style>\n",
" #TGYV4AVDDNWJD {\n",
" border-collapse: collapse;\n",
" font-family: \"Roboto\", \"Open Sans Condensed\", \"Arial\", 'Segoe UI', sans-serif;\n",
" font-size: 0.9em;\n",
" width: auto;\n",
" \n",
" margin: 10px auto; \n",
" border: none;\n",
" overflow: auto;\n",
" margin-left: auto;\n",
" margin-right: auto;\n",
" }\n",
" \n",
" #TGYV4AVDDNWJD caption {\n",
" padding: 8px 10px 4px 10px;\n",
" font-size: 0.99em;\n",
" text-align: center;\n",
" font-weight: normal;\n",
" caption-side: top;\n",
" }\n",
" #TGYV4AVDDNWJD thead {\n",
" \n",
" border-top: 1px solid #000;\n",
" border-bottom: 1px solid #000;\n",
" font-size: 0.99em;\n",
" }\n",
" #TGYV4AVDDNWJD tbody {\n",
" \n",
" border-bottom: 1px solid #000;\n",
" }\n",
" #TGYV4AVDDNWJD th {\n",
" vertical-align: bottom;\n",
" padding: 8px 10px 8px 10px;\n",
" }\n",
" #TGYV4AVDDNWJD td {\n",
" \n",
" padding: 4px 10px 4px 10px;\n",
" vertical-align: top;\n",
" }\n",
" \n",
" #TGYV4AVDDNWJD .grt-hrule-0 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" #TGYV4AVDDNWJD .grt-hrule-1 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" #TGYV4AVDDNWJD .grt-hrule-2 {\n",
" border-top: 0px solid #000;\n",
" }\n",
" \n",
" #TGYV4AVDDNWJD .grt-bhrule-0 {\n",
" border-bottom: 0px solid #000;\n",
" }\n",
" #TGYV4AVDDNWJD .grt-bhrule-1 {\n",
" border-bottom: 0px solid #000;\n",
" }\n",
" #TGYV4AVDDNWJD .grt-vrule-index {\n",
" border-left: 1px solid #000;\n",
" }\n",
" #TGYV4AVDDNWJD .grt-vrule-0 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #TGYV4AVDDNWJD .grt-vrule-1 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #TGYV4AVDDNWJD .grt-vrule-2 {\n",
" border-left: 0px solid #000;\n",
" }\n",
" #TGYV4AVDDNWJD .grt-left {\n",
" text-align: left;\n",
" }\n",
" #TGYV4AVDDNWJD .grt-center {\n",
" text-align: center;\n",
" }\n",
" #TGYV4AVDDNWJD .grt-right {\n",
" text-align: right;\n",
" font-variant-numeric: tabular-nums;\n",
" }\n",
" #TGYV4AVDDNWJD .grt-head {\n",
" font-family: \"Times New Roman\", 'Courier New';\n",
" font-size: 0.99em;\n",
" }\n",
" #TGYV4AVDDNWJD .grt-bold {\n",
" font-weight: bold;\n",
" }\n",
"\n",
" #TGYV4AVDDNWJD .grt-c-0 { width: 4.0em; }\n",
" #TGYV4AVDDNWJD .grt-c-1 { width: 6.5em; }\n",
"</style>\n",
"<table id=\"TGYV4AVDDNWJD\">\n",
"<colgroup>\n",
"<col style=\"width: 2.0em;\"/>\n",
"<col style=\"width: 3.25em;\"/>\n",
"</colgroup>\n",
"<thead>\n",
"<tr>\n",
"<th class=\"grt-left\" colspan=\"1\">Var</th>\n",
"<th class=\"grt-center grt-vrule-0\" colspan=\"1\">Amount</th>\n",
"</tr>\n",
"</thead>\n",
"<tbody>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">A</td>\n",
"<td class=\"grt-c-1 grt-right grt-vrule-0\">100.00</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">B</td>\n",
"<td class=\"grt-c-1 grt-right grt-vrule-0\">12.3%</td>\n",
"</tr>\n",
"<tr>\n",
"<td class=\"grt-c-0 grt-left\">C</td>\n",
"<td class=\"grt-c-1 grt-right grt-vrule-0\">A string</td>\n",
"</tr>\n",
"</tbody>\n",
"</table></div>"
],
"text/latex": [
"\n",
"\\begin{tikzpicture}[\n",
" auto,\n",
" transform shape,\n",
" nosep/.style={inner sep=0},\n",
" table/.style={\n",
" matrix of nodes,\n",
" row sep=0.125em,\n",
" column sep=0.375em,\n",
" nodes in empty cells,\n",
" nodes={rectangle, scale=0.635, text badly ragged },\n",
"\trow 1/.style={nodes={text=black, anchor=north, inner ysep=0, text height=0, text depth=0}},\n",
"\trow 2/.style={nodes={text=black, anchor=south, inner ysep=.2em, minimum height=1.3em, font=\\bfseries}},\n",
"\tcolumn 1/.style={nodes={align=left }, text height=0.9em, text depth=0.2em, inner xsep=0.375em, inner ysep=0, text width=2.83em},\n",
"\tcolumn 2/.style={nodes={align=right }, nosep, text width=7.56em},\n",
"\tcolumn 3/.style={text height=0.9em, text depth=0.2em, nosep, text width=0em}\t}]\n",
"\\matrix (TGYV4AVDDNWJD) [table, ampersand replacement=\\&]{\n",
" \\& \\& \\\\\n",
" Var\\grtspacer \\& Amount\\grtspacer \\& \\\\\n",
" A \\& 100.00 \\& \\\\\n",
" B \\& 12.3\\% \\& \\\\\n",
" C \\& A string \\& \\\\\n",
"};\n",
"\n",
"\\path[draw, thick] (TGYV4AVDDNWJD-1-1.south west) -- (TGYV4AVDDNWJD-1-3.south east);\n",
"\\path[draw, semithick] ([yshift=-0.0625em]TGYV4AVDDNWJD-2-1.south west) -- ([yshift=-0.0625em]TGYV4AVDDNWJD-2-3.south east);\n",
"\\path[draw, thick] ([yshift=-0.3125em]TGYV4AVDDNWJD-5-1.base west) -- ([yshift=-0.3125em]TGYV4AVDDNWJD-5-3.base east);\n",
"\n",
"\n",
"\n",
"\\end{tikzpicture}\n"
],
"text/plain": [
"GreaterTable(df_id=TGYV4AVDDNWJD)"
]
},
"execution_count": 87,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"tbl = '''\n",
"\n",
"Var | Amount \n",
":---|------:\n",
"A | 100.0\n",
"B | 0.123\n",
"C | A string\n",
"\n",
"'''\n",
"\n",
"def ff(x):\n",
" if abs(x) < 1:\n",
" return f'{x:.1%}'\n",
" else:\n",
" return f'{x:,.2f}'\n",
"\n",
"sGT(tbl, table_float_format=ff)"
]
},
{
"cell_type": "code",
"execution_count": 88,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(219.6506388719328, 569.7171884302238)"
]
},
"execution_count": 88,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"P = 1000 * 1.075**-10 + 120\n",
"L = 1000\n",
"ry = .1\n",
"v = 1/(1+ry)\n",
"T = 10 \n",
"pv = P - v**T * L\n",
"fv = pv / v**T\n",
"pv, fv"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"jupytext": {
"formats": "ipynb,qmd:quarto"
},
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.13"
}
},
"nbformat": 4,
"nbformat_minor": 4
}