()
Restore original pandas method without the additional log functionality (statistics)
        Note: we keep the original methods using original_ prefix.
        :return: None
Restore original pandas method without the additional log functionality (statistics)
        Note: we keep the original methods using original_ prefix.
        :return: None
Restore original pandas method without the additional log functionality ( statistics ) Note : we keep the original methods using original_ prefix . : return : None
def auto_disable():
    """ Restore original pandas method without the additional log functionality (statistics)
        Note: we keep the original methods using original_ prefix.
        :return: None
    """
    global ALREADY_ENABLED
    if not ALREADY_ENABLED:
        return

    for cls in (pd.DataFrame, pd.Series):
        for func in dir(cls):
            if func.startswith(settings.ORIGINAL_METHOD_PREFIX):
                restore_pandas_func_copy(cls, func)
    ALREADY_ENABLED = False
def auto_disable ( ) : global ALREADY_ENABLED if not ALREADY_ENABLED : return for cls in ( pd . DataFrame , pd . Series ) : for func in dir ( cls ) : if func . startswith ( settings . ORIGINAL_METHOD_PREFIX ) : restore_pandas_func_copy ( cls , func ) ALREADY_ENABLED = False