@staticmethod
def get_stats_from_ping_data(stats):
    """
        >>> data = ['statistics', '---\\n5', 'packets', 'transmitted,', '5']
        >>> data += ['received,', '0%', 'packet', 'loss,', 'time', '4001ms\\nrtt']
        >>> data += ['min/avg/max/mdev','=', '79.832/86.519/88.649/3.367', 'ms']
        >>> Pinger.get_stats_from_ping_data(data)
        [79.832, 86.519, 88.649, 3.367, 5.0]

        Return stats from ping output data.
        :param stats:
        :return:
        """
    out = []
    for i, x in enumerate(reversed(stats[:])):
        data = str(x).split('/')
        for d in data:
            try:
                out.append(float(d))
            except ValueError:
                continue
    return out
