New result types have been added to include the following:
numpy.array - structured array
pandas.DataFrame
polars.DataFrame
pyarrow.Table
The data in each connection is still tuples, but the fetch* methods convert the tuples to the requested data format. This does mean that these formats will be slower than tuples since they require an extra conversion step, but if your application is already doing this step it at least gives you a way to get these output types without writing your own conversion code. At some point in the future, we will look into optimizing these formats to not need the extra conversion step.
New result types have been added to include the following:
numpy.array
- structured arraypandas.DataFrame
polars.DataFrame
pyarrow.Table
The data in each connection is still tuples, but the
fetch*
methods convert the tuples to the requested data format. This does mean that these formats will be slower than tuples since they require an extra conversion step, but if your application is already doing this step it at least gives you a way to get these output types without writing your own conversion code. At some point in the future, we will look into optimizing these formats to not need the extra conversion step.