NumPy

numpy.char.chararray.squeezeΒΆ

method