Skip to content
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

Empty DataFrame with PeriodIndex doesn't maintain index type on resample #13212

Closed
max-sixty opened this issue May 18, 2016 · 0 comments
Closed
Labels
Period Period data type Resample resample method
Milestone

Comments

@max-sixty
Copy link
Contributor

ref: #13079 (comment)

In [5]: pd.DataFrame(index=pd.PeriodIndex([],freq='D')).resample('M').mean().index
Out[5]: Index([], dtype='object')
@jreback jreback added Period Period data type Resample resample method labels May 18, 2016
@jreback jreback added this to the 0.18.2 milestone May 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Period Period data type Resample resample method
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants