类 SeriesGroupBy

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

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

    • 方法概要

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

      • SeriesGroupBy

        public SeriesGroupBy​(Grouping groups,
                             Series series)
        Constructor
        参数:
        groups - The groups
        series - The series
    • 方法详细资料

      • getGroup

        public Series 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> 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.
        指定者:
        count 在类中 GroupBy
        返回:
        the new series
      • sum

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

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

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

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

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

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

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

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