docstr: Calculate the sum of all the values in the times series.
  
  :param default: Value to return as a default should the calculation not be possible.
  :return: Float representing the sum or `None`.
docstr_tok: ["Calculate","the","sum","of","all","the","values","in","the","times","series",".",":","param","default",":","Value","to","return","as","a","default","should","the","calculation","not","be","possible",".",":","return",":","Float","representing","the","sum","or","`","None","`","."]
code: def sum(self, default=None):
      """
      Calculate the sum of all the values in the times series.
  
      :param default: Value to return as a default should the calculation not be possible.
      :return: Float representing the sum or `None`.
      """
      return numpy.sum(self.values).item() if self.values else default
  
imports: import numpy
label_desc: Use image node_id 39 for calling the TimeSeries obj's underlying member method code with example usage: obj.sum(default) and returns: unknown