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

[Python] Support constructing dictionary array directly through pa.array()

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • Python
    • None

    Description

      pa.array(["some", "string"], type=pa.dictionary(pa.int8(), pa.string)))
      

      raises

      ArrowNotImplementedError: Sequence converter for type dictionary<values=string, indices=int8, ordered=0> not implemented
      

      It would be a much more comfortable way than

      pa.DictionaryArray.from_arrays(indices, dictionary)
      

      And possibly more efficient as well thanks to the adaptive dictionary builders.

      Attachments

        Issue Links

          Activity

            People

              kszucs Krisztian Szucs
              kszucs Krisztian Szucs
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Slack

                  Issue deployment