类 DataFrameGroupBy

  • 所有已实现的接口:
    java.lang.Iterable<java.util.Map.Entry<java.lang.Object,​DataFrame>>

    public class DataFrameGroupBy
    extends GroupBy
    implements java.lang.Iterable<java.util.Map.Entry<java.lang.Object,​DataFrame>>
    作者:
    Yaqiang Wang
    • 字段概要

    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      <V> DataFrame apply​(Function<?,​?> function)
      Apply a function
      DataFrame count()
      Compute the sum of the numeric columns for each group.
      DataFrame getGroup​(java.lang.Object key)
      Get a group as DataFrame
      int groupNumber()
      Get group number
      java.util.Iterator<java.util.Map.Entry<java.lang.Object,​DataFrame>> iterator()  
      DataFrame max()
      Compute the Maximum of the numeric columns for each group.
      DataFrame mean()
      Compute the mean of the numeric columns for each group.
      DataFrame median()
      Compute the median of the numeric columns for each group.
      DataFrame min()
      Compute the minimum of the numeric columns for each group.
      DataFrame percentile​(double quantile)
      Compute the percentile of the numeric columns for each group.
      DataFrame stdDev()
      Compute the standard deviation of the numeric columns for each group.
      DataFrame sum()
      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
    • 构造器详细资料

      • DataFrameGroupBy

        public DataFrameGroupBy​(Grouping groups,
                                DataFrame dataFrame)
        Constructor
        参数:
        groups - The groups
        dataFrame - The data frame
    • 方法详细资料

      • groupNumber

        public int groupNumber()
        Get group number
        返回:
        Group number
      • getGroup

        public DataFrame getGroup​(java.lang.Object key)
                           throws org.meteoinfo.ndarray.InvalidRangeException
        Get a group as DataFrame
        参数:
        key - The group key
        返回:
        DataFrame
        抛出:
        org.meteoinfo.ndarray.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.
        指定者:
        count 在类中 GroupBy
        返回:
        the new data frame
      • sum

        public DataFrame sum()
        Compute the sum of the numeric columns for each group.
        指定者:
        sum 在类中 GroupBy
        返回:
        the new data frame
      • mean

        public DataFrame mean()
        Compute the mean of the numeric columns for each group.
        指定者:
        mean 在类中 GroupBy
        返回:
        the new data frame
      • min

        public DataFrame min()
        Compute the minimum of the numeric columns for each group.
        指定者:
        min 在类中 GroupBy
        返回:
        the new data frame
      • max

        public DataFrame max()
        Compute the Maximum of the numeric columns for each group.
        指定者:
        max 在类中 GroupBy
        返回:
        the new data frame
      • median

        public DataFrame median()
        Compute the median of the numeric columns for each group.
        指定者:
        median 在类中 GroupBy
        返回:
        the new data frame
      • stdDev

        public DataFrame stdDev()
        Compute the standard deviation of the numeric columns for each group.
        指定者:
        stdDev 在类中 GroupBy
        返回:
        the new dataframe
      • percentile

        public DataFrame percentile​(double quantile)
        Compute the percentile of the numeric columns for each group.
        指定者:
        percentile 在类中 GroupBy
        参数:
        quantile - Quantile value
        返回:
        the new dataframe
      • iterator

        public java.util.Iterator<java.util.Map.Entry<java.lang.Object,​DataFrame>> iterator()
        指定者:
        iterator 在接口中 java.lang.Iterable<java.util.Map.Entry<java.lang.Object,​DataFrame>>