I am trying to introduce myself into predicting with dates and I am having big troubles understanding how to do it.
I have a dataset with customer orders from an e-commerce platform with the usual variables (user_id, gender, amount of purchase, date of purchase, country, etc), and I would like to predict, based on historical data, how many days will take a customer to buy a second time, given that this customer already bought before.
So far I have tried following this tutorial with no luck so far: https://towardsdatascience.com/predicting-next-purchase-day-15fae5548027
Are there any other techniques to predict after how many days a customer makes his second purchase on Python?
Thanks to all in advance!