SYMBOL INDEX (272 symbols across 12 files) FILE: benford/benford.py class Base (line 21) | class Base(DataFrame): method __init__ (line 40) | def __init__(self, data, decimals, sign='all', sec_order=False): class Test (line 89) | class Test(DataFrame): method __init__ (line 115) | def __init__(self, base, digs, confidence, limit_N=None, sec_order=Fal... method update_confidence (line 148) | def update_confidence(self, new_conf, check=True): method critical_values (line 164) | def critical_values(self): method show_plot (line 174) | def show_plot(self, save_plot=None, save_plot_kwargs=None): method report (line 193) | def report(self, high_Z='pos', show_plot=True, class Summ (line 223) | class Summ(DataFrame): method __init__ (line 231) | def __init__(self, base, test): method show_plot (line 250) | def show_plot(self, save_plot=None, save_plot_kwargs=None): method report (line 267) | def report(self, high_diff=None, show_plot=True, class Mantissas (line 290) | class Mantissas: method __init__ (line 300) | def __init__(self, data, confidence=95, limit_N=None): method stats (line 310) | def stats(self): method update_confidence (line 322) | def update_confidence(self, new_conf, check=True): method report (line 338) | def report(self, show_plot=True, save_plot=None, save_plot_kwargs=None): method show_plot (line 360) | def show_plot(self, figsize=(12, 6), save_plot=None, save_plot_kwargs=... method arc_test (line 378) | def arc_test(self, grid=True, figsize=12, class Benford (line 408) | class Benford(object): method __init__ (line 455) | def __init__(self, data, decimals=2, sign='all', confidence=95, method update_confidence (line 496) | def update_confidence(self, new_conf, tests=None): method all_confidences (line 531) | def all_confidences(self): method mantissas (line 542) | def mantissas(self): method sec_order (line 552) | def sec_order(self): method summation (line 579) | def summation(self): class Source (line 590) | class Source(DataFrame): method __init__ (line 614) | def __init__(self, data, decimals=2, sign='all', sec_order=False, method mantissas (line 663) | def mantissas(self, report=True, show_plot=True, figsize=(15, 8), method first_digits (line 697) | def first_digits(self, digs, confidence=None, high_Z='pos', method second_digit (line 822) | def second_digit(self, confidence=None, high_Z='pos', method last_two_digits (line 936) | def last_two_digits(self, confidence=None, high_Z='pos', method summation (line 1045) | def summation(self, digs=2, top=20, show_plot=True, save_plot=None, method duplicates (line 1101) | def duplicates(self, top_Rep=20, inform=None): class Roll_mad (line 1140) | class Roll_mad(object): method __init__ (line 1161) | def __init__(self, data, test, window, decimals=2, sign='all'): method show_plot (line 1176) | def show_plot(self, figsize=(15, 8), save_plot=None, save_plot_kwargs=... class Roll_mse (line 1194) | class Roll_mse(object): method __init__ (line 1214) | def __init__(self, data, test, window, decimals=2, sign='all'): method show_plot (line 1228) | def show_plot(self, figsize=(15, 8), save_plot=None, save_plot_kwargs=... function first_digits (line 1246) | def first_digits(data, digs, decimals=2, sign='all', verbose=True, function second_digit (line 1326) | def second_digit(data, decimals=2, sign='all', verbose=True, function last_two_digits (line 1403) | def last_two_digits(data, decimals=2, sign='all', verbose=True, function mantissas (line 1481) | def mantissas(data, report=True, show_plot=True, arc_test=True, function summation (line 1518) | def summation(data, digs=2, decimals=2, sign='all', top=20, verbose=True, function mad (line 1561) | def mad(data, test, decimals=2, sign='all', verbose=False): function mse (line 1592) | def mse(data, test, decimals=2, sign='all', verbose=False): function bhattacharyya_distance (line 1623) | def bhattacharyya_distance(data, test, decimals, sign="all", verbose=Fal... function kullback_leibler_divergence (line 1655) | def kullback_leibler_divergence(data, test, decimals, sign="all", function mad_summ (line 1688) | def mad_summ(data, test, decimals=2, sign='all', verbose=False): function rolling_mad (line 1721) | def rolling_mad(data, test, window, decimals=2, sign='all', function rolling_mse (line 1760) | def rolling_mse(data, test, window, decimals=2, sign='all', function duplicates (line 1799) | def duplicates(data, top_Rep=20, verbose=True, inform=None): function second_order (line 1843) | def second_order(data, test, decimals=2, sign='all', verbose=True, MAD=F... FILE: benford/checks.py function _check_digs_ (line 6) | def _check_digs_(digs): function _check_test_ (line 15) | def _check_test_(test): function _check_decimals_ (line 36) | def _check_decimals_(decimals): function _check_sign_ (line 49) | def _check_sign_(sign): function _check_confidence_ (line 57) | def _check_confidence_(confidence): function _check_high_Z_ (line 65) | def _check_high_Z_(high_Z): function _check_num_array_ (line 74) | def _check_num_array_(data): FILE: benford/expected.py class First (line 7) | class First(DataFrame): method __init__ (line 28) | def __init__(self, digs, plot=True, save_plot=None, save_plot_kwargs=N... class Second (line 41) | class Second(DataFrame): method __init__ (line 58) | def __init__(self, plot=True, save_plot=None, save_plot_kwargs=None): class LastTwo (line 70) | class LastTwo(DataFrame): method __init__ (line 87) | def __init__(self, num=False, plot=True, save_plot=None, save_plot_kwa... function _get_expected_digits_ (line 97) | def _get_expected_digits_(digs): function _gen_last_two_digits_ (line 114) | def _gen_last_two_digits_(num=False): function _gen_first_digits_ (line 137) | def _gen_first_digits_(digs): function _gen_second_digits_ (line 153) | def _gen_second_digits_(): FILE: benford/reports.py function _inform_ (line 5) | def _inform_(df, high_Z, conf): function _report_mad_ (line 44) | def _report_mad_(digs, MAD): function _report_KS_ (line 64) | def _report_KS_(KS, crit_KS): function _report_chi2_ (line 73) | def _report_chi2_(chi2, CRIT_CHI2): function _report_Z_ (line 82) | def _report_Z_(df, high_Z, crit_Z): function _report_summ_ (line 90) | def _report_summ_(test, high_diff): function _report_bhattac_coeff_ (line 103) | def _report_bhattac_coeff_(bhattac_coeff): function _report_bhattac_dist_ (line 109) | def _report_bhattac_dist_(bhattac_dist): function _report_kl_diverg_ (line 115) | def _report_kl_diverg_(kl_diverg): function _report_test_ (line 121) | def _report_test_(test, high=None, crit_vals=None): function _report_mantissa_ (line 146) | def _report_mantissa_(stats, confidence): function _deprecate_inform_ (line 167) | def _deprecate_inform_(verbose, inform): FILE: benford/stats.py function Z_score (line 5) | def Z_score(frame, N): function chi_sq (line 20) | def chi_sq(frame, ddf, confidence, verbose=True): function chi_sq_2 (line 51) | def chi_sq_2(frame): function kolmogorov_smirnov (line 65) | def kolmogorov_smirnov(frame, confidence, N, verbose=True): function kolmogorov_smirnov_2 (line 99) | def kolmogorov_smirnov_2(frame): function _two_dist_ks_ (line 115) | def _two_dist_ks_(dist1, dist2, cummulative=True): function _mantissas_ks_ (line 134) | def _mantissas_ks_(mant_dist, confidence, sample_size): function mad (line 155) | def mad(frame, test, verbose=True): function mse (line 185) | def mse(frame, verbose=True): function _bhattacharyya_coefficient (line 203) | def _bhattacharyya_coefficient(dist_1, dist_2): function _bhattacharyya_distance_ (line 219) | def _bhattacharyya_distance_(dist_1, dist_2): function _kullback_leibler_divergence_ (line 237) | def _kullback_leibler_divergence_(dist_1, dist_2): FILE: benford/utils.py function _set_N_ (line 9) | def _set_N_(len_df, limit_N): function get_mantissas (line 22) | def get_mantissas(arr): function input_data (line 35) | def input_data(given): function set_sign (line 63) | def set_sign(data, sign="all"): function get_times_10_power (line 78) | def get_times_10_power(data, decimals=2): function get_digs (line 97) | def get_digs(data, decimals=2, sign="all"): function get_found_proportions (line 126) | def get_found_proportions(data): function join_expect_found_diff (line 136) | def join_expect_found_diff(data, digs): function prepare (line 146) | def prepare(data, digs, limit_N=None, simple=False): function subtract_sorted (line 162) | def subtract_sorted(data): function prep_to_roll (line 171) | def prep_to_roll(start, test): function mad_to_roll (line 204) | def mad_to_roll(arr, Exp, ind): function mse_to_roll (line 215) | def mse_to_roll(arr, Exp, ind): FILE: benford/viz.py function plot_expected (line 7) | def plot_expected(df, digs, save_plot=None, save_plot_kwargs=None): function _get_plot_args (line 47) | def _get_plot_args(digs): function plot_digs (line 66) | def plot_digs(df, x, y_Exp, y_Found, N, figsize, conf_Z, text_x=False, function plot_sum (line 137) | def plot_sum(df, figsize, li, text_x=False, save_plot=None, save_plot_kw... function plot_ordered_mantissas (line 179) | def plot_ordered_mantissas(col, figsize=(12, 12), function plot_mantissa_arc_test (line 217) | def plot_mantissa_arc_test(df, gravity_center, grid=True, figsize=12, function plot_roll_mse (line 264) | def plot_roll_mse(roll_series, figsize, save_plot=None, save_plot_kwargs... function plot_roll_mad (line 288) | def plot_roll_mad(roll_mad, figsize, save_plot=None, save_plot_kwargs=No... FILE: tests/conftest.py function gen_N (line 12) | def gen_N(): function gen_decimals (line 17) | def gen_decimals(): function gen_N_lower (line 22) | def gen_N_lower(gen_N): function gen_array (line 27) | def gen_array(gen_N): function choose_digs_rand (line 33) | def choose_digs_rand(): function choose_test (line 38) | def choose_test(): function choose_confidence (line 43) | def choose_confidence(): function gen_series (line 48) | def gen_series(gen_array): function gen_data_frame (line 53) | def gen_data_frame(gen_array): function gen_int_df (line 58) | def gen_int_df(gen_data_frame): function get_small_arrays (line 71) | def get_small_arrays(request): function small_str_foo_array (line 76) | def small_str_foo_array(): function small_str_foo_series (line 81) | def small_str_foo_series(): function gen_get_digs_df (line 86) | def gen_get_digs_df(gen_series, gen_decimals): function gen_proportions_F1D (line 91) | def gen_proportions_F1D(gen_get_digs_df): function gen_proportions_F2D (line 96) | def gen_proportions_F2D(gen_get_digs_df): function gen_proportions_F3D (line 101) | def gen_proportions_F3D(gen_get_digs_df): function gen_proportions_SD (line 106) | def gen_proportions_SD(gen_get_digs_df): function gen_proportions_L2D (line 111) | def gen_proportions_L2D(gen_get_digs_df): function gen_proportions_random_test (line 116) | def gen_proportions_random_test(choose_test, gen_get_digs_df): function gen_join_expect_found_diff_random_test (line 122) | def gen_join_expect_found_diff_random_test(gen_proportions_random_test): function gen_join_expect_found_diff_F1D (line 128) | def gen_join_expect_found_diff_F1D(gen_proportions_F1D): function gen_join_expect_found_diff_F2D (line 133) | def gen_join_expect_found_diff_F2D(gen_proportions_F2D): function gen_join_expect_found_diff_F3D (line 138) | def gen_join_expect_found_diff_F3D(gen_proportions_F3D): function gen_join_expect_found_diff_SD (line 143) | def gen_join_expect_found_diff_SD(gen_proportions_SD): function gen_join_expect_found_diff_L2D (line 148) | def gen_join_expect_found_diff_L2D(gen_proportions_L2D): function gen_linspaced_zero_one (line 153) | def gen_linspaced_zero_one(cuts:int=1000): function gen_mantissas_ks_dists (line 158) | def gen_mantissas_ks_dists(gen_array): function gen_mantissa_distribution (line 164) | def gen_mantissa_distribution(): function get_mant_ks_types (line 179) | def get_mant_ks_types(request): function get_mant_ks_s (line 191) | def get_mant_ks_s(request): function gen_mantissa_distribution_len (line 196) | def gen_mantissa_distribution_len(): function get_mant_ks_confs_limit_N (line 205) | def get_mant_ks_confs_limit_N(request): function gen_random_digs_and_proportions (line 213) | def gen_random_digs_and_proportions(gen_linspaced_zero_one, choose_digs_... FILE: tests/test_checks.py class TestCheckDigs (line 8) | class TestCheckDigs(): method test_digs_raise_msg (line 16) | def test_digs_raise_msg(self, dig, expectation): method test_check_digs_raise (line 23) | def test_check_digs_raise(self, dig, expectation): method test_check_digs_no_raise (line 31) | def test_check_digs_no_raise(self, dig, expectation): class TestCheckTest (line 36) | class TestCheckTest(): method test_choose (line 42) | def test_choose(self, dig, expected): method test_raise (line 51) | def test_raise(self, dig, expectation): method test_None (line 55) | def test_None(self): class TestCheckDecimals (line 60) | class TestCheckDecimals(): method test_positive_int (line 65) | def test_positive_int(self, pos_int, expected): method test_dec_raises (line 73) | def test_dec_raises(self, dec, expectation): method test_negative_int_msg (line 77) | def test_negative_int_msg(self): method test_infer (line 83) | def test_infer(self): method test_None_type (line 86) | def test_None_type(self): class TestCheckConfidence (line 91) | class TestCheckConfidence(): method test_conf_raises (line 100) | def test_conf_raises(self, conf, expectation): method test_all_confidences (line 107) | def test_all_confidences(self, conf, expected): class TestCheckHighZ (line 111) | class TestCheckHighZ(): method test_high_Z_raises (line 121) | def test_high_Z_raises(self, high_Z, expectation): method test_high_zs (line 129) | def test_high_zs(self, z, expected): class TestCheckNunmArray (line 133) | class TestCheckNunmArray(): method test_arrays_to_float (line 143) | def test_arrays_to_float(self, arr): method test_small_arrays (line 146) | def test_small_arrays(self, get_small_arrays): method test_np_array_str (line 150) | def test_np_array_str(self, small_str_foo_array): method test_num_array_raises (line 163) | def test_num_array_raises(self, num_array, expectation): FILE: tests/test_expected.py class TestGetExpectedDigits (line 5) | class TestGetExpectedDigits(): method test_expected_types (line 12) | def test_expected_types(self, dig, expec_type): method test_expected_lenghts (line 20) | def test_expected_lenghts(self, dig, exp_len): class TestGenLastTwoDigits (line 24) | class TestGenLastTwoDigits(): method test_types (line 29) | def test_types(self, num, arr_type): class TestGenDigits (line 34) | class TestGenDigits(): method test_probs_sum_near_one (line 43) | def test_probs_sum_near_one(self, func, dig): method test_no_negative_prob (line 48) | def test_no_negative_prob(self, func, dig): method test_digs_sums (line 59) | def test_digs_sums(self, func, dig, exp_sum): method test_lengths (line 70) | def test_lengths(self, func, dig, exp_len): FILE: tests/test_stats.py function test_Z_score_F1D (line 7) | def test_Z_score_F1D(): class TestChiSquare (line 10) | class TestChiSquare(): method test_conf_None (line 12) | def test_conf_None(self, gen_join_expect_found_diff_F1D, capsys): method test_random_conf_F1D (line 19) | def test_random_conf_F1D(self, gen_join_expect_found_diff_F1D, method test_random_conf_F2D (line 30) | def test_random_conf_F2D(self, gen_join_expect_found_diff_F2D, method test_random_conf_F3D (line 40) | def test_random_conf_F3D(self, gen_join_expect_found_diff_F3D, method test_random_conf_SD (line 50) | def test_random_conf_SD(self, gen_join_expect_found_diff_SD, method test_random_conf_L2D (line 60) | def test_random_conf_L2D(self, gen_join_expect_found_diff_L2D, method test_rand_test_rand_conf_verbose (line 70) | def test_rand_test_rand_conf_verbose(self, choose_confidence, method test_rand_test_conf_80 (line 80) | def test_rand_test_conf_80(self, gen_join_expect_found_diff_random_test): method test_rand_test_conf_85 (line 88) | def test_rand_test_conf_85(self, gen_join_expect_found_diff_random_test): method test_rand_test_conf_90 (line 96) | def test_rand_test_conf_90(self, gen_join_expect_found_diff_random_test): method test_rand_test_conf_95 (line 104) | def test_rand_test_conf_95(self, gen_join_expect_found_diff_random_test, method test_rand_test_conf_99 (line 116) | def test_rand_test_conf_99(self, gen_join_expect_found_diff_random_test): method test_rand_test_conf_999 (line 124) | def test_rand_test_conf_999(self, gen_join_expect_found_diff_random_te... method test_rand_test_conf_9999 (line 132) | def test_rand_test_conf_9999(self, gen_join_expect_found_diff_random_t... method test_rand_test_conf_99999 (line 140) | def test_rand_test_conf_99999(self, gen_join_expect_found_diff_random_... method test_rand_test_conf_999999 (line 148) | def test_rand_test_conf_999999(self, gen_join_expect_found_diff_random... method test_rand_test_conf_9999999 (line 156) | def test_rand_test_conf_9999999(self, gen_join_expect_found_diff_rando... class TestBhattacharyya (line 164) | class TestBhattacharyya(): method test_coeff (line 166) | def test_coeff(self, gen_random_digs_and_proportions): method test_distance (line 173) | def test_distance(self, gen_random_digs_and_proportions): class TestKLDivergence (line 180) | class TestKLDivergence(): method test_kld (line 182) | def test_kld(self, gen_random_digs_and_proportions): class TestTwoDistKS (line 189) | class TestTwoDistKS(): method test_type (line 191) | def test_type(self, get_mant_ks_types): method test_more_equal_zero (line 196) | def test_more_equal_zero(self, get_mant_ks_s): class TestMantissasKS (line 201) | class TestMantissasKS: method test_confidence_limit_N (line 203) | def test_confidence_limit_N(self, get_mant_ks_confs_limit_N): FILE: tests/test_utils.py class Test_set_N_ (line 6) | class Test_set_N_(): method test_Limit_None (line 8) | def test_Limit_None(self, gen_N): method test_Limit_greater (line 11) | def test_Limit_greater(self, gen_N, gen_N_lower): method test_negative (line 14) | def test_negative(self, ): method test_float (line 18) | def test_float(self, ): method test_zero (line 22) | def test_zero(self, gen_N): class Test_get_mantissas (line 27) | class Test_get_mantissas(): method test_less_than_1 (line 29) | def test_less_than_1(self, gen_array): method test_less_than_0 (line 32) | def test_less_than_0(self, gen_array): class Test_input_data (line 36) | class Test_input_data(): method test_Series (line 38) | def test_Series(self, gen_series): method test_array (line 42) | def test_array(self, gen_array): method test_wrong_tuple (line 47) | def test_wrong_tuple(self, gen_array, gen_series, gen_data_frame): method test_df (line 53) | def test_df(self, gen_data_frame): method test_wrong_input_type (line 58) | def test_wrong_input_type(self, gen_array): class Test_set_sign (line 63) | class Test_set_sign(): method test_all (line 65) | def test_all(self, gen_data_frame): method test_pos (line 69) | def test_pos(self, gen_data_frame): method test_neg (line 73) | def test_neg(self, gen_data_frame): class Test_get_times_10_power (line 78) | class Test_get_times_10_power(): method test_2 (line 80) | def test_2(self, gen_data_frame): method test_8 (line 84) | def test_8(self, gen_data_frame): method test_0 (line 89) | def test_0(self, gen_int_df): method test_infer (line 94) | def test_infer(self, gen_data_frame): class Test_get_digs (line 100) | class Test_get_digs(): method test_dec_8 (line 102) | def test_dec_8(self, gen_array): method test_dec_0 (line 109) | def test_dec_0(self, gen_array): method test_dec_2 (line 116) | def test_dec_2(self, gen_array): method test_dec_infer (line 123) | def test_dec_infer(self, gen_array): class Test_get_found_proportions (line 130) | class Test_get_found_proportions(): method test_F1D (line 132) | def test_F1D(self, gen_proportions_F1D): method test_F2D (line 139) | def test_F2D(self, gen_proportions_F2D): method test_F3D (line 146) | def test_F3D(self, gen_proportions_F3D): method test_SD (line 153) | def test_SD(self, gen_proportions_SD): method test_L2D (line 160) | def test_L2D(self, gen_proportions_L2D): class Test_join_exp_found_diff (line 168) | class Test_join_exp_found_diff(): method test_F1D (line 170) | def test_F1D(self, gen_proportions_F1D): method test_F2D (line 177) | def test_F2D(self, gen_proportions_F2D): method test_F3D (line 184) | def test_F3D(self, gen_proportions_F3D): method test_SD (line 191) | def test_SD(self, gen_proportions_SD): method test_L2D (line 198) | def test_L2D(self, gen_proportions_L2D): class Test_prepare (line 206) | class Test_prepare(): method test_F1D_simple (line 208) | def test_F1D_simple(self, gen_series): method test_F2D_simple (line 212) | def test_F2D_simple(self, gen_series): method test_F3D_simple (line 216) | def test_F3D_simple(self, gen_series): method test_SD_simple (line 220) | def test_SD_simple(self, gen_series): method test_L2D_simple (line 224) | def test_L2D_simple(self, gen_series): method test_F1D (line 228) | def test_F1D(self, gen_series): method test_F2D (line 235) | def test_F2D(self, gen_series): method test_F3D (line 242) | def test_F3D(self, gen_series): method test_SD (line 249) | def test_SD(self, gen_series): method test_L2D (line 256) | def test_L2D(self, gen_series): method test_F1D_N (line 263) | def test_F1D_N(self, gen_N, gen_series): method test_F2D_N (line 270) | def test_F2D_N(self, gen_N, gen_series): method test_F3D_N (line 277) | def test_F3D_N(self, gen_N, gen_series): method test_SD_N (line 284) | def test_SD_N(self, gen_N, gen_series): method test_L2D_N (line 291) | def test_L2D_N(self, gen_N, gen_series): function test_subtract_sorted (line 299) | def test_subtract_sorted(gen_series):