def exclude(self, *fields):
        """
        Projection columns which not included in the fields

        :param fields: field names
        :return: new collection
        :rtype: :class:`odps.df.expr.expression.CollectionExpr`
        """

        if len(fields) == 1 and isinstance(fields[0], list):
            exclude_fields = fields[0]
        else:
            exclude_fields = list(fields)

        exclude_fields = [self._defunc(it) for it in exclude_fields]
        exclude_fields = [field.name if not isinstance(field, six.string_types) else field
                          for field in exclude_fields]

        fields = [name for name in self._schema.names
                  if name not in exclude_fields]

        return self._project(fields)
def exclude ( self , * fields ) : if len ( fields ) == 1 and isinstance ( fields [ 0 ] , list ) : exclude_fields = fields [ 0 ] else : exclude_fields = list ( fields ) exclude_fields = [ self . _defunc ( it ) for it in exclude_fields ] exclude_fields = [ field . name if not isinstance ( field , six . string_types ) else field for field in exclude_fields ] fields = [ name for name in self . _schema . names if name not in exclude_fields ] return self . _project ( fields )
Projection columns which not included in the fields

        :param fields: field names
        :return: new collection
        :rtype: :class:`odps.df.expr.expression.CollectionExpr`