numpy.core.defchararray.asarray(obj, itemsize=None, unicode=None, order=None) [source]
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:
str.endswith) and infix operators (e.g. +, *,``%``)| Parameters: |
obj : array of str or unicode-like itemsize : int, optional
unicode : bool, optional When true, the resulting
then the unicode setting of the output array will be automatically determined. order : {‘C’, ‘F’}, optional Specify the order of the array. If order is ‘C’ (default), then the array will be in C-contiguous order (last-index varies the fastest). If order is ‘F’, then the returned array will be in Fortran-contiguous order (first-index varies the fastest). |
|---|
© 2008–2017 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.14.2/reference/generated/numpy.core.defchararray.asarray.html