Skip to content

DOC: Capitalize docstring summaries #23886

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 13 commits into from
Nov 27, 2018
8 changes: 5 additions & 3 deletions pandas/core/arrays/timedeltas.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def _add_offset(self, other):
def _add_delta(self, delta):
"""
Add a timedelta-like, Tick, or TimedeltaIndex-like object
to self, yielding a new TimedeltaArray
to self, yielding a new TimedeltaArray.

Parameters
----------
Expand All @@ -256,7 +256,9 @@ def _add_delta(self, delta):
return type(self)(new_values, freq='infer')

def _add_datetime_arraylike(self, other):
"""Add DatetimeArray/Index or ndarray[datetime64] to TimedeltaArray"""
"""
Add DatetimeArray/Index or ndarray[datetime64] to TimedeltaArray.
"""
if isinstance(other, np.ndarray):
# At this point we have already checked that dtype is datetime64
from pandas.core.arrays import DatetimeArrayMixin
Expand Down Expand Up @@ -404,7 +406,7 @@ def total_seconds(self):
def to_pytimedelta(self):
"""
Return Timedelta Array/Index as object ndarray of datetime.timedelta
objects
objects.

Returns
-------
Expand Down
Loading