Hey guys,

i'm supposed to build a logistic model, but i'm not quite sure how to begin.

i have two data sets. One for the customers( all demographics like age, gender) and one with all there transactions( so one customer can be in that data set multiple times, e.g. date of purchase, amount, kind of article,....)

my dependant variable for the logistic model is:
customer will be inactive after 2 years = 1
0 = else

my main problem is that i am not sure how to prepare my final data set.
i was thinking about putting each customer in one row and creat many variables based on their purchases

is that a good approach for my problem?

hope u guys can help me