Skip to content

BUG: window functions count should be an integer dtype #12538

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 Mar 6, 2016 · 1 comment
Closed

BUG: window functions count should be an integer dtype #12538

jreback opened this issue Mar 6, 2016 · 1 comment
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Mar 6, 2016

In [1]: df = DataFrame({'A' : pd.date_range('20130101',periods=3),'B' : range(3)})

In [2]: df.rolling(window=2).count()
Out[2]: 
     A    B
0  1.0  1.0
1  2.0  2.0
2  2.0  2.0

In [3]: df.rolling(window=2).count().dtypes
Out[3]: 
A    float64
B    float64
dtype: object
@jreback
Copy link
Contributor Author

jreback commented Mar 7, 2016

closing in favor of more descriptive #12541

@jreback jreback closed this as completed Mar 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions
Projects
None yet
Development

No branches or pull requests

1 participant