Convert the input to a chararray, copying the data only if necessary.
Versus a regular Numpy array of type str or unicode, this class adds the following functionality:
- values automatically have whitespace removed from the end when indexed
- comparison operators automatically remove whitespace from the end when comparing values
- vectorized string operations are provided as methods (e.g. str.endswith) and infix operators (e.g. +, *, %)
Parameters : | obj : array of str or unicode-like itemsize : int, optional
unicode : bool, optional
order : {‘C’, ‘F’}, optional
|
---|