4b022e6e59fc585dfb0d9ff2d8a6d17576318807,pandas/tests/arrays/integer/test_function.py,,test_ufuncs_binary_int,#Any#,40

Before Change


    tm.assert_extension_array_equal(result, expected)

    result = ufunc(arr, a)
    expected = integer_array(ufunc(arr, a.astype(float)))
    tm.assert_extension_array_equal(result, expected)

    // IntegerArray with scalar
    result = ufunc(a, 1)

After Change


    tm.assert_extension_array_equal(result, expected)

    result = ufunc(arr, a)
    expected = pd.array(ufunc(arr, a.astype(float)), dtype="Int64")
    tm.assert_extension_array_equal(result, expected)

    // IntegerArray with scalar
    result = ufunc(a, 1)
    expected = pd.array(ufunc(a.astype(float), 1), dtype="Int64")
    tm.assert_extension_array_equal(result, expected)

    result = ufunc(1, a)
    expected = pd.array(ufunc(1, a.astype(float)), dtype="Int64")
    tm.assert_extension_array_equal(result, expected)


def test_ufunc_binary_output():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pandas-dev/pandas
Commit Name: 4b022e6e59fc585dfb0d9ff2d8a6d17576318807
Time: 2020-12-11
Author: jorisvandenbossche@gmail.com
File Name: pandas/tests/arrays/integer/test_function.py
Class Name:
Method Name: test_ufuncs_binary_int


Project Name: pandas-dev/pandas
Commit Name: 4b022e6e59fc585dfb0d9ff2d8a6d17576318807
Time: 2020-12-11
Author: jorisvandenbossche@gmail.com
File Name: pandas/tests/indexing/test_indexing.py
Class Name:
Method Name: test_extension_array_cross_section


Project Name: pandas-dev/pandas
Commit Name: 4b022e6e59fc585dfb0d9ff2d8a6d17576318807
Time: 2020-12-11
Author: jorisvandenbossche@gmail.com
File Name: pandas/tests/arrays/integer/test_function.py
Class Name:
Method Name: test_ufuncs_binary_int


Project Name: pandas-dev/pandas
Commit Name: 4b022e6e59fc585dfb0d9ff2d8a6d17576318807
Time: 2020-12-11
Author: jorisvandenbossche@gmail.com
File Name: pandas/tests/arrays/integer/test_function.py
Class Name:
Method Name: test_ufuncs_single_int