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
I'm trying to understand your desired output. You say the rolling sum stops and starts again after a nan appears which, given the last value in the row is 3.0 and not 1.0, appears to mean the first observed nan?
Posted the same question on stackoverflow. A user there said I should open a issue here on the github page, since it is a bug.
I have the following dataframe:
With output:
with dtypes:
df.dtypes
Then the underneath rolling summation is applied:
And the output is as follows:
I notice that the rolling window stops and starts again whenever the
dtype
of the next column is different.I however have a dataframe whereby all columns are of the same
df = df.astype('object')``
object
type.which has output:
My desired output however, stops and starts again after a
nan
value appears. This would look like:I figured there must be a way that NaN values are not considered but also not filled in with values obtained from the rolling window.
Anything would help!
The text was updated successfully, but these errors were encountered: