Skip to content

BUG: iloc setitem with 3d indexer not raising #31813

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

Merged
merged 2 commits into from
Feb 9, 2020

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

also get the exceptions/messages in test_setitem_ndarray_3d to be maximally-specific

@jreback jreback added the Indexing Related to indexing on series/frames, not to indexes themselves label Feb 9, 2020
@jreback jreback added this to the 1.1 milestone Feb 9, 2020
@@ -1678,6 +1678,10 @@ def _do_convert_missing(self, data: DataFrame, convert_missing: bool) -> DataFra
missing_value = StataMissingValue(um)

loc = missing_loc[umissing_loc == j]
if loc.ndim == 2 and loc.shape[1] == 1:
Copy link
Contributor

Choose a reason for hiding this comment

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

can we make a note to refactor this; this seems a bit fishy; cc @bashtage

@jreback jreback merged commit 74dad82 into pandas-dev:master Feb 9, 2020
@jreback
Copy link
Contributor

jreback commented Feb 9, 2020

thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the bug-iloc-setitem-3d branch February 9, 2020 17:24
bashtage added a commit to bashtage/pandas that referenced this pull request Feb 10, 2020
Use nonzero to preserve 1d of Series

xref pandas-dev#31813
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants