-
Notifications
You must be signed in to change notification settings - Fork 917
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
Align DatetimeIndex APIs with pandas 2.x #16367
Align DatetimeIndex APIs with pandas 2.x #16367
Conversation
""" | ||
return self.to_pandas().to_pydatetime() | ||
|
||
def to_julian_date(self) -> Index: |
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.
Can we add pytests to cover these newly added APIs?
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.
Sure added tests in the latest commit
…schke/cudf into api/datetimeindex/alignment
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.
Tiny nit
if method == "std": | ||
request.applymarker( | ||
pytest.mark.xfail(reason="cudf returns imprecise nanoseconds") | ||
) |
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.
nit move this up to the parametrization as:
pytest.param("std", marks=pytest.mark.xfail(...))
Also, do we have an open issue for this? No, but opened #16444
/merge |
Description
Mostly transferring methods that were defined on
Series.dt
methods toDatetimeColumn
so it could be reused inDatetimeIndex
Checklist