src/file-utils/edfi_lms_file_utils/file_reader.py
def read_section_associations_file(
    full_path: str, nrows: Optional[int] = None
) -> pd.DataFrame:
    """
    Reads the CSV file for the given path into a Pandas DataFrame.

    Parameters
    ----------
    full_path: str
        The full path of the file.
    nrows: int or None
        (Optional) number of rows to read from the file - useful for testing
        without reading the entirety of a large file.

    Returns
    -------
    Pandas DataFrame with columns matching the model definition / CSV file.
    """
    data_types = {
        "EnrollmentStatus": "string",
        "LMSSectionSourceSystemIdentifier": "string",
        "LMSUserSourceSystemIdentifier": "string",
    }

    return _read_csv(full_path, nrows, data_types=data_types)

    Reads the CSV file for the given path into a Pandas DataFrame.

    Parameters
    ----------
    full_path: str
        The full path of the file.
    nrows: int or None
        (Optional) number of rows to read from the file - useful for testing
        without reading the entirety of a large file.

    Returns
    -------
    Pandas DataFrame with columns matching the model definition / CSV file.
    
Reads the CSV file for the given path into a Pandas DataFrame.
Parameters

str
The full path of the file.
nrows: int or None
(Optional) number of rows to read from the file - useful for testing
without reading the entirety of a large file.

Returns

Pandas DataFrame with columns matching the model definition / CSV file.
Reads the CSV file for the given path into a Pandas DataFrame . Parameters str The full path of the file . nrows : int or None ( Optional ) number of rows to read from the file - useful for testing without reading the entirety of a large file . Returns Pandas DataFrame with columns matching the model definition / CSV file .
def read_section_associations_file(
    full_path: str, nrows: Optional[int] = None
) -> pd.DataFrame:
    data_types = {
        "EnrollmentStatus": "string",
        "LMSSectionSourceSystemIdentifier": "string",
        "LMSUserSourceSystemIdentifier": "string",
    }
    return _read_csv(full_path, nrows, data_types=data_types)
def read_section_associations_file ( full_path : str , nrows : Optional [ int ] = None ) -> pd . DataFrame : data_types = { "EnrollmentStatus" : "string" , "LMSSectionSourceSystemIdentifier" : "string" , "LMSUserSourceSystemIdentifier" : "string" , } return _read_csv ( full_path , nrows , data_types = data_types )
Reads the CSV file for the given path into a Pandas DataFrame.
Reads the CSV file for the given path into a Pandas DataFrame .
"""
    Reads the CSV file for the given path into a Pandas DataFrame.

    Parameters
    ----------
    full_path: str
        The full path of the file.
    nrows: int or None
        (Optional) number of rows to read from the file - useful for testing
        without reading the entirety of a large file.

    Returns
    -------
    Pandas DataFrame with columns matching the model definition / CSV file.
    """
full_path
str
nrows
Optional[int]