Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions pandas/core/indexes/period.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down