[
https://issues.apache.org/jira/browse/ARROW-1714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16238982#comment-16238982
]
ASF GitHub Bot commented on ARROW-1714:
---------------------------------------
Licht-T commented on issue #1263: ARROW-1714: [Python] Fix invalid
serialization/deserialization None name Series
URL: https://github.com/apache/arrow/pull/1263#issuecomment-341894650
@wesm I found the reason why it won't work.
https://github.com/apache/arrow/commit/b221a2c7a08f4f709c3a4eb4b2d68dae16c82da8
does not treat when some `labels` are `-1`.
```python
>>> pd.MultiIndex.from_tuples([(1,)])
MultiIndex(levels=[[1]],
labels=[[0]])
>>> pd.MultiIndex.from_tuples([(None,)])
MultiIndex(levels=[[]],
labels=[[-1]])
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> [Python] No named pd.Series name serialized as u'None'
> ------------------------------------------------------
>
> Key: ARROW-1714
> URL: https://issues.apache.org/jira/browse/ARROW-1714
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Affects Versions: 0.7.1
> Reporter: Licht Takeuchi
> Assignee: Licht Takeuchi
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.8.0
>
>
> Repro code.
> {code:java}
> import pandas as pd
> import pyarrow as pa
> s = pd.Series([1,2,3,4])
> serialized = pa.serialize(s).to_buffer()
> pa.deserialize(serialized).name
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)