Skip to content

Commit 2109eae

Browse files
committed
added doc strings
1 parent 4b1bf4b commit 2109eae

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pandas/core/indexes/datetimes.py

+1
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ def _convert_for_op(self, value):
464464
return _to_M8(value)
465465
raise ValueError("Passed item and index have different timezone")
466466

467+
@Appender(Index.difference.__doc__)
467468
def difference(self, other, sort=None):
468469
new_idx = super().difference(other, sort=sort)
469470
new_idx.freq = None

pandas/core/indexes/timedeltas.py

+1
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ def intersection(self, other, sort=False):
406406
"""
407407
return super().intersection(other, sort=sort)
408408

409+
@Appender(Index.difference.__doc__)
409410
def difference(self, other, sort=None):
410411
new_idx = super().difference(other, sort=sort)
411412
new_idx.freq = None

0 commit comments

Comments
 (0)