pandas icon indicating copy to clipboard operation
pandas copied to clipboard

DOC: Add note on inference behavior of apply with result_type='expand'

Open pinkgradient opened this issue 6 months ago • 3 comments

Closes #61057

  • This PR adds a docstring note about the inference behavior of apply with result_type='expand' when function returns NaN-like values, as discussed in issue #61057.
  • Added docstring to distinguish behavior for 'apply' method.

pinkgradient avatar Jun 04 '25 05:06 pinkgradient

pre-commit.ci autofix

pinkgradient avatar Jun 04 '25 05:06 pinkgradient

pre-commit.ci autofix

pinkgradient avatar Jun 04 '25 05:06 pinkgradient

Personally I think we should deprecate that parameter. Since I guess you're using it, do you mind sharing an example of how you are using it?

You'll have to remove the blank lines for the PR. Also, did you check if what you are detailing is only affected by expand, or also by reduce?

datapythonista avatar Jun 04 '25 11:06 datapythonista

This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this.

github-actions[bot] avatar Jul 07 '25 00:07 github-actions[bot]

Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen.

mroeschke avatar Jul 15 '25 17:07 mroeschke