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
[Python] Error inferring List type in Array.from_pandas when inner values are all None #17309
Comments
Wes McKinney / @wesm: If it's not possible to fix this immediately, we would definitely want to make the error message more informative than that |
Wes McKinney / @wesm: |
Luke Higgins: |
Wes McKinney / @wesm: |
Wes McKinney / @wesm: In [8]: pa.Array.from_pandas(np.array([[None, None], None], dtype=object))
---------------------------------------------------------------------------
ArrowNotImplementedError Traceback (most recent call last)
<ipython-input-8-c3bdca54ea4c> in <module>()
----> 1 pa.Array.from_pandas(np.array([[None, None], None], dtype=object))
~/code/arrow/python/pyarrow/array.pxi in pyarrow.lib.Array.from_pandas (/home/wesm/code/arrow/python/build/temp.linux-x86_64-3.5/lib.cxx:22323)()
174 c_type = type.sp_type
175 with nogil:
--> 176 check_status(PandasObjectsToArrow(
177 pool, values, mask, c_type, &chunked_out))
178
~/code/arrow/python/pyarrow/error.pxi in pyarrow.lib.check_status (/home/wesm/code/arrow/python/build/temp.linux-x86_64-3.5/lib.cxx:7711)()
76 raise ArrowKeyError(message)
77 elif status.IsNotImplemented():
---> 78 raise ArrowNotImplementedError(message)
79 elif status.IsTypeError():
80 raise ArrowTypeError(message)
ArrowNotImplementedError: NotImplemented: null |
Wes McKinney / @wesm: |
Wes McKinney / @wesm: |
I have an avro file in hdfs that I am reading in using fastavro, converting to a pandas dataframe and then trying to create an arrow table and get as error:
The avro schema indeed has null fields possible. Is this not implemented? I am using pyarrow 0.5.0. Also, for what I am doing I am not using pandas at all, I just read in the avro and I have a list of dicts and really want to write them to disk in parquet format and am utilizing these steps (which isn't optimal but may be necessary without writing more code of my own).
thanks,
Luke
Environment: centos 7.3
Reporter: Luke Higgins
Assignee: Wes McKinney / @wesm
Note: This issue was originally created as ARROW-1309. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: