CustomerNumber TransactionDate
1 [ 12/3/2019 12/4/2019 12/17/2019 ]
2 [ 1/4/2019 4/4/2019]
3 [ 7/5/2019]
4 [ 7/5/2019 7/7/2019 9/5/2019 9/15/2019 10/15/2019]
Hi , I have This DataFrame TransactionDate(MM/DD/YYYY), I want to calculate the distance between 2 days in each sequence. I want result :
CustomerNumber TransactionDate
1 [ 1 13 ]
2 [ 3 ]
3 [ 0 ]
4 [ 2 60 10 30]
I am a beginner Data Analysis with Python. Pls help me ideal