code: def insert_table(self, label = None, name = None, **kwargs):
          
  
          data_frame = kwargs.pop('data_frame', None)
          if data_frame is None:
              data_frame = kwargs.pop('dataframe', None)
  
          to_hdf_kwargs = kwargs.pop('to_hdf_kwargs', dict())
          if data_frame is not None:
              assert isinstance(data_frame, pandas.DataFrame)
  
          if data_frame is not None:
              if label is None:
                  label = name
              table = Table(label = label, name = name, survey = self)
              assert table.survey.hdf5_file_path is not None
              log.debug("Saving table {} in {}".format(name, table.survey.hdf5_file_path))
              table.save_data_frame(data_frame, **to_hdf_kwargs)
  
          if name not in self.tables:
              self.tables[name] = dict()
          for key, val in kwargs.items():
              self.tables[name][key] = val
docs: Insert a table in the Survey object