8000 BUG: Fix ndarray + DataFrame ops by jbrockmendel · Pull Request #23114 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

BUG: Fix ndarray + DataFrame ops #23114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Oct 14, 2018
Merged
Prev Previous commit
Next Next commit
update test
  • Loading branch information
jbrockmendel committed Oct 13, 2018
commit afd53e095428ca26cd5e3c4fd905677d4025274e
7 changes: 5 additions & 2 deletions pandas/tests/arithmetic/test_timedelta64.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,11 @@ def test_td64arr_add_str_invalid(self, box):
@pytest.mark.parametrize('op', [operator.add, ops.radd,
operator.sub, ops.rsub],
ids=lambda x: x.__name__)
def test_td64arr_add_sub_float(self, box_df_broadcast_failure, op, other):
box = box_df_broadcast_failure
def test_td64arr_add_sub_float(self, box, op, other):
if box is pd.DataFrame and isinstance(other, np.ndarray):
pytest.xfail("Tries to broadcast, raising "
"ValueError instead of TypeError")

tdi = TimedeltaIndex(['-1 days', '-1 days'])
tdi = tm.box_expected(tdi, box)

Expand Down
0