list_to_str¶
- list_to_str(value: list[Number | str] | NDArray) str[source]¶
Convert list or numpy.ndarray into string.
The list/ndarray should be 1-dimensional. In that case, the function returns comma-separated sequence of its elements. Otherwise it just returns default string representation of the value, str(value).
- Parameters:
value -- 1-dimensional list or numpy array
- Returns:
String representation of the value. If input value is in compliance with the requirement, it will be comma-separated sequence of elements.