类 SeriesGroupBy
- java.lang.Object
-
- org.meteoinfo.dataframe.GroupBy
-
- org.meteoinfo.dataframe.SeriesGroupBy
-
-
构造器概要
构造器 构造器 说明 SeriesGroupBy(Grouping groups, Series series)Constructor
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 <V> Seriesapply(Function<?,?> function)Apply a functionSeriescount()Compute the sum of the numeric columns for each group.SeriesgetGroup(Object key)Get a group as DataFrameIterator<Map.Entry<Object,Series>>iterator()Seriesmax()Compute the Maximum of the numeric columns for each group.Seriesmean()Compute the mean of the numeric columns for each group.Seriesmedian()Compute the median of the numeric columns for each group.Seriesmin()Compute the minimum of the numeric columns for each group.Seriespercentile(double quantile)Compute the percentile of the numeric columns for each group.SeriesstdDev()Compute the standard deviation of the numeric columns for each group.Seriessum()Compute the sum of the numeric columns for each group.-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 java.lang.Iterable
forEach, spliterator
-
-
-
-
方法详细资料
-
getGroup
public Series getGroup(Object key) throws InvalidRangeException
Get a group as DataFrame- 参数:
key- The group key- 返回:
- DataFrame
- 抛出:
InvalidRangeException
-
apply
public <V> Series apply(Function<?,?> function)
Apply a function- 类型参数:
V- Data type- 参数:
function- The function- 返回:
- Series
-
count
public Series count()
Compute the sum of the numeric columns for each group.
-
sum
public Series sum()
Compute the sum of the numeric columns for each group.
-
mean
public Series mean()
Compute the mean of the numeric columns for each group.
-
min
public Series min()
Compute the minimum of the numeric columns for each group.
-
max
public Series max()
Compute the Maximum of the numeric columns for each group.
-
median
public Series median()
Compute the median of the numeric columns for each group.
-
stdDev
public Series stdDev()
Compute the standard deviation of the numeric columns for each group.
-
percentile
public Series percentile(double quantile)
Compute the percentile of the numeric columns for each group.- 指定者:
percentile在类中GroupBy- 参数:
quantile- Quantile value- 返回:
- the new series
-
-