.. _routines.char: Legacy fixed-width string functionality ======================================= .. currentmodule:: numpy.char .. module:: numpy.char .. legacy:: The string operations in this module, as well as the `numpy.char.chararray` class, are planned to be deprecated in the future. Use `numpy.strings` instead. The `numpy.char` module provides a set of vectorized string operations for arrays of type `numpy.str_` or `numpy.bytes_`. For example .. try_examples:: >>> import numpy as np >>> np.char.capitalize(["python", "numpy"]) array(['Python', 'Numpy'], dtype='>> np.char.add(["num", "doc"], ["py", "umentation"]) array(['numpy', 'documentation'], dtype='