src/canvas-extractor/edfi_canvas_extractor/api/courses.py
def courses_synced_as_df(
    courses: List[Course], sync_db: sqlalchemy.engine.base.Engine
) -> DataFrame:
    """
    Using Course API data, return a Courses API DataFrame

    Parameters
    ----------
    courses: List[Course]
        a list of Canvas Course SDK objects
    sync_db: sqlalchemy.engine.base.Engine
        an Engine instance for creating database connections

    Returns
    -------
    DataFrame
        a Courses API DataFrame with the current and previously fetched data
    """
    courses_df: DataFrame = _sync_without_cleanup(to_df(courses), sync_db)
    cleanup_after_sync(COURSES_RESOURCE_NAME, sync_db)

    return courses_df

    Using Course API data, return a Courses API DataFrame

    Parameters
    ----------
    courses: List[Course]
        a list of Canvas Course SDK objects
    sync_db: sqlalchemy.engine.base.Engine
        an Engine instance for creating database connections

    Returns
    -------
    DataFrame
        a Courses API DataFrame with the current and previously fetched data
    
Using Course API data, return a Courses API DataFrame
Parameters

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

Returns

DataFrame
a Courses API DataFrame with the current and previously fetched data
Using Course API data return a Courses API DataFrame Parameters List [ Course ] a list of Canvas Course SDK objects sync_db : sqlalchemy . engine . base . Engine an Engine instance for creating database connections Returns DataFrame a Courses API DataFrame with the current and previously fetched data
def courses_synced_as_df(
    courses: List[Course], sync_db: sqlalchemy.engine.base.Engine
) -> DataFrame:
    courses_df: DataFrame = _sync_without_cleanup(to_df(courses), sync_db)
    cleanup_after_sync(COURSES_RESOURCE_NAME, sync_db)
    return courses_df
def courses_synced_as_df ( courses : List [ Course ] , sync_db : sqlalchemy . engine . base . Engine ) -> DataFrame : courses_df : DataFrame = _sync_without_cleanup ( to_df ( courses ) , sync_db ) cleanup_after_sync ( COURSES_RESOURCE_NAME , sync_db ) return courses_df
Using Course API data, return a Courses API DataFrame
Parameters
Using Course API data return a Courses API DataFrame Parameters
"""
    Using Course API data, return a Courses API DataFrame

    Parameters
    ----------
    courses: List[Course]
        a list of Canvas Course SDK objects
    sync_db: sqlalchemy.engine.base.Engine
        an Engine instance for creating database connections

    Returns
    -------
    DataFrame
        a Courses API DataFrame with the current and previously fetched data
    """
courses
List[Course]
sync_db
sqlalchemy.engine.base.Engine