Skip to content

Incorrect rolling std() results on very large DataFrames #61677

@ZuotaoZhang

Description

@ZuotaoZhang

I apologize that I cannot provide a reproducible example, as this issue was discovered while working with an extremely large DataFrame.

I've observed that when performing rolling(window).std() on a DataFrame with tens of millions of rows, the calculations produce incorrect results. For example:

  • With window=40, the calculated std at index = x is approximately 0.5 in the full DataFrame;

  • However, if I take a subset of the DataFrame (rows x-45 to x) and perform the same rolling(40).std() operation, the result at index x becomes approximately 0.2.

This inconsistency suggests there may be numerical precision issues or algorithmic differences when handling very large DataFrames.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy