modules/utils/notebook_utils/dataframe_helper.py
def write_candidates_to_excel(candidate_df, spreadsheet_name):
    """
    This function is designed to save the candidates to an excel
    spreadsheet. This is needed for manual curation of candidate 
    sentences
    
    candidate_df - the dataframe that holds all the candidates
    spreadsheet_name - the name of the excel spreadsheet
    """
    writer = pd.ExcelWriter(spreadsheet_name)
    (
        candidate_df
        .to_excel(writer, sheet_name='sentences', index=False)
    )
    if writer.engine == 'xlsxwriter':
        for sheet in writer.sheets.values():
            sheet.freeze_panes(1, 0)
    writer.close()
    return

    This function is designed to save the candidates to an excel
    spreadsheet. This is needed for manual curation of candidate 
    sentences
    
    candidate_df - the dataframe that holds all the candidates
    spreadsheet_name - the name of the excel spreadsheet
    
This function is designed to save the candidates to an excel
spreadsheet. This is needed for manual curation of candidate
sentences

the dataframe that holds all the candidates
spreadsheet_name - the name of the excel spreadsheet
This function is designed to save the candidates to an excel spreadsheet . This is needed for manual curation of candidate sentences the dataframe that holds all the candidates spreadsheet_name - the name of the excel spreadsheet
def write_candidates_to_excel(candidate_df, spreadsheet_name):
    writer = pd.ExcelWriter(spreadsheet_name)
    (
        candidate_df
        .to_excel(writer, sheet_name='sentences', index=False)
    )
    if writer.engine == 'xlsxwriter':
        for sheet in writer.sheets.values():
            sheet.freeze_panes(1, 0)
    writer.close()
    return
def write_candidates_to_excel ( candidate_df , spreadsheet_name ) : writer = pd . ExcelWriter ( spreadsheet_name ) ( candidate_df . to_excel ( writer , sheet_name = 'sentences' , index = False ) ) if writer . engine == 'xlsxwriter' : for sheet in writer . sheets . values ( ) : sheet . freeze_panes ( 1 , 0 ) writer . close ( ) return
This function is designed to save the candidates to an excel
spreadsheet.
This function is designed to save the candidates to an excel spreadsheet .
"""
    This function is designed to save the candidates to an excel
    spreadsheet. This is needed for manual curation of candidate 
    sentences
    
    candidate_df - the dataframe that holds all the candidates
    spreadsheet_name - the name of the excel spreadsheet
    """
candidate_df
spreadsheet_name