pydit.statistics.benford.benford_to_dataframe¶
- pydit.statistics.benford.benford_to_dataframe(obj, column_name='', first_n_digits=1)[source]¶
Returns a summary with the expected and actual Benford’s Law frequency.
- Parameters:
obj (DataFrame or Series or list) – The data to be analyzed.
column_name (str, optional, default: "") – The column name to be analyzed. Not needed for series or lists
first_n_digits (int, optional, default: 1) – The number of first digits to be considered.
- Returns:
A new dataframe with the expected and actual Benford’s Law frequency.
- Return type:
DataFrame