We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
At least connections via pyodbc or ceODBC do not accept NaN values in INSERT statements.
If I replace the NaN with None it is working as expected, i.e. these are NULLs in the data base:
frame2 = frame.where((pd.notnull(frame)), None) data = [tuple(x) for x in frame2.values] cur.executemany(insert_query, data)
It is pretty expensive to copy the data frame. There is probably a better solution.
I have tested this only with SQL Server for which I have written a small extension to sql.py.
The text was updated successfully, but these errors were encountered:
closing as duped by #2754
Sorry, something went wrong.
No branches or pull requests
At least connections via pyodbc or ceODBC do not accept NaN values in INSERT statements.
If I replace the NaN with None it is working as expected, i.e. these are NULLs in the data base:
It is pretty expensive to copy the data frame. There is probably a better solution.
I have tested this only with SQL Server for which I have written a small extension to sql.py.
The text was updated successfully, but these errors were encountered: