We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In this snippet:
import pandas as pd import numpy as np print 'numpy', np.__version__ print 'pandas', pd.__version__ df = pd.DataFrame({'x': [],'range': np.arange(0)}) t = df.sort('x').groupby('x').first() print 'types', df['range'].dtype, t['range'].dtype
it is shown that after the groupby, an empty "int" column becomes an empty "float". This is the output on my machine:
numpy 1.6.2 pandas 0.13.1 types int32 float64
The text was updated successfully, but these errors were encountered:
this actually is very subtle....thanks for the report
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
In this snippet:
it is shown that after the groupby, an empty "int" column becomes an empty "float". This is the output on my machine:
The text was updated successfully, but these errors were encountered: