(cls, func, prefix=settings.ORIGINAL_METHOD_PREFIX)
Saved copy of the pandas method before it overridden

        :param cls: class containing the method
        :param func: pandas method name
        :param prefix: the prefix used to keep original method
        :return: None
Saved copy of the pandas method before it overridden
Saved copy of the pandas method before it overridden
def keep_pandas_func_copy(cls, func, prefix=settings.ORIGINAL_METHOD_PREFIX):
    """ Saved copy of the pandas method before it overridden

        :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, f"{prefix}{func}", original_method)
def keep_pandas_func_copy ( cls , func , prefix = settings . ORIGINAL_METHOD_PREFIX ) : _raise_on_bad_class ( cls ) original_method = getattr ( cls , func ) setattr ( cls , f"{prefix}{func}" , original_method )