Utils

Utilities to handle different operations

package.utils.get_greattable_as_html(df: DataFrame) GT

Get the great_table as HTML from Pandas dataframe.

Parameters:

df (pd.DataFrame) – Dataframe to rendera as a table.

Returns:

Table in HTML format.

Return type:

gt.GT

package.utils.populate_summary_table_ARL0_k(summary_table_df_ARL0_k: DataFrame, h) GT

Populate ARLTheoretical.summary_table_df_ARL0_k.

Parameters:
  • summary_table_df_ARL0_k (pd.DataFrame) – Dataframe of ARL0 and its respective values of k.

  • h (float) – Normalized threshold.

Returns:

Table of ARL0 and k in HTML format.

Return type:

gt.GT

package.utils.populate_summary_table_ARL1_k(summary_table_df_ARL1_k: DataFrame, dict_ARL0_k: OrderedDict, h) GT

Populate Multiindex table specific for ARLTheoretical.summary_table_df_ARL1_k

Parameters:
  • summary_table_df_ARL1_k (pd.DataFrame) – Dataframe with ARL1 and k values.

  • dict_ARL0_k (OrderedDict) – Data Dictionary with the mapping between ARL0 and k.

  • h (float) – Normalized threshold.

Returns:

Table for ARL1 and k in HTML format.

Return type:

gt.GT