-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
TST: Add regression tests for concat with non-ns DatetimeIndex units (GH#58471) #62304
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
base: main
Are you sure you want to change the base?
Conversation
|
@jbrockmendel I kindly request you to check the PR and let me know! |
|
Is this AI? |
The description of the PR contains some things from AI. I'm sorry if its an problem. |
|
Removed the AI part! Sorry for that. |
8918c62 to
08e33e9
Compare
|
@jbrockmendel Please check it now. Thanks! |
d9f5c25 to
2cd8c3a
Compare
|
@rhshadrach Request you to kindly check this. |
|
@skalwaghe-56 you don't need to ping us on every PR. We'll get to them all in due time. |
|
@jbrockmendel Sorry Sir! |
ffe118d to
5650319
Compare
5650319 to
816c0d8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @skalwaghe-56 for the PR.
Let's not add all these tests, just the minimum reproducible example, which in the linked issue looks like took a few contributors until it converged on anything that look like one!
816c0d8 to
6a832da
Compare
|
@simonjayhawkins Thanks for your review! I've confirmed that we include just the minimum reproducible example. I've added 2 test which I think are necessary for this issue and to confirm that is fixed properly. Thanks! |
6a832da to
8e55e5a
Compare
8e55e5a to
fedaa40
Compare
431fa2f to
cfa7fd3
Compare
8cb6204 to
a0dd9e7
Compare
a0dd9e7 to
46f3d72
Compare
01e5f63 to
caf584d
Compare
caf584d to
54adf8e
Compare
b7b54f1 to
c9d8049
Compare
c9d8049 to
0fa3118
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
|
@simonjayhawkins - you good here? |
| result = concat([first, second]) | ||
| tm.assert_frame_equal(result, expected) | ||
|
|
||
| @pytest.mark.parametrize("unit", ["ns", "us", "ms", "s"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is a fixture for this. OK for follow-up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't find an existing fixture. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is unit, you can just remove the @pytest.mark.parametrize line.
Line 1249 in 607e489
| def unit(request): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah Thanks!
d772523 to
aa0077b
Compare
Adds regression tests for pandas issue #58471. Added a total of 3 tests. All tests are parameterized across datetime units (ns/us/ms/s) to verify consistent behavior.
Thanks!