You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "William Cox (JIRA)" <ji...@apache.org> on 2017/05/10 21:44:04 UTC
[jira] [Created] (ARROW-1004) ArrowInvalid: Invalid: Python object
of type float is not None and is not a string, bool, or date object
William Cox created ARROW-1004:
----------------------------------
Summary: ArrowInvalid: Invalid: Python object of type float is not None and is not a string, bool, or date object
Key: ARROW-1004
URL: https://issues.apache.org/jira/browse/ARROW-1004
Project: Apache Arrow
Issue Type: Bug
Reporter: William Cox
in python 3.6, arrow 0.3.0 and pandas 0.20.1 running the following:
{code}
import pyarrow as pa
import pandas as pd
rec2_df = pd.DataFrame({'0.7': {49283: 0.0}, '@proxy_inject': {49283: '@jst'}}, dtype=object)
bad_table = pa.Table.from_pandas(rec2_df)
{code}
yields this error:
{code}
---------------------------------------------------------------------------
ArrowInvalid Traceback (most recent call last)
<ipython-input-1-d84bff18cc35> in <module>()
3
4 rec2_df = pd.DataFrame({'0.7': {49283: 0.0}, '@proxy_inject': {49283: '@jst'}}, dtype=object)
----> 5 bad_table = pa.Table.from_pandas(rec2_df)
/Users/william/anaconda/envs/parquet-python/lib/python3.6/site-packages/pyarrow/_table.pyx in pyarrow._table.Table.from_pandas (/Users/travis/miniconda3/conda-bld/pyarrow_1494071287970/work/arrow-d8db8f8a11abbbb6c45645b2d7370610311731bd/python/build/temp.macosx-10.9-x86_64-3.6/_table.cxx:9250)()
/Users/william/anaconda/envs/parquet-python/lib/python3.6/site-packages/pyarrow/_table.pyx in pyarrow._table._dataframe_to_arrays (/Users/travis/miniconda3/conda-bld/pyarrow_1494071287970/work/arrow-d8db8f8a11abbbb6c45645b2d7370610311731bd/python/build/temp.macosx-10.9-x86_64-3.6/_table.cxx:5997)()
/Users/william/anaconda/envs/parquet-python/lib/python3.6/site-packages/pyarrow/_array.pyx in pyarrow._array.Array.from_pandas (/Users/travis/miniconda3/conda-bld/pyarrow_1494071287970/work/arrow-d8db8f8a11abbbb6c45645b2d7370610311731bd/python/build/temp.macosx-10.9-x86_64-3.6/_array.cxx:16456)()
/Users/william/anaconda/envs/parquet-python/lib/python3.6/site-packages/pyarrow/_error.pyx in pyarrow._error.check_status (/Users/travis/miniconda3/conda-bld/pyarrow_1494071287970/work/arrow-d8db8f8a11abbbb6c45645b2d7370610311731bd/python/build/temp.macosx-10.9-x86_64-3.6/_error.cxx:1249)()
ArrowInvalid: Invalid: Python object of type float is not None and is not a string, bool, or date object
{code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)