8000 BUG: Series construction sharing data with DTI by makbigc · Pull Request #22113 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

BUG: Series construction sharing data with DTI #22113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Change data to data._values in checking condition
  • Loading branch information
makbigc committed Nov 18, 2018
commit 388a21a9f652e506c6f505ab99202e94c55c76c4
3 changes: 1 addition & 2 deletions pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,8 @@ def __init__(self, data=None, index=None, dtype=None, name=None,
# astype copies
data = data.astype(dtype)
else:
# need to copy to avoid aliasing issues
# GH21907
if isinstance(data, DatetimeIndex):
if isinstance(data._values, DatetimeIndex):
data = data.copy(deep=True)
else:
data = data._values.copy()
Expand Down
0