(self, data)
Iterate over the groups in `data` after grouping by
        `segmentation_col`. Skips any groups for which there
        is no model stored.

        Yields tuples of (name, df) where name is the group key
        and df is the group DataFrame.

        Parameters
        ----------
        data : pandas.DataFrame
            Must have a column with the same name as `segmentation_col`.
Iterate over the groups in `data` after grouping by
        `segmentation_col`. Skips any groups for which there
        is no model stored.
Iterate over the groups in data after grouping by segmentation_col . Skips any groups for which there is no model stored .
def _iter_groups(self, data):
        """
        Iterate over the groups in `data` after grouping by
        `segmentation_col`. Skips any groups for which there
        is no model stored.

        Yields tuples of (name, df) where name is the group key
        and df is the group DataFrame.

        Parameters
        ----------
        data : pandas.DataFrame
            Must have a column with the same name as `segmentation_col`.

        """
        groups = data.groupby(self.segmentation_col)

        for name, group in groups:
            if name not in self.models:
                continue
            logger.debug(
                'returning group {} in LCM group {}'.format(name, self.name))
            yield name, group
def _iter_groups ( self , data ) : groups = data . groupby ( self . segmentation_col ) for name , group in groups : if name not in self . models : continue logger . debug ( 'returning group {} in LCM group {}' . format ( name , self . name ) ) yield name , group