PyArrow strings in pandas: Faster and smaller than object dtype

PyArrow strings in pandas: Faster and smaller than object dtype

PyArrow strings in Python Pandas are smaller than Python strings. But they’re also far faster:

s_pyarr = Series(alice)
s_py = Series(alice, dtype='object')

%timeit s_pyarr.str.len() # 106 µs
%timeit s_py.str.len() # 1.6 ms

In many examples, PyArrow was far faster.