Skip to content

Conversation

@jbrockmendel
Copy link
Member

This implements resolution inference for array_to_timedelta64 matching the behavior for the Timedelta scalar. This does not change anything for strings, just np.timedelta64, pytimedelta, and pd.Timedelta objects.

One unintended side effect is that pd.Series([np.timedelta64(1, "M")]) raises instead of casting to "30 days 10:29:06". Need to give that some thought.

There is some de-duplication that can be done either before merging or as follow-up.

This fixes some xfails. I'm pretty sure this also addresses some open issues, will need to track those down and add tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant