src/sagemaker_xgboost_container/data_utils.py
def _validate_csv_format(file_path):
    """Validate that data file is CSV format.

    Check that delimiter can be inferred.

    Note: This only validates the first line in the file. This is not a comprehensive file check,
    as XGBoost will have its own data validation.

    :param file_path
    """
    with open(file_path, 'r', errors='ignore') as read_file:
        line_to_validate = read_file.readline()
        _get_csv_delimiter(line_to_validate)
Validate that data file is CSV format.

    Check that delimiter can be inferred.

    Note: This only validates the first line in the file. This is not a comprehensive file check,
    as XGBoost will have its own data validation.

    :param file_path
    
Validate that data file is CSV format.
Check that delimiter can be inferred.

This only validates the first line in the file. This is not a comprehensive file check,
as XGBoost will have its own data validation.


Validate that data file is CSV format . Check that delimiter can be inferred . This only validates the first line in the file . This is not a comprehensive file check as XGBoost will have its own data validation .
def _validate_csv_format(file_path):
    with open(file_path, 'r', errors='ignore') as read_file:
        line_to_validate = read_file.readline()
        _get_csv_delimiter(line_to_validate)
def _validate_csv_format ( file_path ) : with open ( file_path , 'r' , errors = 'ignore' ) as read_file : line_to_validate = read_file . readline ( ) _get_csv_delimiter ( line_to_validate )
Validate that data file is CSV format.
Validate that data file is CSV format .
"""Validate that data file is CSV format.

    Check that delimiter can be inferred.

    Note: This only validates the first line in the file. This is not a comprehensive file check,
    as XGBoost will have its own data validation.

    :param file_path
    """
file_path