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

[Python] Segfault in Table.from_pandas with Mixed-Type Categories

    XMLWordPrintableJSON

    Details

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

      Description

      I'm not sure what the expected behaviour should be, but it's not segfaulting!

      import pandas as pd
      import pyarrow as pa
      print("Pandas: %s" % pd.__version__)
      print("Pyarrow: %s" % pa.__version__)
      df = pd.DataFrame({"B": (1, 'A')})
      df = df.assign(B=df.B.astype("category"))
      pa.Table.from_pandas(df)  # this segfaults!
      

      Versions:

      Pandas: 0.20.1
      Pyarrow: 0.5.0
      

        Attachments

          Activity

            People

            • Assignee:
              cpcloud Phillip Cloud
              Reporter:
              njw45 Nick White
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: