table_from_row_data

gammapy.utils.fits.table_from_row_data(rows, type='qtable', **kwargs)[source]

Helper function to create table objects from row data.

  • Works with quantities.
  • Preserves order of keys if OrderedDicts are used.
Parameters:

rows : list

List of row data (each row a dict or OrderedDict)

type : {‘table’, ‘qtable’}

Type of table to create