`ssnewemptylen` failure when calling `arr.astype(StringDType())` for certain array sizes
peytondmurray opened this issue · 2 comments
peytondmurray commented
Haven't had enough time to investigate yet, but I'm putting this here so I don't forget:
import numpy as np
from stringdtype import StringDType
import string
n = 1000
indices = np.random.randint(0, len(string.ascii_lowercase), size=(n, 10))
arr = np.array(
["".join([string.ascii_lowercase[i] for i in row]) for row in indices]
)
arr.astype(StringDType())For n > 128 this fails with a MemoryError.