Customer lifetime function using pandas package