Exemplo n.º 1
0
def test_clean_long_footer_value():
    clean_df = dfu.clean_df_footer(df=df_test_long_footer, rows_to_search=25)
    npt.assert_array_equal(clean_df, df_test_simple)
Exemplo n.º 2
0
def test_clean_no_footer():
    clean_df = dfu.clean_df_footer(df=df_test_simple)
    npt.assert_array_equal(clean_df, df_test_simple)
Exemplo n.º 3
0
def test_clean_long_footer_default():
    clean_df = dfu.clean_df_footer(df=df_test_long_footer)
    # since the footer doesn't find_df_footert in the default parameters,
    # nothing gets cleaned.
    npt.assert_array_equal(clean_df, df_test_long_footer)
Exemplo n.º 4
0
def test_clean_simple_footer_mixed_nan():
    clean_df = dfu.clean_df_footer(df=df_test_footer_mixed)
    npt.assert_array_equal(clean_df, df_test_simple)