generate_table#

Code to generate tables for latex.

You can test out the latex code in the following minimal working example document:

\documentclass{article} \usepackage{booktabs} \begin{document} First document. This is a simple example, with no extra parameters or packages included.

\begin{table} \centering YOUR LATEX TABLE CODE HERE

\end{table} \end{document}

Module Contents#

Functions#

create_summary

generate_latex_tables

Loads the replication, benchmark, and analysis DataFrames from their respective parquet files, adjusts the benchmark US corporate bonds data so that its start date matches that of the replication data, and generates LaTeX tables from each DataFrame. The generated tables are saved to OUTPUT_DIR as:

Data#

API#

generate_table.DATA_DIR#

‘Path(…)’

generate_table.OUTPUT_DIR#

‘Path(…)’

generate_table.create_summary(df)#
generate_table.generate_latex_tables()#

Loads the replication, benchmark, and analysis DataFrames from their respective parquet files, adjusts the benchmark US corporate bonds data so that its start date matches that of the replication data, and generates LaTeX tables from each DataFrame. The generated tables are saved to OUTPUT_DIR as:

  • ‘replication_table.tex’ for nozawa_replication.parquet (a sample with head, dots row, and tail),

  • ‘us_corp_table.tex’ for us_corp_bonds.parquet (same sample approach),

  • ‘analysis_table.tex’ for analysis.parquet (the full analysis table),

  • ‘benchmark_summary.tex’ for the benchmark summary DataFrame, and

  • ‘replicate_summary.tex’ for the replicate summary DataFrame.