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

[Python] Improve usability of pyarrow.dictionary function

    XMLWordPrintableJSON

Details

    Description

      >>> pa.dictionary('int8', ['a', 'b', 'c', 'd'])
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
      TypeError: Argument 'index_type' has incorrect type (expected pyarrow.lib.DataType, got str)
      >>> pa.dictionary(pa.int8(), ['a', 'b', 'c', 'd'])
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
      TypeError: Argument 'dict_values' has incorrect type (expected pyarrow.lib.Array, got list)
      

      Attachments

        Issue Links

          Activity

            People

              jorisvandenbossche Joris Van den Bossche
              wesm Wes McKinney
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 0.5h
                  0.5h