Skip to content

DOC: Update instructions on pandas converters #9251

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
Sep 29, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions doc/faq/howto_faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,8 @@ Plot `numpy.datetime64` values

For Matplotlib to plot dates (or any scalar with units) a converter
to float needs to be registered with the `matplolib.units` module. The
current best converters for `datetime64` values are in `pandas`. Simply
importing `pandas` ::

import pandas as pd

should be sufficient as `pandas` will try to install the converters
on import. If that does not work, or you need to reset `munits.registry`
you can explicitly install the `pandas` converters by ::
current best converters for `datetime64` values are in `pandas`. To enable the
converter, import it from pandas::

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