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

[Python] Conversion from pandas of empty categorical fails with ArrowInvalid

    Details

      Description

      The conversion of an empty pandas categorical raises an exception. Before version `0.9.0` this was possible

      import pandas as pd
      import pyarrow as pa
      pa.Table.from_pandas(pd.DataFrame({'cat': pd.Categorical([])}))

      raises:

      ArrowInvalid: Dictionary indices must have non-zero length

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                xhochy Uwe L. Korn
                Reporter:
                fjetter Florian Jetter
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: