Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In addition to fetchall, also support df(), pl(), arrow() and fetchnumpy() #47

Closed
jovezhong opened this issue Aug 14, 2024 · 1 comment · Fixed by #57
Closed

In addition to fetchall, also support df(), pl(), arrow() and fetchnumpy() #47

jovezhong opened this issue Aug 14, 2024 · 1 comment · Fixed by #57
Assignees

Comments

@jovezhong
Copy link
Collaborator

Today
https://github.com/timeplus-io/proton-python-driver/blob/develop/proton_driver/dbapi/cursor.py only support fetchall() to return the Python object. One user suggests us supporting dataframe out of box.

https://duckdb.org/docs/api/python/overview.html#result-conversion
image

@jovezhong
Copy link
Collaborator Author

Update, the Client supports dataframe query and insert, but the connect/cursor cannot
Sample code
https://github.com/timeplus-io/proton-python-driver/blob/develop/example/pandas/dataframe.py

Better to add those dataframe support in connect/cursor too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants