(fit_docs, transform_docs)
return new_docstring
Create docstring for a :meth:`fit_transform` method.

    Uses the standard documentation for
    :class:`sklearn.base.TransformerMixin` as a template, but replaces the
    "Parameters" section with the corresponding section from `fit_docs`,
    and the "Returns" section with the corresponding section from
    `transform_docs`. Also performs other cosmetic changes.

    Parameters
    ----------
    fit_docs : str
        Docstring for :meth:`fit`. Should contain a "Parameters" section.

    transform_docs : str
        Docstring for :meth:`transform`. Should contain a "Returns" section.
Create docstring for a :meth:`fit_transform` method.
Create docstring for a : meth : fit_transform method .
def make_fit_transform_docs(fit_docs, transform_docs):
    """Create docstring for a :meth:`fit_transform` method.

    Uses the standard documentation for
    :class:`sklearn.base.TransformerMixin` as a template, but replaces the
    "Parameters" section with the corresponding section from `fit_docs`,
    and the "Returns" section with the corresponding section from
    `transform_docs`. Also performs other cosmetic changes.

    Parameters
    ----------
    fit_docs : str
        Docstring for :meth:`fit`. Should contain a "Parameters" section.

    transform_docs : str
        Docstring for :meth:`transform`. Should contain a "Returns" section.

    """

    inputs_docs = get_inputs_docs(fit_docs)
    outputs_docs = get_outputs_docs(transform_docs)
    new_docstring = standard_fit_transform_docs.\
        replace(standard_intro_docs, intro_docs).\
        replace(standard_inputs_docs, inputs_docs).\
        replace(standard_outputs_docs, outputs_docs)
    return new_docstring
def make_fit_transform_docs ( fit_docs , transform_docs ) : inputs_docs = get_inputs_docs ( fit_docs ) outputs_docs = get_outputs_docs ( transform_docs ) new_docstring = standard_fit_transform_docs . replace ( standard_intro_docs , intro_docs ) . replace ( standard_inputs_docs , inputs_docs ) . replace ( standard_outputs_docs , outputs_docs ) return new_docstring