code: def add_data(self, data):  # add append option later
          
          df = pd.DataFrame(data)
          name, dtype = self.get_singular_and_plural_dtype(self.dtype)
          if name in df.columns:
              df.index = df[name]
          df.index.name = name + " name"
          self.df = df
docs: Add df to a MagicDataFrame using a data list.
  
          Parameters
          ----------
          data : list of dicts
              data list with format [{'key1': 'val1', ...}, {'key1': 'val2', ...}, ... }]
          dtype : str
              MagIC table type