Skip to content

.apply() API consistency fix #15

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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.

stijnvanhoey added a commit to stijnvanhoey/pandas that referenced this issue Dec 23, 2019
This issue was closed.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant