@@ -476,11 +476,6 @@ def to_timestamp(self, freq=None, how="start"):
476476 # --------------------------------------------------------------------
477477 # Array-like / EA-Interface Methods
478478
479- def _formatter (self , boxed = False ):
480- if boxed :
481- return str
482- return "'{}'" .format
483-
484479 @Appender (dtl .DatetimeLikeArrayMixin ._validate_fill_value .__doc__ )
485480 def _validate_fill_value (self , fill_value ):
486481 if isna (fill_value ):
@@ -492,6 +487,9 @@ def _validate_fill_value(self, fill_value):
492487 raise ValueError (f"'fill_value' should be a Period. Got '{ fill_value } '." )
493488 return fill_value
494489
490+ def _values_for_argsort (self ):
491+ return self ._data
492+
495493 # --------------------------------------------------------------------
496494
497495 def _time_shift (self , periods , freq = None ):
@@ -582,6 +580,11 @@ def asfreq(self, freq=None, how="E"):
582580 # ------------------------------------------------------------------
583581 # Rendering Methods
584582
583+ def _formatter (self , boxed = False ):
584+ if boxed :
585+ return str
586+ return "'{}'" .format
587+
585588 def _format_native_types (self , na_rep = "NaT" , date_format = None , ** kwargs ):
586589 """
587590 actually format my specific types
@@ -774,9 +777,6 @@ def _check_timedeltalike_freq_compat(self, other):
774777
775778 _raise_on_incompatible (self , other )
776779
777- def _values_for_argsort (self ):
778- return self ._data
779-
780780
781781PeriodArray ._add_comparison_ops ()
782782
0 commit comments