예제 #1
0
파일: series.py 프로젝트: willgrass/pandas
 def median(self):
     """
     Compute median value of non-null values
     """
     arr = self.values
     arr = arr[notnull(arr)]
     return tseries.median(arr)
예제 #2
0
파일: series.py 프로젝트: willgrass/pandas
 def median(self):
     """
     Compute median value of non-null values
     """
     arr = self.values
     arr = arr[notnull(arr)]
     return tseries.median(arr)
예제 #3
0
파일: series.py 프로젝트: jlsandell/pandas
    def median(self):
        """
        Compute median value of non-null values
        """
        arr = self.values

        if arr.dtype != np.float_:
            arr = arr.astype(float)

        arr = arr[notnull(arr)]
        return tseries.median(arr)
예제 #4
0
파일: series.py 프로젝트: choketsu/pandas
    def median(self):
        """
        Compute median value of non-null values
        """
        arr = self.values

        if arr.dtype != np.float_:
            arr = arr.astype(float)

        arr = arr[notnull(arr)]
        return tseries.median(arr)