[
https://issues.apache.org/jira/browse/ARROW-4867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16792782#comment-16792782
]
Wes McKinney commented on ARROW-4867:
-------------------------------------
Can you submit a PR? Moved to the 0.13 milestone
> [Python] Table.from_pandas() column order not respected
> -------------------------------------------------------
>
> Key: ARROW-4867
> URL: https://issues.apache.org/jira/browse/ARROW-4867
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Affects Versions: 0.12.1
> Reporter: Andreas
> Priority: Minor
> Fix For: 0.13.0
>
>
> Starting with 0.12, the order of the columns in {{Table.from_pandas}} is no
> longer identical to the order of the colums given in the {{columns}}
> argument. This used to be the case in previous versions.
> 0.12:
> {code:java}
> In [1]: pyarrow.Table.from_pandas(pd.DataFrame(dict(a=[1],b=[2])),
> columns=['b', 'a'])
> Out[1]:
> pyarrow.Table
> a: int64
> b: int64{code}
> 0.11:
> {code:java}
> In [1]: pyarrow.Table.from_pandas(pd.DataFrame(dict(a=[1],b=[2])),
> columns=['b', 'a'])
> Out[1]:
> pyarrow.Table
> b: int64
> a: int64{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)