Skip to content

Commit 0e9f783

Browse files
DOC: fix docstring of DatetimeIndex.delete
1 parent 5adb0b6 commit 0e9f783

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pandas/tseries/index.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1603,12 +1603,14 @@ def insert(self, loc, item):
16031603

16041604
def delete(self, loc):
16051605
"""
1606-
Make new DatetimeIndex with passed location deleted
1607-
Returns
1606+
Make a new DatetimeIndex with passed location(s) deleted.
16081607
1608+
Parameters
1609+
----------
16091610
loc: int, slice or array of ints
16101611
Indicate which sub-arrays to remove.
16111612
1613+
Returns
16121614
-------
16131615
new_index : DatetimeIndex
16141616
"""

0 commit comments

Comments
 (0)