def max(self, default=None):
return numpy.asscalar(numpy.max(self.values)) if self.values else default<EOL>
Calculate the maximum value over the time series.

:param default: Value to return as a default should the calculation not be possible.
:return: Float representing the maximum value or `None`.