Skip to content

Conversation

jbrockmendel
Copy link
Member

@jbrockmendel jbrockmendel commented Apr 3, 2020

This allows us to make TimedeltaBlock.to_native_types dispatch to TimedeltaArray._format_native_types. ATM TDBlock.to_native_types has a comment

        # FIXME:
        # should use the formats.format.Timedelta64Formatter here
        # to figure what format to pass to the Timedelta
        # e.g. to not show the decimals say

@WillAyd
Copy link
Member

WillAyd commented Apr 3, 2020

Seems reasonable. I suppose could use a whatsnew

@WillAyd WillAyd added the Timedelta Timedelta data type label Apr 3, 2020
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

ok, lgtm. pls add a whatsnew note. ping on green.

@jreback jreback added this to the 1.1 milestone Apr 3, 2020
@jbrockmendel
Copy link
Member Author

ping

@WillAyd WillAyd merged commit 7b032ec into pandas-dev:master Apr 3, 2020
@WillAyd
Copy link
Member

WillAyd commented Apr 3, 2020

Thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the bug-tdrepr branch April 3, 2020 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Timedelta Timedelta data type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Timedelta repr does not show nanoseconds
3 participants