-
Notifications
You must be signed in to change notification settings - Fork 589
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG-REPORT] df.shift(period) with negative period returns incorrect result when df has more than 2**20 rows #1607
Comments
I've found something at line 261 of shift.py:
Increasing the 1024**2 to a value greater or equal to the row number produces the correct result. |
mateusglucas
added a commit
to mateusglucas/vaex
that referenced
this issue
Oct 5, 2021
This fixes the issue vaexio#1607
mateusglucas
changed the title
[BUG-REPORT] df.shift(period) with negative period returns incorrect result when df have more than 2**20 rows
[BUG-REPORT] df.shift(period) with negative period returns incorrect result when df has more than 2**20 rows
Oct 5, 2021
I think this issue is caused by the continue in line 162 in shift.py. When a dataframe has more than 1024**2 rows, this line prevents to yield the first chunk. |
mateusglucas
added a commit
to mateusglucas/vaex
that referenced
this issue
Oct 7, 2021
This fixes the issue vaexio#1607
mateusglucas
added a commit
to mateusglucas/vaex
that referenced
this issue
Oct 7, 2021
This fixes the issue vaexio#1607
maartenbreddels
pushed a commit
that referenced
this issue
Oct 11, 2021
* Fix df.shift() with negative period This fixes the issue #1607 * Fix df.shift() with negative period This fixes the issue #1607 * Fix df.shift() with negative period This fixes the issue #1607 * try fix shift with negative period * fix: shift and diff of large datasets - shift() with negative period and diff() now returns the correct value for datasets larger than 1024**2
xdssio
pushed a commit
to xdssio/vaex
that referenced
this issue
Dec 31, 2021
* Fix df.shift() with negative period This fixes the issue vaexio#1607 * Fix df.shift() with negative period This fixes the issue vaexio#1607 * Fix df.shift() with negative period This fixes the issue vaexio#1607 * try fix shift with negative period * fix: shift and diff of large datasets - shift() with negative period and diff() now returns the correct value for datasets larger than 1024**2
Closed via #1608 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When using df.shift(period) with negative period in a dataframe with more than 2**20=1048576 rows, an incorrect result is returned.
Software information
Example
The text was updated successfully, but these errors were encountered: