''

def get_facet_groups(self, group):

    if (self.facets is None):
        (yield (self.subplots, group))
        return
    col_variable = self.facets.colvar
    row_variable = self.facets.rowvar
    if (self.facets.is_wrap == True):
        groups = [row_variable, col_variable]
        groups = [g for g in groups if g]
        for (i, (name, subgroup)) in enumerate(group.groupby(groups)):
            (row, col) = self.facets.facet_map[name]
            if (len(self.subplots.shape) == 1):
                ax = self.subplots[i]
            else:
                ax = self.get_subplot(row, col)
            font = {u'fontsize': 10}
            (yield (ax, subgroup))
        for item in self.facets.generate_subplot_index(self.data, self.facets.rowvar, self.facets.colvar):
            (row, col) = self.facets.facet_map[item]
            ax = self.get_subplot(row, col)
            if isinstance(item, tuple):
                title = u',    '.join([str(i) for i in item])
            else:
                title = str(item)
            ax.set_title(title, fontdict=font)
        for i in range(self.facets.ndim, (self.facets.nrow * self.facets.ncol)):
            row = (i / self.facets.ncol)
            col = (i % self.facets.ncol)
            ax = self.get_subplot(row, col)
            try:
                self.fig.delaxes(ax)
            except:
                pass
    elif (col_variable and row_variable):
        for (_, (colname, subgroup)) in enumerate(group.groupby(col_variable)):
            for (_, (rowname, facetgroup)) in enumerate(subgroup.groupby(row_variable)):
                (row, col) = self.facets.facet_map[(rowname, colname)]
                ax = self.get_subplot(row, col)
                (yield (ax, facetgroup))
    elif col_variable:
        for (_, (colname, subgroup)) in enumerate(group.groupby(col_variable)):
            (row, col) = self.facets.facet_map[colname]
            ax = self.subplots[col]
            if (self.facets.is_wrap == True):
                ax.set_title((u'%s=%s' % (col_variable, colname)))
            else:
                ax.set_title(colname, fontdict={u'fontsize': 10})
            (yield (ax, subgroup))
    elif row_variable:
        for (row, (rowname, subgroup)) in enumerate(group.groupby(row_variable)):
            (row, col) = self.facets.facet_map[rowname]
            if (self.facets.is_wrap == True):
                ax = self.subplots[row]
                ax.set_title((u'%s=%s' % (row_variable, rowname)))
            else:
                ax = self.subplots[row]
                ax.yaxis.set_label_position(u'right')
                ax.yaxis.labelpad = 10
                ax.set_ylabel(rowname, fontsize=10, rotation=(-90))
            (yield (ax, subgroup))
    else:
        (yield (self.subplots, group))
