-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[PythonDev] Don't dereference None when creating pandas dataframe #9127
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
Conversation
|
Even though it does stop the initial problem |
|
Perhaps try |
|
I am encountering this abort too. Will we have a Edit: I'm working around it by using |
|
We are planning to push a v0.9.1 bugfix release, but not for a few days at least |
Hi, yes they are essentially equivalent apart from a couple small things |
…ecrease the refcount of None
|
Thanks! |
This PR fixes #9110
When creating a pandas dataframe, we first create Numpy arrays.
Recently we changed the logic for pandas so None is returned for NULL when converting a varchar column.
Because we use
Py_Nonethis is an object and numpy takes ownership of it, lowering the refcount when it gets deleted.Instead we should return
nullptrso Numpy knows that it's not a none.