Skip to content

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

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Jan 16, 2021
jreback pushed a commit that referenced this pull request Jan 16, 2021
…str accessor (#39199)

Co-authored-by: Simon Hawkins <simonjayhawkins@gmail.com>
@simonjayhawkins simonjayhawkins deleted the str-accessor-regression branch January 16, 2021 10:02
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