Skip to content

Commit

Permalink
deep
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAugspurger committed Oct 2, 2018
1 parent 298390f commit 9d17fd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/core/arrays/period.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def _from_ordinals(cls, values, freq=None):
@classmethod
def _from_sequence(cls, scalars, dtype=None, copy=False):
# type: (Sequence[Optional[Period]], Dtype, bool) -> PeriodArray
return cls._complex_new(scalars, dtype=dtype, copy=copy)
return cls._from_periods(scalars, dtype=dtype, copy=copy)

@classmethod
def _from_factorized(cls, values, original):
Expand Down Expand Up @@ -328,7 +328,7 @@ def nbytes(self):
return self._data.nbytes

def copy(self, deep=False):
return self._from_ordinals(self._data.copy(), freq=self.freq)
return self._from_ordinals(self._data.copy(deep=deep), freq=self.freq)

@classmethod
def _concat_same_type(cls, to_concat):
Expand Down

0 comments on commit 9d17fd2

Please sign in to comment.