Skip to content

ENH: apply to generate Panels with returned Frames #3551

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
jreback opened this issue May 9, 2013 · 2 comments
Closed

ENH: apply to generate Panels with returned Frames #3551

jreback opened this issue May 9, 2013 · 2 comments
Assignees
Labels
Enhancement Groupby Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented May 9, 2013

related is #1148 (the groupby)
sse also #3551

useful in a case where the returned arrity is > 1 (right now not implemented)

essentially

In [3]: df = DataFrame(randn(20,2),index=date_range('20130101',periods=20,freq='min'),
                columns=list('AB'))

df.resample('15Min',how='ohlc')
NotImplementedError: 

Easy enough to create manually

In [17]: pd.Panel(dict([ (i,df[i].resample('15Min',how='ohlc')) for i in df.columns ]))
Out[17]: 
<class 'pandas.core.panel.Panel'>
Dimensions: 2 (items) x 2 (major_axis) x 4 (minor_axis)
Items axis: A to B
Major_axis axis: 2013-01-01 00:00:00 to 2013-01-01 00:15:00
Minor_axis axis: open to close

From this question
https://groups.google.com/forum/?fromgroups=#!topic/pystatsmodels/yHSC84koetU

@ghost ghost assigned jreback Sep 24, 2013
@jreback
Copy link
Contributor Author

jreback commented Sep 24, 2013

have a working version....but needs some refining...

@jreback
Copy link
Contributor Author

jreback commented Feb 15, 2014

closed by #1148

@jreback jreback closed this as completed Feb 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Groupby Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

No branches or pull requests

1 participant