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

.apply() API consistency fix #15

Closed
wesm opened this issue Oct 12, 2010 · 1 comment
Closed

.apply() API consistency fix #15

wesm opened this issue Oct 12, 2010 · 1 comment

Comments

@wesm
Copy link
Member

wesm commented Oct 12, 2010

DataFrame.apply, Series.applymap, Series.map sort of come across as inconsistent.

def f(x):
    return x.apply(lambda y: 2*y)
def g(x):
    return x.applymap(lambda y: 2*y)

a = TimeSeries([1,2],[1,2])
b = DataMatrix({'a':a})

f(b)
g(b)
f(a)    
g(a)
@wesm
Copy link
Member Author

wesm commented Dec 11, 2010

added apply and applymap functions to Series for now. Slightly unsatisfying.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant