-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Series upconversion in apply #2316
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
Comments
What does s[0] print for you? Series output will abbreviated. |
updated....s[0] just a float |
I'm getting something different, what commit of pandas are you on?
|
The issue is that |
using 0.9.1 release...seems to work fine.... my original motivation was to do an apply operation and have it (possibily) upconverted... should these do essentially the same thing? (or is this just asking for trouble?) essentially apply is a concat operation anyhow.
|
Let me know if anyone disagrees with this API change. Seems somewhat reasonable:
|
you are awesome! thanks |
See the below examples. My use case started out as trying to use apply on a Series (and having the applied function return a Series) in order to get a DataFrame - but seeing some inconsistencies of how the returned function is accumulated (obviously can do this by iterating over the series in a list comprehension and using concat too).
base case
this looks like it is doing some sort of conversion
e.g. using the Series values to construct the applied series
This is a bit inconsistent with the prior example;
Should this be upconverting to a DataFrame?
The text was updated successfully, but these errors were encountered: