def _do_initial_output(writer, df, sheet_name, na_rep, index=True):
    """Helper function to push data to xlsx and return formatting handles"""
    df.to_excel(writer, sheet_name=sheet_name, na_rep=na_rep, index=index)
    wb = writer.book
    ws = writer.sheets[sheet_name]
    max_row = len(df) + 1
    return (wb, ws, sheet_name, max_row)