Skip to content

DOC: Add example to pandas.DataFrame.applymap #11826

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 1 commit into from
Dec 23, 2015
Merged

DOC: Add example to pandas.DataFrame.applymap #11826

merged 1 commit into from
Dec 23, 2015

Conversation

proinsias
Copy link
Contributor

No description provided.

@max-sixty
Copy link
Contributor

Examples are great - how would you feel about having one that distinguishes applymap? df.apply(abs) gives the same result there

@jorisvandenbossche
Copy link
Member

Further, abs is actually not a really good example as a functions for which you need applymap, as abs(df) will also work due to delegation to __abs__

@jorisvandenbossche jorisvandenbossche added this to the 0.18.0 milestone Dec 12, 2015
@proinsias proinsias closed this Dec 15, 2015
@proinsias proinsias deleted the pandas.core.frame branch December 15, 2015 19:51
@proinsias proinsias restored the pandas.core.frame branch December 15, 2015 19:52
@proinsias proinsias reopened this Dec 15, 2015
@proinsias
Copy link
Contributor Author

I've updated this to use a lambda function that operates element-wise.

@max-sixty
Copy link
Contributor

👍

jorisvandenbossche added a commit that referenced this pull request Dec 23, 2015
DOC: Add example to pandas.DataFrame.applymap
@jorisvandenbossche jorisvandenbossche merged commit 2ac4015 into pandas-dev:master Dec 23, 2015
@jorisvandenbossche
Copy link
Member

Thanks!

@proinsias proinsias deleted the pandas.core.frame branch December 23, 2015 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants