neuralib.typing.func.array2str

neuralib.typing.func.array2str(x, sep=' ')[source]

Convert an array-like object to a string with a specified separator.

Parameters:
  • x (ndarray[tuple[Any, ...], dtype[Any]] | Sequence[Any] | pd.Series | pl.Series) – 1D array-like object.

  • sep – Separator used to join elements. Default is a space.

Returns:

A string representation of the array with elements separated by sep.

Return type:

str