stock.hamlet: transform to table