Describe the bug
I recently re-installed this package because I saw, in my experiments, that the position-based attribution model was bugged; this issue was solved in #44. After re-installing the package with the new version 1.0.9 (before I had 1.0.8), when creating a MAM object with random_df=True I get the following error:
import random
import numpy as np
import pandas as pd
from marketing_attribution_models import MAM
random.seed(1337)
attributions = MAM(random_df=True)
Here I get the error posted above (I removed my paths). I suspect that it is due to the fact that, prior to this, the check for the request of a random dataframe was specified before assigning df.copy() to self.original_df.
Describe the bug I recently re-installed this package because I saw, in my experiments, that the position-based attribution model was bugged; this issue was solved in #44. After re-installing the package with the new version 1.0.9 (before I had 1.0.8), when creating a
MAM
object withrandom_df=True
I get the following error:To Reproduce Package versions:
numpy==1.21.4
pandas==1.3.4
marketing-attribution-models==1.0.9
Code used:
Here I get the error posted above (I removed my paths). I suspect that it is due to the fact that, prior to this, the check for the request of a random dataframe was specified before assigning
df.copy()
toself.original_df
.