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

TypeError: Cursor.executemany() takes 2 positional arguments but 3 were given #46

Open
utkanbir opened this issue Jun 27, 2024 · 0 comments

Comments

@utkanbir
Copy link

Hi ,
I am trying to write a dataframe to dremio by using the following code:

df.to_sql(name=‘people’, con=engine, schema=‘nessie1’,index = False,dtype={‘Name’: sqlalchemy.types.VARCHAR(length=255), ‘Age’: sqlalchemy.types.Integer})

the table is created but no data is written . ı am getting this error code:

TypeError: Cursor.executemany() takes 2 positional arguments but 3 were given

I s there any solution for this?
thanks
tolga

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

No branches or pull requests

1 participant