pdstr_to_arrays

ssapy.io.pdstr_to_arrays(df)[source][source]

Convert a pandas Series or DataFrame with string representations of arrays into a NumPy array of actual arrays.

This function applies the str_to_array function to each element of the input pandas object (Series or DataFrame), converting string representations of arrays into NumPy arrays. The result is returned as a NumPy array.

Parameters:

df (pandas.Series or pandas.DataFrame) – A pandas object containing string representations of arrays.

Returns:

A NumPy array where each element is a NumPy array

derived from the corresponding string in the input.

Return type:

numpy.ndarray