Closed antoinecarme closed 7 years ago
Fix : use aggreagtes like cumsum, cumprod on shifted series etc
for the previous example , an equivalent rewrite is :
def specific_invert(self, df):
df_orig = df - df.shift(1);
df_orig.iloc[0] = df.iloc[0];
return df_orig;
detect all such errors in all transformations.
We copy the dataset and use a loop over the whole dataset which is too baaaaad :
'''
'''
There is room for improvement.