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))
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)])
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)])