src/canvas-extractor/edfi_canvas_extractor/api/enrollments.py
def enrollments_synced_as_df(
    enrollments: List[Enrollment],
    sync_db: sqlalchemy.engine.base.Engine,
) -> DataFrame:
    """
    Fetch Enrollments API data for a range of students and return a Enrollments API DataFrame
    with current and previously fetched data

    Parameters
    ----------
    enrollments: List[Enrollment]
        a list of Canvas Enrollments objects
    sync_db: sqlalchemy.engine.base.Engine
        an Engine instance for creating database connections

    Returns
    -------
    DataFrame
        a Enrollments API DataFrame with the current and previously fetched data
    """
    enrollments_df: DataFrame = _sync_without_cleanup(to_df(enrollments), sync_db)
    cleanup_after_sync(ENROLLMENTS_RESOURCE_NAME, sync_db)

    return enrollments_df

    Fetch Enrollments API data for a range of students and return a Enrollments API DataFrame
    with current and previously fetched data

    Parameters
    ----------
    enrollments: List[Enrollment]
        a list of Canvas Enrollments objects
    sync_db: sqlalchemy.engine.base.Engine
        an Engine instance for creating database connections

    Returns
    -------
    DataFrame
        a Enrollments API DataFrame with the current and previously fetched data
    
Fetch Enrollments API data for a range of students and return a Enrollments API DataFrame
with current and previously fetched data

Parameters

List[Enrollment]
a list of Canvas Enrollments objects
sync_db: sqlalchemy.engine.base.Engine
an Engine instance for creating database connections

Returns

DataFrame
a Enrollments API DataFrame with the current and previously fetched data
Fetch Enrollments API data for a range of students and return a Enrollments API DataFrame with current and previously fetched data Parameters List [ Enrollment ] a list of Canvas Enrollments objects sync_db : sqlalchemy . engine . base . Engine an Engine instance for creating database connections Returns DataFrame a Enrollments API DataFrame with the current and previously fetched data
def enrollments_synced_as_df(
    enrollments: List[Enrollment],
    sync_db: sqlalchemy.engine.base.Engine,
) -> DataFrame:
    enrollments_df: DataFrame = _sync_without_cleanup(to_df(enrollments), sync_db)
    cleanup_after_sync(ENROLLMENTS_RESOURCE_NAME, sync_db)
    return enrollments_df
def enrollments_synced_as_df ( enrollments : List [ Enrollment ] , sync_db : sqlalchemy . engine . base . Engine , ) -> DataFrame : enrollments_df : DataFrame = _sync_without_cleanup ( to_df ( enrollments ) , sync_db ) cleanup_after_sync ( ENROLLMENTS_RESOURCE_NAME , sync_db ) return enrollments_df
Fetch Enrollments API data for a range of students and return a Enrollments API DataFrame
with current and previously fetched data
Fetch Enrollments API data for a range of students and return a Enrollments API DataFrame with current and previously fetched data
"""
    Fetch Enrollments API data for a range of students and return a Enrollments API DataFrame
    with current and previously fetched data

    Parameters
    ----------
    enrollments: List[Enrollment]
        a list of Canvas Enrollments objects
    sync_db: sqlalchemy.engine.base.Engine
        an Engine instance for creating database connections

    Returns
    -------
    DataFrame
        a Enrollments API DataFrame with the current and previously fetched data
    """
enrollments
List[Enrollment]
sync_db
sqlalchemy.engine.base.Engine