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

Write psycopg2 adapter for pandas.Series #156

Open
lkiesow opened this issue Dec 14, 2019 · 0 comments
Open

Write psycopg2 adapter for pandas.Series #156

lkiesow opened this issue Dec 14, 2019 · 0 comments

Comments

@lkiesow
Copy link
Collaborator

lkiesow commented Dec 14, 2019

We are using a very crude psycopg2 adapter for pandas.Series right now and could be way faster if we implement this properly:

# Add psycopg2 adapter for pandas Series
psycopg2.extensions.register_adapter(
pandas.core.series.Series,
lambda arr: psycopg2.extensions.adapt(list(arr)))

@lkiesow lkiesow created this issue from a note in Data & Database (To do) Dec 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

1 participant