Skip to content

Commit 7361df8

Browse files
jbrockmendelWillAyd
authored andcommitted
REF: remove PeriodIndex._coerce_scalar_to_index (#30801)
1 parent 67b56dd commit 7361df8

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pandas/core/indexes/period.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -391,16 +391,6 @@ def _int64index(self):
391391
# ------------------------------------------------------------------------
392392
# Index Methods
393393

394-
def _coerce_scalar_to_index(self, item):
395-
"""
396-
we need to coerce a scalar to a compat for our index type
397-
398-
Parameters
399-
----------
400-
item : scalar item to coerce
401-
"""
402-
return PeriodIndex([item], **self._get_attributes_dict())
403-
404394
def __array__(self, dtype=None):
405395
if is_integer_dtype(dtype):
406396
return self.asi8

0 commit comments

Comments
 (0)