8000 dispatch scalar DataFrame ops to Series by jbrockmendel · Pull Request #22163 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

dispatch scalar DataFrame ops to Series #22163

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 19 commits into from
Aug 14, 2018
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' of https://github.com/pandas-dev/pandas into df…
…bugs
  • Loading branch information
jbrockmendel committed Aug 7, 2018
commit edc37925e954e5efd440fb6cf96d96d036b497a5
19 changes: 4 additions & 15 deletions pandas/tests/test_arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

from pandas.compat import long
from pandas.core import ops
from pandas.errors import NullFrequencyError
from pandas.errors import NullFrequencyError, PerformanceWarning
from pandas import (
timedelta_range,
Timedelta, Timestamp, NaT, Series, TimedeltaIndex, DatetimeIndex)
Expand Down Expand Up @@ -268,11 +268,7 @@ def test_td64_radd_timestamp(self, box):
@pytest.mark.parametrize('box', [
pd.Index,
Series,
pytest.param(pd.DataFrame,
marks=pytest.mark.xfail(reason="Returns object dtype "
"instead of "
"datetime64[ns]",
strict=True))
pd.DataFrame
], ids=lambda x: x.__name__)
def test_td64arr_add_sub_timestamp(self, box):
# GH#11925
Expand Down Expand Up @@ -487,15 +483,8 @@ def test_td64arr_add_sub_numeric_arr_invalid(self, box, vec, dtype, tdser):
# ------------------------------------------------------------------
# Operations with timedelta-like others

@pytest.mark.parametrize('box', [
pd.Index,
Series,
pd.DataFrame
], ids=lambda x: x.__name__)
def test_td64arr_add_sub_timestamp(self, box):
# GH#11925
ts = Timestamp('2012-01-01')
# TODO: parametrize over types of datetime scalar?
def test_td64arr_add_td64_array(self, box_df_fail):
box = box_df_fail # DataFrame tries to broadcast incorrectly

dti = pd.date_range('2016-01-01', periods=3)
tdi = dti - dti.shift(1)
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0