'Pandas : Calculate weeks difference between times where the customer has come

I have the following file :

I'd like to calculate for every customer the average time lag between the moments they've come.

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source