Closed andreasnoack closed 6 years ago
btw, you can do map(i->i.City, rows(hitemps))
or map(i->i.City, keys(hitemps))
, equivalently:
keys(hitemps, :City)
column(hitemps, :City)
columns(hitemps, :City)
rows(hitemps, :City)
All give the same result.
Thanks. That was a lot of ways to do the same thing but I can see how each of the functions can be useful.
I can see that it is super useful to only iterate the data column when there is only one data column and it is scalar, but as soon as there are multiple data columns, it seems almost more useful to have the rows
behavior be the default... Probably just a trade-off which use-case one wants to prioritize...
Makes sense to me too. The array representation is most useful when there is a single vector of scalar for data... But having a different default behavior for Columns
seems worse off than the present situation.
I guess the rule is that you can only extract data columns and not index columns but it would be great if this could give a better error than
ERROR: type TypeofBottom has no field parameters