类 DataFrameGroupBy

    • 构造器详细资料

      • DataFrameGroupBy

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

      • groupNumber

        public int groupNumber()
        Get group number
        返回:
        Group number
      • 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