For Pandas Series using the StringDtype extension type, Series.astype(str) causes the data to be copied into a fixed-size Numpy unicode array, which can occur in the following code: memory_allocation ...