pretty_print_df#

mhm_tools.common.utils.pretty_print_df(df: DataFrame, max_col_width: int = 30, title='') None[source]#

Pretty-print a DataFrame as an ASCII table with simple truncation.

Numbers are right-aligned, other columns are left-aligned. Cells longer than max_col_width are truncated with an ellipsis.