1b54718668c7c52705de21e9ca1778485a9fc201,tests/functions/test_complete.py,,test_fill_value_all_years,#Any#Any#,178

Before Change


    all the years from 1999 to 2004.
    

    result = df1.complete(
        columns=[
            {"Year": lambda x: range(x.Year.min(), x.Year.max() + 1)},
            "Taxon",
        ],
        fill_value={"Abundance": 0},
    )
    assert_frame_equal(result, df1_output)


def test_dict_series(df1, df1_output):

After Change


    all the years from 1999 to 2004.
    

    result = df1.complete(
        columns=[{"Year": lambda x: range(x.min(), x.max() + 1)}, "Taxon"]
    ).fillna(0)
    assert_frame_equal(result, df1_output)


def test_dict_series(df1, df1_output):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ericmjl/pyjanitor
Commit Name: 1b54718668c7c52705de21e9ca1778485a9fc201
Time: 2021-04-06
Author: samueloranyeli@gmail.com
File Name: tests/functions/test_complete.py
Class Name:
Method Name: test_fill_value_all_years


Project Name: ericmjl/pyjanitor
Commit Name: 1b54718668c7c52705de21e9ca1778485a9fc201
Time: 2021-04-06
Author: samueloranyeli@gmail.com
File Name: tests/functions/test_complete.py
Class Name:
Method Name: test_dict_series_duplicates


Project Name: ericmjl/pyjanitor
Commit Name: 1b54718668c7c52705de21e9ca1778485a9fc201
Time: 2021-04-06
Author: samueloranyeli@gmail.com
File Name: tests/functions/test_complete.py
Class Name:
Method Name: test_dict_series