Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-1188

Segfault when trying to serialize a DataFrame with Null-only Categorical Column

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.5.0
    • Component/s: Python
    • Labels:
      None

      Description

      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!
      
      Pandas: 0.19.2
      Feather: 0.4.0
      

        Attachments

          Activity

            People

            • Assignee:
              wesmckinn Wes McKinney
              Reporter:
              pmav99 Panagiotis Mavrogiorgos
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: