@doc_sub(splits_note)<EOL>def _yield_subpatches(patch, splits, name='<STR_LIT>'):
if splits:<EOL><INDENT>subset_list = _parse_splits(patch, splits)<EOL>for subset in subset_list:<EOL><INDENT>logging.info('<STR_LIT>' % (name, subset))<EOL>subpatch = copy.copy(patch)<EOL>subpatch.table = _subset_table(patch.table, subset)<EOL>subpatch.meta, subpatch.incremented = _subset_meta(patch.meta,<EOL>subset, incremented=True)<EOL>yield subset, subpatch<EOL><DEDENT><DEDENT>else:<EOL><INDENT>yield '<STR_LIT>', patch<EOL><DEDENT>
Iterator for subtables defined by a splits string

Parameters
----------
patch : obj
    Patch object containing data to subset
splits : str
    Specifies how a column of a dataset should be split. See Notes.

Yields
------
tuple
    First element is subset string, second is subtable dataframe

Notes
-----
{0}