Skip to content

Commit f501fda

Browse files
jbrockmendeljreback
authored andcommitted
REF: remove IntervalIndex.copy (#30627)
1 parent a53545e commit f501fda

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

pandas/core/indexes/interval.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -460,17 +460,6 @@ def __reduce__(self):
460460
d.update(self._get_attributes_dict())
461461
return _new_IntervalIndex, (type(self), d), None
462462

463-
@Appender(_index_shared_docs["copy"])
464-
def copy(self, deep=False, name=None):
465-
array = self._data
466-
if deep:
467-
array = array.copy()
468-
attributes = self._get_attributes_dict()
469-
if name is not None:
470-
attributes.update(name=name)
471-
472-
return self._simple_new(array, **attributes)
473-
474463
@Appender(_index_shared_docs["astype"])
475464
def astype(self, dtype, copy=True):
476465
with rewrite_exception("IntervalArray", type(self).__name__):

0 commit comments

Comments
 (0)