Port average_yield to pandas