Skip to content
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

BUG: Series.__setitem__ with datetimetz data #25331

Closed

Conversation

mroeschke
Copy link
Member

@mroeschke mroeschke added Bug Indexing Related to indexing on series/frames, not to indexes themselves Timezones Timezone data dtype labels Feb 15, 2019

def test_setitem_str_with_datetimetz():
# GH 12862
result = pd.Series()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: use Series directly instead of pd.Series (you do so in your first test)

Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls rebase as well

@@ -1047,7 +1047,11 @@ def setitem(key, value):
self._maybe_update_cacher()

def _set_with_engine(self, key, value):
values = self._values
if is_extension_array_dtype(self):
# GH 20441: set_value expects and ndarray, not ExtensionArray
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and -> an, but can't we just do: .to_numpy() ?

@jreback jreback added this to the 0.25.0 milestone Feb 16, 2019
@mroeschke mroeschke removed this from the 0.25.0 milestone Feb 19, 2019
@mroeschke
Copy link
Member Author

Going to postpone this. The fix is more complicated than I originally thought.

@mroeschke mroeschke closed this Feb 19, 2019
@mroeschke mroeschke deleted the timezone_series_setitem branch February 19, 2019 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Indexing Related to indexing on series/frames, not to indexes themselves Timezones Timezone data dtype
Projects
None yet
3 participants