Skip to content

Commit 3e8415f

Browse files
jbrockmendelroberthdevries
authored andcommitted
use ExtensionIndex._concat_same_dtype (pandas-dev#32232)
1 parent bf23d70 commit 3e8415f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

pandas/core/indexes/datetimelike.py

-8
Original file line numberDiff line numberDiff line change
@@ -552,14 +552,6 @@ def _summary(self, name=None) -> str:
552552
result = result.replace("'", "")
553553
return result
554554

555-
def _concat_same_dtype(self, to_concat, name):
556-
"""
557-
Concatenate to_concat which has the same class.
558-
"""
559-
new_data = type(self._data)._concat_same_type(to_concat)
560-
561-
return self._simple_new(new_data, name=name)
562-
563555
def shift(self, periods=1, freq=None):
564556
"""
565557
Shift index by desired number of time frequency increments.

0 commit comments

Comments
 (0)