@@ -476,11 +476,6 @@ def to_timestamp(self, freq=None, how="start"):
476
476
# --------------------------------------------------------------------
477
477
# Array-like / EA-Interface Methods
478
478
479
- def _formatter (self , boxed = False ):
480
- if boxed :
481
- return str
482
- return "'{}'" .format
483
-
484
479
@Appender (dtl .DatetimeLikeArrayMixin ._validate_fill_value .__doc__ )
485
480
def _validate_fill_value (self , fill_value ):
486
481
if isna (fill_value ):
@@ -492,6 +487,9 @@ def _validate_fill_value(self, fill_value):
492
487
raise ValueError (f"'fill_value' should be a Period. Got '{ fill_value } '." )
493
488
return fill_value
494
489
490
+ def _values_for_argsort (self ):
491
+ return self ._data
492
+
495
493
# --------------------------------------------------------------------
496
494
497
495
def _time_shift (self , periods , freq = None ):
@@ -582,6 +580,11 @@ def asfreq(self, freq=None, how="E"):
582
580
# ------------------------------------------------------------------
583
581
# Rendering Methods
584
582
583
+ def _formatter (self , boxed = False ):
584
+ if boxed :
585
+ return str
586
+ return "'{}'" .format
587
+
585
588
def _format_native_types (self , na_rep = "NaT" , date_format = None , ** kwargs ):
586
589
"""
587
590
actually format my specific types
@@ -774,9 +777,6 @@ def _check_timedeltalike_freq_compat(self, other):
774
777
775
778
_raise_on_incompatible (self , other )
776
779
777
- def _values_for_argsort (self ):
778
- return self ._data
779
-
780
780
781
781
PeriodArray ._add_comparison_ops ()
782
782
0 commit comments