Skip to content

BUG: DataFrame.apply with result_type=reduce incorrect index #35777

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 7 commits into from
Aug 22, 2020

Conversation

jbrockmendel
Copy link
Member

@jbrockmendel jbrockmendel commented Aug 17, 2020

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

This may xref #35683 pending discussion there.

@jreback jreback added Apply Apply, Aggregate, Transform, Map Bug labels Aug 19, 2020
@jreback
Copy link
Contributor

jreback commented Aug 19, 2020

looks ok to me, could put on 1.1.2

@simonjayhawkins
Copy link
Member

@jreback is this ready? and does this close #35683

test failures are known pyarrow related

@@ -45,6 +45,7 @@ Bug fixes
- Bug in :meth:`to_timedelta` fails when arg is a :class:`Series` with `Int64` dtype containing null values (:issue:`35574`)
- Bug in ``.groupby(..).rolling(..)`` where passing ``closed`` with column selection would raise a ``ValueError`` (:issue:`35549`)
- Bug in :class:`DataFrame` constructor failing to raise ``ValueError`` in some cases when data and index have mismatched lengths (:issue:`33437`)
- Bug in :meth:`DataFrame.apply` with ``result_type="reduce"`` returning with incorrect index (:issue:`35683`)
Copy link
Member

Choose a reason for hiding this comment

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

can you move to 1.1.2 (after #35825)

Copy link
Member Author

Choose a reason for hiding this comment

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

will do

@simonjayhawkins simonjayhawkins added this to the 1.1.2 milestone Aug 20, 2020
@jbrockmendel
Copy link
Member Author

updated+green

@jreback
Copy link
Contributor

jreback commented Aug 21, 2020

lgtm can you rebase

@jbrockmendel
Copy link
Member Author

rebased+green

@jreback jreback merged commit 82f9a0e into pandas-dev:master Aug 22, 2020
@lumberbot-app
Copy link

lumberbot-app bot commented Aug 22, 2020

Owee, I'm MrMeeseeks, Look at me.

There seem to be a conflict, please backport manually. Here are approximate instructions:

  1. Checkout backport branch and update it.
$ git checkout 1.1.x
$ git pull
  1. Cherry pick the first parent branch of the this PR on top of the older branch:
$ git cherry-pick -m1 82f9a0eaa6b7bdf841ace05f5a23f0e54b63dd32
  1. You will likely have some merge/cherry-pick conflict here, fix them and commit:
$ git commit -am 'Backport PR #35777: BUG: DataFrame.apply with result_type=reduce incorrect index'
  1. Push to a named branch :
git push YOURFORK 1.1.x:auto-backport-of-pr-35777-on-1.1.x
  1. Create a PR against branch 1.1.x, I would have named this PR:

"Backport PR #35777 on branch 1.1.x"

And apply the correct labels and milestones.

Congratulation you did some good work ! Hopefully your backport PR will be tested by the continuous integration and merged soon!

If these instruction are inaccurate, feel free to suggest an improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apply Apply, Aggregate, Transform, Map Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants