Esempio n. 1
0
    def mean(self, column):
        """
        Calculate Mean value of DDF Column

        :param column: the column name or index
        :return: the mean value
        """
        col_name = util.parse_column_str(self.colnames, column)
        return float(self._jddf.getVectorMean(col_name))
Esempio n. 2
0
    def mean(self, column):
        """
        Calculate Mean value of DDF Column

        :param column: the column name or index
        :return: the mean value
        """
        col_name = util.parse_column_str(self.colnames, column)
        return float(self._jddf.getVectorMean(col_name))
Esempio n. 3
0
    def var(self, column):
        """
        Compute variance and standard deviation of a DistributedDataFrame's column

        :param column: the column name or index
        :return: a tuple of two elements (variance, standard deviation)
        """
        col_name = util.parse_column_str(self.colnames, column)
        return tuple([float(x) for x in self._jddf.getVectorVariance(col_name)])
Esempio n. 4
0
    def var(self, column):
        """
        Compute variance and standard deviation of a DistributedDataFrame's column

        :param column: the column name or index
        :return: a tuple of two elements (variance, standard deviation)
        """
        col_name = util.parse_column_str(self.colnames, column)
        return tuple(
            [float(x) for x in self._jddf.getVectorVariance(col_name)])