Description
Let's say I want to calculate something on a column and its shifted values (Lags or Leads). The basic one can be df.A - 2*df.A_shifted. It can easily be done in pandas: df.A - df.A.shift(1). However, VAEX throws an exception saying AssertionError:. Below is the code I used:
Initially, I thought vaex fails to do operation on nan values so I used fill_value=0 to make sure nothing fancy is required. Certainly something is wrong because I can do calc using both A and B columns.
Description Let's say I want to calculate something on a column and its shifted values (Lags or Leads). The basic one can be df.A - 2*df.A_shifted. It can easily be done in pandas:
df.A - df.A.shift(1)
. However, VAEX throws an exception sayingAssertionError:
. Below is the code I used:Pandas:
Vaex:
Initially, I thought vaex fails to do operation on
nan
values so I usedfill_value=0
to make sure nothing fancy is required. Certainly something is wrong because I can do calc using bothA
andB
columns.Software information
Vaex version (
import vaex; vaex.__version__)
:Vaex was installed via: pip / conda-forge / from source :
via pip
OS: Windows 11 (Python 3.8)