Skip to content

Panel apply to subframes in groupby #1148

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

Closed
wesm opened this issue Apr 28, 2012 · 1 comment · Fixed by #5850
Closed

Panel apply to subframes in groupby #1148

wesm opened this issue Apr 28, 2012 · 1 comment · Fixed by #5850

Comments

@wesm
Copy link
Member

wesm commented Apr 28, 2012

see also #5556

Right now it's either aggregate whole chunks or 1D arrays, maybe should allow frame-by-frame

@jreback
Copy link
Contributor

jreback commented May 4, 2012

Briefly tried to use panel groupby

p is items x major x minor

def func(x):

x is the name of the group, shouldn't this be a slice of the panel?

p.groupby(function, axis = 'items')

I did a simple version for groupby on items and works but prob inefficient

Panel(dict([ (i,p[i].groupby(func)) for i in p.items ])).reindex_like(p)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants