Class DataFrameGroupBy



  • public class DataFrameGroupBy
    extends GroupBy
    • Field Summary

      • Fields inherited from class org.meteoinfo.data.dataframe.GroupBy

        groups
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <V> DataFrame apply​(Function<?,?> function)  
      DataFrame count​()
      Compute the sum of the numeric columns for each group.
      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 sum​()
      Compute the sum of the numeric columns for each group.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DataFrameGroupBy

        public DataFrameGroupBy​(Grouping groups,
                                DataFrame dataFrame)
        Constructor
        Parameters:
        groups - The groups
        dataFrame - The data frame
    • Method Detail

      • count

        public DataFrame count​()
        Compute the sum of the numeric columns for each group.
        Specified by:
        count in class GroupBy
        Returns:
        the new data frame
      • sum

        public DataFrame sum​()
        Compute the sum of the numeric columns for each group.
        Specified by:
        sum in class GroupBy
        Returns:
        the new data frame
      • mean

        public DataFrame mean​()
        Compute the mean of the numeric columns for each group.
        Specified by:
        mean in class GroupBy
        Returns:
        the new data frame
      • min

        public DataFrame min​()
        Compute the minimum of the numeric columns for each group.
        Specified by:
        min in class GroupBy
        Returns:
        the new data frame
      • max

        public DataFrame max​()
        Compute the Maximum of the numeric columns for each group.
        Specified by:
        max in class GroupBy
        Returns:
        the new data frame
      • median

        public DataFrame median​()
        Compute the median of the numeric columns for each group.
        Specified by:
        median in class GroupBy
        Returns:
        the new data frame