Skip to content

Conversation

llllllllll
Copy link
Contributor

NaT.isoformat() returning 'NaT' allows users to use Timestamp to
rehydrate any _Timestamp object from its isoformat. This means that it
is safe to use _Timestamp.isoformat() as a serialization format for
timestamps where NaT is a valid value.

@jreback jreback added Datetime Datetime data dtype Output-Formatting __repr__ of pandas objects, to_string labels Feb 12, 2016
@llllllllll
Copy link
Contributor Author

I am not sure if this is actually a good change. NaT is not defined by iso so idk if this is misleading. I just wanted to raise the issue.

@jreback
Copy link
Contributor

jreback commented Feb 12, 2016

this would change the way JSON serializes I think. IIRC its the only thing that uses .isoformat internally at least.

@jreback
Copy link
Contributor

jreback commented Feb 15, 2016

@llllllllll this looks fine. pls rebase and well put in.

@llllllllll llllllllll force-pushed the nat-isoformat branch 2 times, most recently from a69e633 to eb34f07 Compare February 15, 2016 21:44
NaT.isoformat() returning 'NaT' allows users to use Timestamp to
rehydrate any _Timestamp object from its isoformat. This means that it
is safe to use _Timestamp.isoformat() as a serialization format for
timestamps where NaT is a valid value.
@llllllllll
Copy link
Contributor Author

build is passing, thanks!

@jreback jreback added this to the 0.18.0 milestone Feb 15, 2016
@jreback jreback closed this in 288059a Feb 15, 2016
@jreback
Copy link
Contributor

jreback commented Feb 15, 2016

thanks @llllllllll

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datetime Datetime data dtype Output-Formatting __repr__ of pandas objects, to_string
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants