Subtraction causes intermittent error #12146
Labels
Compat
pandas objects compatability with Numpy or Python functions
Duplicate Report
Duplicate issue or pull request
Windows
Windows OS
I came across an intermittent issue that took some experimentation to track down. I was using a oneliner function for taring dataframes (or series, I've noticed the issue there as well) based on the last 50 rows:
On rare occasions, this gave me an obviously wrong result (whole columns close to or equal to zero). negating the mean series and then adding
will not solve the issue either.
Is there any other way I could/should write the function that will not cause the same issue?
Below is a full reproduction that works on my system.
Requires the file bug.txt containing a subset of my data.
I haven't tried reproducing it using random data, but I guess that should be possible.
The text was updated successfully, but these errors were encountered: