I have a pandas datafame like this:
customer_id transaction_date ...................... 0 12341 2011-05-06 1 12341 2011-06-