dd943c8bfdcc282ea1fdaa705127df176b02cbad,pandas/tests/apply/test_series_apply.py,,test_transform_partial_failure,#Any#Any#,261

Before Change


    tm.assert_equal(result, expected)

    expected = ser.transform({"B": ["shift"]})
    with tm.assert_produces_warning(FutureWarning, match=match):
        result = ser.transform({"A": [op], "B": ["shift"]})
    tm.assert_equal(result, expected)


def test_demo():

After Change


    result = ser.transform({"A": [op], "B": ["shift"]})
    tm.assert_equal(result, expected)

    expected = ser.transform({"A": ["shift"], "B": [op]})
    result = ser.transform({"A": [op, "shift"], "B": [op]})
    tm.assert_equal(result, expected)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pandas-dev/pandas
Commit Name: dd943c8bfdcc282ea1fdaa705127df176b02cbad
Time: 2021-03-26
Author: 45562402+rhshadrach@users.noreply.github.com
File Name: pandas/tests/apply/test_series_apply.py
Class Name:
Method Name: test_transform_partial_failure


Project Name: NTMC-Community/MatchZoo
Commit Name: cea292769af4ac688649573a11b20f4d69024e3d
Time: 2019-05-15
Author: 469413628@qq.com
File Name: tests/unit_test/processor_units/test_processor_units.py
Class Name:
Method Name: test_bert_tokenizer_unit


Project Name: matplotlib/matplotlib
Commit Name: d23bcea94a01a598de9619a1bf45b911120f7096
Time: 2019-01-08
Author: jklymak@gmail.com
File Name: lib/matplotlib/axis.py
Class Name: Axis
Method Name: _update_ticks