data-apis / dataframe-api

RFC document, tooling and other content related to the dataframe API standard
https://data-apis.org/dataframe-api/draft/index.html
MIT License
102 stars 20 forks source link

Instructions for libraries implementing PEP 249 – Python Database API Specification v2.0 #355

Open aosingh opened 7 months ago

aosingh commented 7 months ago

I am trying to understand if there is a way to extend the Python DB API and add a method let's say fetch_df_all()

fetch_df_all() fetches all the rows in a cursor and loads them into a Python DataFrame.

The idea is to have a DataFrame object that compiles with the new proposed standard and works with DataFrame libraries which understand the protocol.

is there any documentation available for library maintainers ? If you have a data frame (or equivalent data structure), the data could be packed into that.