示例#1
0
 def get_median(x):
     mask = notna(x)
     if not skipna and not mask.all():
         return np.nan
     return algos.median(_values_from_object(x[mask]))
示例#2
0
文件: nanops.py 项目: mficek/pandas
 def get_median(x):
     mask = notna(x)
     if not skipna and not mask.all():
         return np.nan
     return algos.median(_values_from_object(x[mask]))