Closed SSMK-wq closed 1 year ago
Hey @SSMK-wq,
Do you mind sharing what the resolution was for this issue? I'll be refactoring this function in a future btyd release, and it seems like a validation check in the right place could clean up this error message considerably.
My customer id though unique was in string format. So, i did astype(int64) and it worked fine.
On Mon, 31 Oct 2022, 23:02 Colt Allen, @.***> wrote:
Hey @SSMK-wq https://github.com/SSMK-wq,
Do you mind sharing what the resolution was for this issue? I'll be refactoring this function in a future btyd https://github.com/ColtAllen/btyd release, and it seems like a validation check in the right place could clean up this error message considerably.
— Reply to this email directly, view it on GitHub https://github.com/CamDavidsonPilon/lifetimes/issues/436#issuecomment-1297223885, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHKM54PLYO3PK6IFAUXGZVLWF7NR7ANCNFSM6AAAAAARS3U3IA . You are receiving this because you were mentioned.Message ID: @.***>
Thanks; the functions as written should've been able to accept a string type for the Customer ID column. I wonder if that column was actually a Pandas Object.
Yes. It was a pandas object
On Tue, 1 Nov 2022, 02:38 Colt Allen, @.***> wrote:
Thanks; the functions as written should've been able to accept a string type for the Customer ID column. I wonder if that column was actually a Pandas Object.
— Reply to this email directly, view it on GitHub https://github.com/CamDavidsonPilon/lifetimes/issues/436#issuecomment-1297511157, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHKM54OYNBZ5TALOQDTIUELWGAG2XANCNFSM6AAAAAARS3U3IA . You are receiving this because you were mentioned.Message ID: @.***>
I used the lifetimes utils function to get the summary data from my dataset but I got the below error
My code looked like below
clv = lifetimes.utils.summary_data_from_transaction_data(df_new,'unique_key','Resale Date','Revenue Resale EUR',observation_period_end='2022-05-22')