frequency_table_utils
¶
Rows of the frequency and extreme-value tables.
Functions:¶
freq_table(freqtable, n, max_number_to_print, total=None, n_distinct=None)
¶
Render the rows for a frequency table (value, count).
Args:
freqtable: value -> count, most frequent first (a list when comparing).
n: The total number of rows.
max_number_to_print: The maximum number of observations to print.
total: exact number of non-missing values, when freqtable is
truncated.
n_distinct: exact number of distinct values, when freqtable is
truncated.
Returns: The rows of each frequency table.
extreme_obs_table(freqtable, number_to_print, n, reverse=False)
¶
Similar to the frequency table, for extreme observations.
Args: freqtable: value -> count, sorted by value (a list when comparing). number_to_print: The number of observations to print. n: The total number of observations. reverse: show the largest values first.