(result, sketch)
return fh
Returns a data frame from a OpenSearch query result dict.

    Args:
        result (dict): a dict that contains the response from a
            OpenSearch datastore search.
        sketch (timesketch.models.sketch.Sketch): a sketch object.

    Returns:
        pd.DataFrame: a pandas DataFrame with the results from
            the query.
Returns a data frame from a OpenSearch query result dict.
Returns a data frame from a OpenSearch query result dict .
def query_results_to_filehandle(result, sketch):
    """Returns a data frame from a OpenSearch query result dict.

    Args:
        result (dict): a dict that contains the response from a
            OpenSearch datastore search.
        sketch (timesketch.models.sketch.Sketch): a sketch object.

    Returns:
        pd.DataFrame: a pandas DataFrame with the results from
            the query.
    """
    fh = io.StringIO()
    data_frame = query_results_to_dataframe(result, sketch)
    data_frame.to_csv(fh, index=False)
    fh.seek(0)
    return fh
def query_results_to_filehandle ( result , sketch ) : fh = io . StringIO ( ) data_frame = query_results_to_dataframe ( result , sketch ) data_frame . to_csv ( fh , index = False ) fh . seek ( 0 ) return fh