Add num_to_keep parameter to sort_by_earnings_yield