Can someone please tell me how I can build SFrame (or even better SArray ) or convert this type to some general type in python. When I try to convert a SArray, for example, to a pandas object:
pandas.Series(sarray)
I got the following error:
File "/usr/local/lib/python2.7/dist-packages/pandas/core/series.py", line 220, in __init__
raise_cast_failure=True)
File "/usr/local/lib/python2.7/dist-packages/pandas/core/series.py", line 2566, in _sanitize_array
subarr = _try_cast(data, False)
File "/usr/local/lib/python2.7/dist-packages/pandas/core/series.py", line 2517, in _try_cast
subarr = pa.array(arr, dtype=dtype, copy=copy)
File "/usr/local/lib/python2.7/dist-packages/graphlab/data_structures/sarray.py", line 625, in __getitem__
raise IndexError("Invalid type to use for indexing")
IndexError: Invalid type to use for indexin
Therefore, I cannot save the SArray object, for example, csv file or something else ...
Once again, I only need some kind of SArray plot.
source
share