File tree 4 files changed +11
-4
lines changed
4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ def setup(self):
20
20
def time_plot_regular (self ):
21
21
self .df .plot ()
22
22
23
+ def time_plot_regular_compat (self ):
24
+ self .df .plot (x_compat = True )
25
+
23
26
24
27
class Misc (object ):
25
28
goal_time = 0.6
Original file line number Diff line number Diff line change @@ -281,10 +281,14 @@ Performance Improvements
281
281
282
282
- Improved performance of ``pd.wide_to_long()`` (:issue:`14779`)
283
283
- Increased performance of ``pd.factorize()`` by releasing the GIL with ``object`` dtype when inferred as strings (:issue:`14859`)
284
+ - Improved performance of timeseries plotting with an irregular DatetimeIndex
285
+ (or with ``compat_x=True``) (:issue:`15073`).
286
+
284
287
285
288
- When reading buffer object in ``read_sas()`` method without specified format, filepath string is inferred rather than buffer object.
286
289
287
290
291
+
288
292
.. _whatsnew_0200.bug_fixes:
289
293
290
294
Bug Fixes
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ def try_parse(values):
212
212
try :
213
213
values = tools .to_datetime (values )
214
214
if isinstance (values , Index ):
215
- values = values . map ( _dt_to_float_ordinal )
215
+ values = _dt_to_float_ordinal ( values )
216
216
else :
217
217
values = [_dt_to_float_ordinal (x ) for x in values ]
218
218
except Exception :
Original file line number Diff line number Diff line change 3
3
import nose
4
4
5
5
import numpy as np
6
- from pandas import Timestamp , Period , Index
6
+ from pandas import Timestamp , Period
7
7
from pandas .compat import u
8
8
import pandas .util .testing as tm
9
9
from pandas .tseries .offsets import Second , Milli , Micro
@@ -104,8 +104,8 @@ def test_dateindex_conversion(self):
104
104
for freq in ('B' , 'L' , 'S' ):
105
105
dateindex = tm .makeDateIndex (k = 10 , freq = freq )
106
106
rs = self .dtc .convert (dateindex , None , None )
107
- xp = Index ( converter .dates .date2num (dateindex ._mpl_repr () ))
108
- tm .assert_index_equal (rs , xp , decimals )
107
+ xp = converter .dates .date2num (dateindex ._mpl_repr ())
108
+ tm .assert_almost_equal (rs , xp , decimals )
109
109
110
110
def test_resolution (self ):
111
111
def _assert_less (ts1 , ts2 ):
You can’t perform that action at this time.
0 commit comments