src/extractor-lib/edfi_lms_extractor_lib/csv_generation/write.py
def _write_multi_csv(
    dfs_to_write: Dict[str, DataFrame], output_date: datetime, directory_template: str
):
    """
    Write a series of LMS UDM DataFrames to CSV files

    Parameters
    ----------
    dfs_to_write: Dict[str, DataFrame]
        is a Dict of id/LMS UDM DataFrame pairs
    output_date: datetime
        is the timestamp for the filename
    directory_template: str
        is the directory the file will go in, with an {id} placeholder
    """
    assert "{id}" in directory_template

    for id_placeholder, df_to_write in dfs_to_write.items():
        directory: str = directory_template.format(id=id_placeholder)
        _write_csv(df_to_write, output_date, directory)

    Write a series of LMS UDM DataFrames to CSV files

    Parameters
    ----------
    dfs_to_write: Dict[str, DataFrame]
        is a Dict of id/LMS UDM DataFrame pairs
    output_date: datetime
        is the timestamp for the filename
    directory_template: str
        is the directory the file will go in, with an {id} placeholder
    
Write a series of LMS UDM DataFrames to CSV files
Parameters

Dict[str, DataFrame]
is a Dict of id/LMS UDM DataFrame pairs
output_date: datetime
is the timestamp for the filename
directory_template: str
is the directory the file will go in, with an {id} placeholder
Write a series of LMS UDM DataFrames to CSV files Parameters Dict [ str DataFrame ] is a Dict of id / LMS UDM DataFrame pairs output_date : datetime is the timestamp for the filename directory_template : str is the directory the file will go in with an { id } placeholder
def _write_multi_csv(
    dfs_to_write: Dict[str, DataFrame], output_date: datetime, directory_template: str
):
    assert "{id}" in directory_template
    for id_placeholder, df_to_write in dfs_to_write.items():
        directory: str = directory_template.format(id=id_placeholder)
        _write_csv(df_to_write, output_date, directory)
def _write_multi_csv ( dfs_to_write : Dict [ str , DataFrame ] , output_date : datetime , directory_template : str ) : assert "{id}" in directory_template for id_placeholder , df_to_write in dfs_to_write . items ( ) : directory : str = directory_template . format ( id = id_placeholder ) _write_csv ( df_to_write , output_date , directory )
Write a series of LMS UDM DataFrames to CSV files
Parameters
Write a series of LMS UDM DataFrames to CSV files Parameters
"""
    Write a series of LMS UDM DataFrames to CSV files

    Parameters
    ----------
    dfs_to_write: Dict[str, DataFrame]
        is a Dict of id/LMS UDM DataFrame pairs
    output_date: datetime
        is the timestamp for the filename
    directory_template: str
        is the directory the file will go in, with an {id} placeholder
    """
dfs_to_write
Dict[str, DataFrame]
output_date
datetime
directory_template
str