(
    verbose=False,
    silent=False,
    full_signature=True,
    copy_ok=True,
    calculate_memory=False,
)
Adds the additional logging functionality (statistics) to pandas methods.

        :param verbose: Whether some inner functions should be recorded as well.
                        For example: when a dataframe being copied
        :param silent: Whether additional the statistics get printed
        :param full_signature: adding additional information to function signature
        :param copy_ok: whether the dataframe is allowed to be copied to calculate more informative metadata logs
        :return: None
Adds the additional logging functionality (statistics) to pandas methods.
Adds the additional logging functionality ( statistics ) to pandas methods .
def auto_enable(
    verbose=False,
    silent=False,
    full_signature=True,
    copy_ok=True,
    calculate_memory=False,
):
    """ Adds the additional logging functionality (statistics) to pandas methods.

        :param verbose: Whether some inner functions should be recorded as well.
                        For example: when a dataframe being copied
        :param silent: Whether additional the statistics get printed
        :param full_signature: adding additional information to function signature
        :param copy_ok: whether the dataframe is allowed to be copied to calculate more informative metadata logs
        :return: None
    """
    global ALREADY_ENABLED
    if ALREADY_ENABLED:
        return

    settings.DATAFRAME_METHODS_TO_OVERIDE.extend(
        settings.DATAFRAME_ADDITIONAL_METHODS_TO_OVERIDE
    )

    # Suppressing warning of the fact we override pandas functions.
    with warnings.catch_warnings():
        warnings.simplefilter("ignore")
        for cls, overrides in [
            (pd.DataFrame, settings.DATAFRAME_METHODS_TO_OVERIDE),
            (pd.Series, settings.SERIES_METHODS_TO_OVERIDE),
        ]:
            for func in dir(cls):
                if func in overrides:
                    keep_pandas_func_copy(cls, func)
                    create_overide_pandas_func(
                        cls,
                        func,
                        verbose,
                        silent,
                        full_signature,
                        copy_ok,
                        calculate_memory,
                    )
    ALREADY_ENABLED = True
def auto_enable ( verbose = False , silent = False , full_signature = True , copy_ok = True , calculate_memory = False , ) : global ALREADY_ENABLED if ALREADY_ENABLED : return settings . DATAFRAME_METHODS_TO_OVERIDE . extend ( settings . DATAFRAME_ADDITIONAL_METHODS_TO_OVERIDE ) # Suppressing warning of the fact we override pandas functions. with warnings . catch_warnings ( ) : warnings . simplefilter ( "ignore" ) for cls , overrides in [ ( pd . DataFrame , settings . DATAFRAME_METHODS_TO_OVERIDE ) , ( pd . Series , settings . SERIES_METHODS_TO_OVERIDE ) , ] : for func in dir ( cls ) : if func in overrides : keep_pandas_func_copy ( cls , func ) create_overide_pandas_func ( cls , func , verbose , silent , full_signature , copy_ok , calculate_memory , ) ALREADY_ENABLED = True