[ 
https://issues.apache.org/jira/browse/ARROW-3448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16835411#comment-16835411
 ] 

Joris Van den Bossche commented on ARROW-3448:
----------------------------------------------

Is this something we would like to fix? 
In the meaning of: change the behaviour (but I am not sure this is desired), or 
have some to specify this as an option, or save more information in the pandas 
metadata?

I think in general ListArrays are always converted to columns of arrays (not 
preserving the original column of lists), and here in addition the question is 
whether it should be object dtype or datetime64 (for the nested array dtype).

> [Python] Pandas roundtrip doesn't preserve list of datetime objects
> -------------------------------------------------------------------
>
>                 Key: ARROW-3448
>                 URL: https://issues.apache.org/jira/browse/ARROW-3448
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>            Reporter: Krisztian Szucs
>            Priority: Major
>             Fix For: 0.14.0
>
>
> Adding the following to the pandas_example.py::dataframe_with_lists functionn:
> {code:python}
> datetime_data = [
>      [datetime(2015, 1, 5, 12, 0, 0), datetime(2020, 8, 22, 10, 5, 0)],
>      [datetime(2024, 5, 5, 5, 49, 1), datetime(2015, 12, 24, 22, 10, 17)],
>      [datetime(1996, 4, 30, 2, 38, 11)],
>      None,
>      [datetime(1987, 1, 27, 8, 21, 59)]
> ]
> type = pa.timestamp('s'|'ms'|'us'|'ns')
> {code}
> breaks the tests cases, because the roundtrip doesn't preserve the object 
> type.



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

Reply via email to