code: def add_sample(self, **data):
          
          missing_dimensions = set(data).difference(self.dimensions)
  
          if missing_dimensions:
              raise KeyError('Dimensions not defined in this series: %s'
                             % ', '.join(missing_dimensions))
  
          for dim in self.dimensions:
              getattr(self, dim).append(data.get(dim))
docs: Add a sample to this series.