You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (JIRA)" <ji...@apache.org> on 2017/07/17 17:34:01 UTC

[jira] [Commented] (ARROW-1188) Segfault when trying to serialize a DataFrame with Null-only Categorical Column

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

Wes McKinney commented on ARROW-1188:
-------------------------------------

Marked for Arrow 0.5.0; I think this may be fixed already

> Segfault when trying to serialize a DataFrame with Null-only Categorical Column
> -------------------------------------------------------------------------------
>
>                 Key: ARROW-1188
>                 URL: https://issues.apache.org/jira/browse/ARROW-1188
>             Project: Apache Arrow
>          Issue Type: Bug
>            Reporter: Panagiotis Mavrogiorgos
>             Fix For: 0.5.0
>
>
> {code}
> import pandas as pd
> import feather
> print("Pandas: %s" % pd.__version__)
> print("Feather: %s" % feather.version.version)
> df = pd.DataFrame({"A": (1, 2, 3), "B": ("a", "b", "c")})   # if we use this line everything works fine
> df = pd.DataFrame({"A": (1, 2, 3), "B": (None, None, None)})
> df = df.assign(B=df.B.astype("category"))
> #feather.write_dataframe(df, "/tmp/foo.feather")   # this segfaults!
> {code}
> {code}
> Pandas: 0.19.2
> Feather: 0.4.0
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)