Generate table from csv