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

[Python] Efficiently serialize numpy arrays with dtype of unicode fixed length string

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: 0.10.0
    • Component/s: Python
    • Labels:
      None

      Description

      Looking at the numpy array serialization code it seems that if I have a dtype like "<U3" this will go through custom ndarray serializer and not through an efficient one.

      Example:>>> np.array(['aaa', 'bbb'])
      array(['aaa', 'bbb'], dtype='<U3')

      This should be able to work, no? It has fixed offsets and memory layout.

        Attachments

          Activity

            People

            • Assignee:
              robertnishihara Robert Nishihara
              Reporter:
              mitar Mitar
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: