src/canvas-extractor/edfi_canvas_extractor/api/sections.py
def sections_synced_as_df(
    sections: List[Section],
    sync_db: sqlalchemy.engine.base.Engine,
) -> DataFrame:
    """
    Fetch Sections API data for a range of courses and return a Sections API DataFrame
    with current and previously fetched data

    Parameters
    ----------
    sections: List[Section]
        a list of Canvas Sections objects
    sync_db: sqlalchemy.engine.base.Engine
        an Engine instance for creating database connections

    Returns
    -------
    DataFrame
        a Sections API DataFrame with the current and previously fetched data
    """

    sections_df: DataFrame = _sync_without_cleanup(to_df(sections), sync_db)
    cleanup_after_sync(SECTIONS_RESOURCE_NAME, sync_db)

    return sections_df

    Fetch Sections API data for a range of courses and return a Sections API DataFrame
    with current and previously fetched data

    Parameters
    ----------
    sections: List[Section]
        a list of Canvas Sections objects
    sync_db: sqlalchemy.engine.base.Engine
        an Engine instance for creating database connections

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

Parameters

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

Returns

DataFrame
a Sections API DataFrame with the current and previously fetched data
Fetch Sections API data for a range of courses and return a Sections API DataFrame with current and previously fetched data Parameters List [ Section ] a list of Canvas Sections objects sync_db : sqlalchemy . engine . base . Engine an Engine instance for creating database connections Returns DataFrame a Sections API DataFrame with the current and previously fetched data
def sections_synced_as_df(
    sections: List[Section],
    sync_db: sqlalchemy.engine.base.Engine,
) -> DataFrame:
    sections_df: DataFrame = _sync_without_cleanup(to_df(sections), sync_db)
    cleanup_after_sync(SECTIONS_RESOURCE_NAME, sync_db)
    return sections_df
def sections_synced_as_df ( sections : List [ Section ] , sync_db : sqlalchemy . engine . base . Engine , ) -> DataFrame : sections_df : DataFrame = _sync_without_cleanup ( to_df ( sections ) , sync_db ) cleanup_after_sync ( SECTIONS_RESOURCE_NAME , sync_db ) return sections_df
Fetch Sections API data for a range of courses and return a Sections API DataFrame
with current and previously fetched data
Fetch Sections API data for a range of courses and return a Sections API DataFrame with current and previously fetched data
"""
    Fetch Sections API data for a range of courses and return a Sections API DataFrame
    with current and previously fetched data

    Parameters
    ----------
    sections: List[Section]
        a list of Canvas Sections objects
    sync_db: sqlalchemy.engine.base.Engine
        an Engine instance for creating database connections

    Returns
    -------
    DataFrame
        a Sections API DataFrame with the current and previously fetched data
    """
sections
List[Section]
sync_db
sqlalchemy.engine.base.Engine