Skip to content

Commit

Permalink
Add note
Browse files Browse the repository at this point in the history
[ci skip]

***NO CI***
  • Loading branch information
TomAugspurger committed Nov 12, 2018
1 parent fa8934a commit e903550
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pandas/core/indexes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,9 @@ def _simple_new(cls, values, name=None, dtype=None, **kwargs):
**kwargs)._ndarray_values

if isinstance(values, (ABCSeries, cls)):
# Index._data must always be an ndarray.
# This is no-copy for when _values is an ndarray,
# which should be always at this point.
values = np.asarray(values._values)

result = object.__new__(cls)
Expand Down

0 comments on commit e903550

Please sign in to comment.