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

Skip to content

Commit c8c76ad

Browse files
committed
Merge pull request #9251 from TomAugspurger/pandas-import-doc
DOC: Update instructions on pandas converters
1 parent df1b18e commit c8c76ad

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

doc/faq/howto_faq.rst

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,8 @@ Plot `numpy.datetime64` values
2121

2222
For Matplotlib to plot dates (or any scalar with units) a converter
2323
to float needs to be registered with the `matplolib.units` module. The
24-
current best converters for `datetime64` values are in `pandas`. Simply
25-
importing `pandas` ::
26-
27-
import pandas as pd
28-
29-
should be sufficient as `pandas` will try to install the converters
30-
on import. If that does not work, or you need to reset `munits.registry`
31-
you can explicitly install the `pandas` converters by ::
24+
current best converters for `datetime64` values are in `pandas`. To enable the
25+
converter, import it from pandas::
3226

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

0 commit comments

Comments
 (0)