pg_utils.numerics.utils.array_to_str
- pg_utils.numerics.utils.array_to_str(x: ~numpy.ndarray, str_fun: ~typing.Callable[[~typing.Any], str] = <class 'str'>) ndarray [source]
Convert array to List of strings
- Parameters:
str_fun (Callable[[Any], str]) – an optional stringify function, default to the string function str.
Warning
This function should really be used only for converting 1-D arrays to strings. Otherwise the returned object will not be a full list of strings, but merely a list of arrays.