def replace_correction(series, **kwargs):
    """Corrects replacing values.

    Parameters
    ----------
    series: pd.Series
        The pandas series
    **kwargs:
        Arguments as per pandas replace function

    Returns
    -------
    pd.Series
        The corrected series.

    See Also
    --------
    Examples: :ref:`sphx_glr__examples_correctors_plot_replace.py`.
    """
    return series.replace(**kwargs)