Skip to content

searchsorted, repeat broken off from #24024 #24461

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 8 commits into from
Dec 28, 2018
Prev Previous commit
Merge branch 'master' of https://github.com/pandas-dev/pandas into ea…
…data3
  • Loading branch information
jbrockmendel committed Dec 28, 2018
commit 9873c12ecead738f6da0e4963fac36910f218489
9 changes: 6 additions & 3 deletions pandas/core/arrays/timedeltas.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,13 +281,16 @@ def astype(self, dtype, copy=True):
# ----------------------------------------------------------------
# Rendering Methods

def _format_native_types(self):
return self.astype(object)

def _formatter(self, boxed=False):
from pandas.io.formats.format import _get_format_timedelta64
return _get_format_timedelta64(self, box=True)

def _format_native_types(self, na_rep='NaT', date_format=None):
from pandas.io.formats.format import _get_format_timedelta64

formatter = _get_format_timedelta64(self._data, na_rep)
return np.array([formatter(x) for x in self._data])

# ----------------------------------------------------------------
# Arithmetic Methods

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.