Is it possible to enforce row names of a data table to an enum?

Or create an enum from row names of data table?

DT rows must be Names. But nothing stops you from moving the DT into an Enum | DataStruct map. Especially handy should you wish to modify and save data.

  • if the dataset is small, you might as well define it as a map to start with, skipping the DT if at all feasible
  • if the dataset is large, using enumerators will rather quickly become a royal pain in the **** neck