Skip to content
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

Element-wise map does not produce DataFrame in apply #432

Closed
wesm opened this issue Dec 2, 2011 · 0 comments
Closed

Element-wise map does not produce DataFrame in apply #432

wesm opened this issue Dec 2, 2011 · 0 comments
Labels
Milestone

Comments

@wesm
Copy link
Member

wesm commented Dec 2, 2011

compareOp = lambda s1, s2 : map(lambda x, y: x if y is None else (y if x is None else min(x, y)), s1, s2)

print m2.apply(lambda x : compareOp(x, s))
wesm added a commit that referenced this issue Dec 2, 2011
@wesm wesm closed this as completed Dec 2, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant