def output_fn(prediction, accept='text/csv'):
    """Format prediction output.

    Args:
        prediction (pandas.core.frame.DataFrame): A DataFrame with predictions.
        accept (str): A string expected to be 'text/csv'.

    Returns:
        df: str (in CSV format)
    """
    df = prediction.to_csv(index=False, header=None)
    return df