src/transformers/testing_utils.py
def require_pandas(test_case):
    """
    Decorator marking a test that requires pandas. These tests are skipped when pandas isn't installed.
    """
    if not is_pandas_available():
        return unittest.skip("test requires pandas")(test_case)
    else:
        return test_case

    Decorator marking a test that requires pandas. These tests are skipped when pandas isn't installed.
    
Decorator marking a test that requires pandas. These tests are skipped when pandas isn't installed.
Decorator marking a test that requires pandas . These tests are skipped when pandas isn ' t installed .
def require_pandas(test_case):
    if not is_pandas_available():
        return unittest.skip("test requires pandas")(test_case)
    else:
        return test_case
def require_pandas ( test_case ) : if not is_pandas_available ( ) : return unittest . skip ( "test requires pandas" ) ( test_case ) else : return test_case
Decorator marking a test that requires pandas.
Decorator marking a test that requires pandas .
"""
    Decorator marking a test that requires pandas. These tests are skipped when pandas isn't installed.
    """
test_case