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

NaT.isoformat() returns 'NaT'. #12300

Closed
wants to merge 1 commit into from

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 Timeseries 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
Output-Formatting __repr__ of pandas objects, to_string Timeseries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants