[BUG]: Rolling.sum() calculated wrong values when axis is one and dtypes are mixed by phofl · Pull Request #36458 · pandas-dev/pandas (original) (raw)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add another test which has mixed types with say a string in one column (and also try with datetimes we don't want to coerce), so this raises I think we are going to have an odd error message and may want to catch / re-raise if that is the case

actually i think we need to explicity get outnumeric dtypes (e.g. do a select_dtypes(include=[['integer', 'float']])

otherwise we might include timedelta for example (and we don't know how to coerce back I think)