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

[Python] Use fixed size binary for NumPy fixed-size string dtypes

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 0.11.1
    • Fix Version/s: None
    • Component/s: Python
    • Labels:
      None

      Description

      I'm working on getting support for arrow in vaex (out of core dataframe library for Python) in this PR:
      https://github.com/maartenbreddels/vaex/pull/116
      And I fixed length binary arrays for numpy (say dtype='S42') will be converted to a non-fixed length array. Trying to convert that back to numpy will fail, since there is no such conversion.

      It makes more sense to convert dtype='S42', to an arrow array with pyarrow.binary(42) type. As I do in:
      https://github.com/maartenbreddels/vaex/blob/4b4facb64fea9f83593ce0f0b82fc26ddf96b506/packages/vaex-arrow/vaex_arrow/convert.py#L4

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              maartenbreddels Maarten Breddels
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: