From 7664ec916e9e1ccac9c295a88957eef7d3c46d87 Mon Sep 17 00:00:00 2001 From: Brock Mendel Date: Tue, 7 Jan 2020 16:02:17 -0800 Subject: [PATCH] REF: remove PeriodIndex._coerce_scalar_to_index --- pandas/core/indexes/period.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py index 1fed0201f7b2b..e805c2512dc3b 100644 --- a/pandas/core/indexes/period.py +++ b/pandas/core/indexes/period.py @@ -391,16 +391,6 @@ def _int64index(self): # ------------------------------------------------------------------------ # Index Methods - def _coerce_scalar_to_index(self, item): - """ - we need to coerce a scalar to a compat for our index type - - Parameters - ---------- - item : scalar item to coerce - """ - return PeriodIndex([item], **self._get_attributes_dict()) - def __array__(self, dtype=None): if is_integer_dtype(dtype): return self.asi8