-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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 Null values to mssql table #8088
Comments
With sqlalchemy I'm able to write Null values to table if I use |
The problem with the Possible hack for now: first create the database with part of the data without NaNs (eg first line if there aren't NaNs), and then append the rest. But I hope the NaN issues will be fixed for real for 0.15 (as replacing NaNs with None is also hack that does not work very well, as you illustrated here). If you are interested in looking into this a bit, certainly welcome! |
You are right. Postgre table columns are of type text, which makes the referenced hack unacceptable.
Tested and working fine for me. Thanks :)
I can perhaps look a bit, but I'm afraid I don't have skills to make the difference. |
Yes, this is the 'known hack' for the moment, changing the NaNs to None (and first creating the database and then append). What error do you get if you just write to mssql with NaNs (so |
OK, I'll look closer
I get this:
Full trace: https://gist.github.com/339130e1346b22e91030 |
Thanks for testing! |
OK, @jorisvandenbossche |
Hi, |
This issue is covered at several places, but it doesn't seem there is a solution for mssql.
Referencing #4199
Example:
This script created successfully postgres table but fails at mssql:
Full trace: https://gist.github.com/51dd8360a938dece9f28
pandas: 0.14.1
sqlalchemy: 0.9.7
The text was updated successfully, but these errors were encountered: