Added 'normalizeDataset' calls to table_data to hanndle cases where the dataframe has exactly one row.