Skip to content

BUG: apply() fails on some value types #34812

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
Jun 19, 2020
Merged

Conversation

Veronur
Copy link
Contributor

@Veronur Veronur commented Jun 15, 2020

@MarcoGorelli
Copy link
Member

Thanks @Veronur - can you add a test to show how this fixes the linked issue?

@Veronur
Copy link
Contributor Author

Veronur commented Jun 16, 2020

Sure it will be done but i think ill need to look into what made it fail the pandas-dev.pandas and the pandas-dev.pandas (Windows py37_np18) first

@jreback jreback added Apply Apply, Aggregate, Transform, Map Bug labels Jun 16, 2020
@jreback jreback changed the title Fixes issue #34529 BUG: apply() fails on some value types Jun 16, 2020
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.

you need to add the test in question first and make sure it fails

@Veronur
Copy link
Contributor Author

Veronur commented Jun 16, 2020

I am working on the test right now, i linked this first pull request just to start the conversaion on on whether looking at this table the change makes sense.
photh

@pep8speaks
Copy link

pep8speaks commented Jun 16, 2020

Hello @Veronur! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-06-18 00:05:00 UTC

@Veronur
Copy link
Contributor Author

Veronur commented Jun 16, 2020

Alright so i made the test for the issue and i fail before the change and stops failing after. If there is anything else to be done, please let me know. If not let me know and i will make my last pull request with the test and the change

@Veronur
Copy link
Contributor Author

Veronur commented Jun 16, 2020

Rebased the all commits into one so it becomes easier to look into them

@TomAugspurger
Copy link
Contributor

Merging master should fix CI. Can you add a release note to whatsnew/v1.1.10.rst?

@Veronur Veronur force-pushed the issue-#34529 branch 2 times, most recently from 59a5a95 to fb7ad08 Compare June 17, 2020 22:48
@@ -1032,6 +1032,7 @@ ExtensionArray
- Fixed bug where :meth:`StringArray.memory_usage` was not implemented (:issue:`33963`)
- Fixed bug where :meth:`DataFrameGroupBy` would ignore the ``min_count`` argument for aggregations on nullable boolean dtypes (:issue:`34051`)
- Fixed bug that `DataFrame(columns=.., dtype='string')` would fail (:issue:`27953`, :issue:`33623`)
- Fixed regression where :meth:`DataFrame.apply` would raise ``ValueError`` for elements whth ``S`` dtype (:issue:`34529`)
Copy link
Contributor

Choose a reason for hiding this comment

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

this doesn't here, put in reshaping section

correction and test for issue-pandas-dev#34529

made the formating changes

fixing tests on issue-pandas-dev#34529

add whats new entry on issue-pandas-dev#34539

add whats new entry correction issue-pandas-dev#34539

whats new correction issue-pandas-dev#34539
@Veronur
Copy link
Contributor Author

Veronur commented Jun 19, 2020

is there anything else that needs to be done here?

@jreback jreback added this to the 1.1 milestone Jun 19, 2020
@jreback jreback merged commit aaa9cd0 into pandas-dev:master Jun 19, 2020
@jreback
Copy link
Contributor

jreback commented Jun 19, 2020

thanks @Veronur

wesbarnett pushed a commit to wesbarnett/pandas that referenced this pull request Jun 20, 2020
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.

BUG: apply() fails on some value types
5 participants