OSDir


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jira] [Created] (ARROW-2603) [Python] from pandas raises ArrowInvalid for date(time) subclasses


Florian Jetter created ARROW-2603:
-------------------------------------

             Summary: [Python] from pandas raises ArrowInvalid for date(time) subclasses
                 Key: ARROW-2603
                 URL: https://issues.apache.org/jira/browse/ARROW-2603
             Project: Apache Arrow
          Issue Type: Bug
          Components: Python
    Affects Versions: 0.9.0
            Reporter: Florian Jetter
            Assignee: Florian Jetter


When converting a pandas dataframe holding subclasses of date/datetime objects, arrow raises an {{ArrowInvalid}} exception
{code:java}
import pandas as pd
import pyarrow as pa
import datetime

classMyDate(datetime.date):
    pass

date_array = [MyDate(2000, 1, 1)]
df = pd.DataFrame({"date": pd.Series(date_array, dtype=object)})

table = pa.Table.from_pandas(df){code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)