Exemplo n.º 1
0
 def describe(self):
     df = OrderedDict([("names", ["mean", "stdev", "count", "min", "max"])])
     if stats.is_numeric(self.x)==False:
         return
     df['value'] = [stats.mean(self.x), stats.stdev(self.x),
             len([i for i in self if i is not None]),
             min(self.x), max(self.x)]
     return DataFrame(df)
Exemplo n.º 2
0
 def describe(self):
     df = OrderedDict([("names", ["mean", "stdev", "count", "min", "max"])])
     for k, v in self:
         if stats.is_numeric(v.x)==False:
             continue
         df[k] = [
             stats.mean(v.x),
             stats.stdev(v.x),
             len([i for i in v if i is not None]),
             v.min(),
             v.max()
         ]
     return DataFrame(df)