def _wrap_result(data, columns, index_col=None, coerce_float=True,<EOL>parse_dates=None):
frame = DataFrame.from_records(data, columns=columns,<EOL>coerce_float=coerce_float)<EOL>frame = _parse_date_columns(frame, parse_dates)<EOL>if index_col is not None:<EOL><INDENT>frame.set_index(index_col, inplace=True)<EOL><DEDENT>return frame<EOL>
Wrap result set of query in a DataFrame.