rx/core/observablebase.py
def average(self, key_mapper=None) -> 'ObservableBase':
        """Computes the average of an observable sequence of values that
        are in the sequence or obtained by invoking a transform function
        on each element of the input sequence if present.

        Examples:
            >>> res = source.average()
            >>> res = source.average(lambda x: x.value)

        Args:
            key_mapper: A transform function to apply to each element.

        Returns:
            An observable sequence containing a single element with
            the average of the sequence of values.
        """
        from ..operators.observable.average import average
        return average(self, key_mapper)
Computes the average of an observable sequence of values that
        are in the sequence or obtained by invoking a transform function
        on each element of the input sequence if present.

        Examples:
            >>> res = source.average()
            >>> res = source.average(lambda x: x.value)

        Args:
            key_mapper: A transform function to apply to each element.

        Returns:
            An observable sequence containing a single element with
            the average of the sequence of values.
        
Computes the average of an observable sequence of values that
are in the sequence or obtained by invoking a transform function
on each element of the input sequence if present.
Computes the average of an observable sequence of values that are in the sequence or obtained by invoking a transform function on each element of the input sequence if present .
def average(self, key_mapper=None) -> 'ObservableBase':
        from ..operators.observable.average import average
        return average(self, key_mapper)
def average ( self , key_mapper = None ) -> 'ObservableBase' : from . . operators . observable . average import average return average ( self , key_mapper )
Computes the average of an observable sequence of values that
are in the sequence or obtained by invoking a transform function
on each element of the input sequence if present.
Computes the average of an observable sequence of values that are in the sequence or obtained by invoking a transform function on each element of the input sequence if present .
"""Computes the average of an observable sequence of values that
        are in the sequence or obtained by invoking a transform function
        on each element of the input sequence if present.

        Examples:
            >>> res = source.average()
            >>> res = source.average(lambda x: x.value)

        Args:
            key_mapper: A transform function to apply to each element.

        Returns:
            An observable sequence containing a single element with
            the average of the sequence of values.
        """
An observable sequence containing a single element with
the average of the sequence of values.
An observable sequence containing a single element with the average of the sequence of values .
self
key_mapper
A transform function to apply to each element.
A transform function to apply to each element .
examples
>>> res = source.average()
>>> res = source.average(lambda x: x.value)
>>> res = source . average () >>> res = source . average ( lambda x : x . value )