You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Panel.apply(func, axis) currently just pulls out .values and passes them to numpy.apply_along_axis -- which makes its utility questionable since all the indices and labels get lost in the process.
Wouldn't it make much more sense to pass DataFrames to the func and then try and recombine the result into either Series, DataFrame or a Panel?
By the way, this behaviour is not in the docs and is inconsistent with how apply works for series/frames, so an unwary user might be in for a surprise.
The text was updated successfully, but these errors were encountered:
Panel.apply(func, axis)
currently just pulls out.values
and passes them tonumpy.apply_along_axis
-- which makes its utility questionable since all the indices and labels get lost in the process.Wouldn't it make much more sense to pass DataFrames to the func and then try and recombine the result into either Series, DataFrame or a Panel?
By the way, this behaviour is not in the docs and is inconsistent with how apply works for series/frames, so an unwary user might be in for a surprise.
The text was updated successfully, but these errors were encountered: