Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DOC: add FAQ about np.datetime64 #5625

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

Merged
merged 1 commit into from
Feb 14, 2016
Merged

Conversation

tacaswell
Copy link
Member

I would appreciate if someone else checked to make sure I am not lying here, but with up-to-date everything, datetime64 seems to 'just work' so long as pandas has been imported.

@tacaswell tacaswell added this to the Critical bugfix release (1.5.1) milestone Dec 6, 2015
@tacaswell
Copy link
Member Author

and of course I targeted this at the wrong branch.

@@ -14,6 +14,35 @@ How-To
Plotting: howto
===============

.. _howto-datetime64
Copy link
Member

Choose a reason for hiding this comment

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

I think this needs a colon at the end of the line.

@tacaswell
Copy link
Member Author

fixed and force pushed

from pandas.tseries import converter as pdtc
pdtc.register()

If you only want to use `pandas` converter for `datetime64` values ::
Copy link
Member

Choose a reason for hiding this comment

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

use the

@QuLogic
Copy link
Member

QuLogic commented Dec 16, 2015

Don't you need double-backticks for code samples in reST?

@tacaswell
Copy link
Member Author

Single backticks to their best to auto-resolve to a link to something else in the docs, double ticks just sets it in mono-typewriter.

@tacaswell tacaswell modified the milestones: next major release (2.0), Critical bugfix release (1.5.1) Dec 28, 2015
@efiring
Copy link
Member

efiring commented Feb 14, 2016

@tacaswell, my quick testing confirms your initial comment: importing pandas is sufficient.

@tacaswell
Copy link
Member Author

Typo fixed and squashed.

efiring added a commit that referenced this pull request Feb 14, 2016
DOC: add FAQ about np.datetime64
@efiring efiring merged commit a40c9ec into matplotlib:master Feb 14, 2016
@QuLogic
Copy link
Member

QuLogic commented Feb 14, 2016

Should be backported?

@tacaswell tacaswell deleted the faq_datetime64 branch May 12, 2016 21:41
QuLogic pushed a commit to QuLogic/matplotlib that referenced this pull request Oct 16, 2016
@QuLogic
Copy link
Member

QuLogic commented Oct 18, 2016

Backported to v2.x via e2fd2aa.

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

Successfully merging this pull request may close these issues.

4 participants