(
    cls, func, prefix=settings.ORIGINAL_METHOD_PREFIX
)
Restore the original pandas method instead of overridden one

        :param cls: class containing the method
        :param func: pandas method name
        :param prefix: the prefix used to keep original method
        :return: None
Restore the original pandas method instead of overridden one
Restore the original pandas method instead of overridden one
def restore_pandas_func_copy(
    cls, func, prefix=settings.ORIGINAL_METHOD_PREFIX
):
    """ Restore the original pandas method instead of overridden one

        :param cls: class containing the method
        :param func: pandas method name
        :param prefix: the prefix used to keep original method
        :return: None
    """

    _raise_on_bad_class(cls)
    original_method = getattr(cls, func)
    setattr(cls, func.replace(prefix, ""), original_method)
def restore_pandas_func_copy ( cls , func , prefix = settings . ORIGINAL_METHOD_PREFIX ) : _raise_on_bad_class ( cls ) original_method = getattr ( cls , func ) setattr ( cls , func . replace ( prefix , "" ) , original_method )