Skip to content

test replace on out of bound datetime #45525

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

Conversation

ryangilmour
Copy link
Contributor

Just adds a test for the functionality that is working on main. Placed the test in amongst the other DataFrame.replace tests.

# GH 36782
(
DataFrame({"dt": [datetime(2920, 10, 1)]}),
datetime(2920, 10, 1), # out of range date
Copy link
Member

Choose a reason for hiding this comment

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

You can remove the comments in this line and the following line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay - thanks for the feedback. I'll make the change.

Is it best practice to leave out comments like this? Is the GH reference enough?

Do you know why the build check failed? Looks like it timed out, is there anything I should do to prevent this?

@jreback jreback added replace replace method Testing pandas testing functions or related to the test suite labels Jan 22, 2022
@mroeschke mroeschke added this to the 1.5 milestone Jan 22, 2022
@jreback jreback merged commit aeaca2f into pandas-dev:main Jan 23, 2022
@jreback
Copy link
Contributor

jreback commented Jan 23, 2022

thanks @ryangilmour

@ryangilmour ryangilmour deleted the test_replacing_out_of_bounds_datetime branch January 23, 2022 17:56
yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
replace replace method Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: replacing out of bound datetimes is not possible
4 participants