Questions tagged [lifetimes-python]

'lifetimes' helps to measure customer lifetime value in Python

Tag should be used only for the questions regarding calculation of CLTV.

As emphasized by P. Fader and B. Hardie, understanding and acting on customer lifetime value (CLV) is the most important part of business’s sales efforts. And Lifetimes is a Python library to calculate CLV for you.

Link for official documentation: http://lifetimes.readthedocs.io/en/latest/

18 questions
0
votes
1 answer

Calculate metrics with Lifetimes python package with Spark/Python [object has no attribute 'sort_values']

I am using Lifetimes python package in my spark cluster and trying to calculate some metrics -- Lifetimes package I have been using spark 2.4.2. I have data frame like below sample (original data has 800K records) , containing 'invoce_date' column…
DanG
  • 689
  • 1
  • 16
  • 39
0
votes
1 answer

Lifetimes package: float() argument must be a string or a number, not 'Day'

Getting the following error while using the summary_data_from_transaction_data utility function included within the Lifestyles python package. Using pandas version 0.2 on Google Colab. TypeError: float() argument must be a string or a number, not…
finlytics-hub
  • 164
  • 1
  • 9
0
votes
1 answer

TypeError: float() argument must be a string or a number, not 'Day'

I've been getting the error: TypeError: float() argument must be a string or a number, not 'Day'. Does anyone know how I can resolve this? https://lifetimes.readthedocs.io/en/latest/Quickstart.html from lifetimes.datasets import…
1
2