Skip to content

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • Ensure all linting tests pass, see here for how to run them
  • whatsnew entry

@jreback jreback added Numeric Operations Arithmetic, Comparison, and Logical operations Testing pandas testing functions or related to the test suite labels Dec 19, 2021
@jreback jreback modified the milestones: 2.0, 1.4 Dec 19, 2021
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm some commments for followup

with warnings.catch_warnings():
warnings.simplefilter("ignore", DeprecationWarning)
# The constructor validation can lead to a DeprecationWarning
# from numpy, e.g. with RangeIndex + np.datetime64("now")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

umm shouldn't we do something about this? (e.g. cast to object)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, turns out to be pretty easy, will handle before long

offset = scalar + dates
tm.assert_equal(offset, expected)

roundtrip = offset - scalar
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prob should split this to a separate test & parameterize (followup)

@jreback jreback merged commit ff16cdb into pandas-dev:master Dec 19, 2021
@jbrockmendel jbrockmendel deleted the tst-arith branch December 19, 2021 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Numeric Operations Arithmetic, Comparison, and Logical operations Testing pandas testing functions or related to the test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants