pandas/_testing/contexts.py
def ensure_clean_dir():
    """
    Get a temporary directory path and agrees to remove on close.

    Yields
    ------
    Temporary directory path
    """
    directory_name = tempfile.mkdtemp(suffix="")
    try:
        yield directory_name
    finally:
        try:
            rmtree(directory_name)
        except OSError:
            pass

    Get a temporary directory path and agrees to remove on close.

    Yields
    ------
    Temporary directory path
    
Get a temporary directory path and agrees to remove on close.
Yields

Temporary directory path
Get a temporary directory path and agrees to remove on close . Yields Temporary directory path
def ensure_clean_dir():
    directory_name = tempfile.mkdtemp(suffix="")
    try:
        yield directory_name
    finally:
        try:
            rmtree(directory_name)
        except OSError:
            pass
def ensure_clean_dir ( ) : directory_name = tempfile . mkdtemp ( suffix = "" ) try : yield directory_name finally : try : rmtree ( directory_name ) except OSError : pass
Get a temporary directory path and agrees to remove on close.
Get a temporary directory path and agrees to remove on close .
"""
    Get a temporary directory path and agrees to remove on close.

    Yields
    ------
    Temporary directory path
    """