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

[Python] Segmentation fault when converting empty table to pandas with categoricals

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.0, 0.11.0
    • 0.12.0
    • Python
    • - Ubuntu 16.04, Python 2.7.12, pyarrow 0.11.0, pandas 0.23.4
      - Debian9, Python 2.7.13, pyarrow 0.10.0, pandas 0.23.4

    Description

      import pyarrow as pa
      
      
      table = pa.Table.from_arrays(arrays=[pa.array([], type=pa.int32())], names=['col'])
      table.to_pandas(categories=['col'])

      This produces a segmentation fault for certain types (e.g, int{32,64}) while it works for others (e.g. string, binary).

      Attachments

        Issue Links

          Activity

            People

              fsaintjacques Francois Saint-Jacques
              amerkel3 Andreas
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m