You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When performing groupby or resample summations on a boolean series, the output dtype will be bool if all of the sums are 0 or 1, and float if any of the sums is greater than 1. I expected the dtype of the output series to be dependent only on the dtype of the input series, not the values of the input series.
The text was updated successfully, but these errors were encountered:
Duplicate of #7001 - PR to fix would be welcome. I'm guessing we try to cast back to the original dtype after the sum - so if there are only 1s and 0s, it casts, otherwise doesn't - agree it should always be numeric.
When performing groupby or resample summations on a boolean series, the output dtype will be
bool
if all of the sums are0
or1
, andfloat
if any of the sums is greater than1
. I expected the dtype of the output series to be dependent only on the dtype of the input series, not the values of the input series.The text was updated successfully, but these errors were encountered: