fix column names when constructing a dataset from a map

column names were mixed up when constructing a dataset from
a map, this has been fixed by introducting a transpose