Skip to content
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

BUG: ensure object dtype for strftime accessor/index method + REGR: avoid spurious warning #48147

Merged
merged 1 commit into from
Aug 19, 2022

Conversation

jorisvandenbossche
Copy link
Member

@jorisvandenbossche jorisvandenbossche added this to the 1.4.4 milestone Aug 19, 2022
@@ -116,7 +116,7 @@ def _new_DatetimeIndex(cls, d):
+ [
method
for method in DatetimeArray._datetimelike_methods
if method not in ("tz_localize", "tz_convert")
if method not in ("tz_localize", "tz_convert", "strftime")
Copy link
Member Author

Choose a reason for hiding this comment

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

strftime was added as an explicit method instead of automatically delegated one in #36742 (the method below where I edited the return value), but at that time we forgot to correctly remove it from this list

@mroeschke mroeschke merged commit ca43cde into pandas-dev:main Aug 19, 2022
@mroeschke
Copy link
Member

Thanks @jorisvandenbossche (failure unrelated)

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Aug 19, 2022
…ccessor/index method + REGR: avoid spurious warning
phofl pushed a commit that referenced this pull request Aug 19, 2022
…time accessor/index method + REGR: avoid spurious warning) (#48158)
@jorisvandenbossche jorisvandenbossche deleted the strftime-all-nat branch August 20, 2022 06:51
noatamir pushed a commit to noatamir/pandas that referenced this pull request Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: FutureWarning for pandas datetime dtype series strftime with all NA values
3 participants