Fix column names for dataset construction from map

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