Skip to content

REGR: Different results from DataFrame.apply and str accessor #39188

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 3 commits into from
Jan 16, 2021

Conversation

simonjayhawkins
Copy link
Member

@jbrockmendel despite my comment #38979 (comment), I had no joy trying to locate the caching issue.

@simonjayhawkins simonjayhawkins added Apply Apply, Aggregate, Transform, Map Strings String extension data type and string data labels Jan 15, 2021
@simonjayhawkins simonjayhawkins added this to the 1.2.1 milestone Jan 15, 2021
def test_str_accessor_in_apply_func():
# https://github.com/pandas-dev/pandas/issues/38979
df = pd.DataFrame(zip("abc", "def"))
expected = df.apply(lambda f: "/".join(f), axis=1).str.upper()
Copy link
Member

Choose a reason for hiding this comment

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

might be worth writing this out explicitly?

Copy link
Member Author

Choose a reason for hiding this comment

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

good call.

@jreback jreback merged commit 2c80640 into pandas-dev:master Jan 16, 2021
@jreback
Copy link
Contributor

jreback commented Jan 16, 2021

thanks @simonjayhawkins

@jreback
Copy link
Contributor

jreback commented Jan 16, 2021

@meeseeksdev backport 1.2.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apply Apply, Aggregate, Transform, Map Strings String extension data type and string data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Different results from DataFrame.apply and str accessor
3 participants