类 DataFrameGroupBy
- java.lang.Object
-
- org.meteoinfo.dataframe.GroupBy
-
- org.meteoinfo.dataframe.DataFrameGroupBy
-
-
构造器概要
构造器 构造器 说明 DataFrameGroupBy(Grouping groups, DataFrame dataFrame)Constructor
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 <V> DataFrameapply(Function<?,?> function)Apply a functionDataFramecount()Compute the sum of the numeric columns for each group.DataFramegetGroup(Object key)Get a group as DataFrameintgroupNumber()Get group numberIterator<Map.Entry<Object,DataFrame>>iterator()DataFramemax()Compute the Maximum of the numeric columns for each group.DataFramemean()Compute the mean of the numeric columns for each group.DataFramemedian()Compute the median of the numeric columns for each group.DataFramemin()Compute the minimum of the numeric columns for each group.DataFramepercentile(double quantile)Compute the percentile of the numeric columns for each group.DataFramestdDev()Compute the standard deviation of the numeric columns for each group.DataFramesum()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
-
-
-
-
方法详细资料
-
groupNumber
public int groupNumber()
Get group number- 返回:
- Group number
-
getGroup
public DataFrame getGroup(Object key) throws InvalidRangeException
Get a group as DataFrame- 参数:
key- The group key- 返回:
- DataFrame
- 抛出:
InvalidRangeException
-
apply
public <V> DataFrame apply(Function<?,?> function)
Apply a function- 类型参数:
V- Data type- 参数:
function- The function- 返回:
- Result DataFrame
-
count
public DataFrame count()
Compute the sum of the numeric columns for each group.
-
sum
public DataFrame sum()
Compute the sum of the numeric columns for each group.
-
mean
public DataFrame mean()
Compute the mean of the numeric columns for each group.
-
min
public DataFrame min()
Compute the minimum of the numeric columns for each group.
-
max
public DataFrame max()
Compute the Maximum of the numeric columns for each group.
-
median
public DataFrame median()
Compute the median of the numeric columns for each group.
-
stdDev
public DataFrame stdDev()
Compute the standard deviation of the numeric columns for each group.
-
percentile
public DataFrame percentile(double quantile)
Compute the percentile of the numeric columns for each group.- 指定者:
percentile在类中GroupBy- 参数:
quantile- Quantile value- 返回:
- the new dataframe
-
-