SFrame, graphlab in Python

python

Solution

According to the docs you can use `list(sarray)` to convert back to a standard list. This can then be converted to a pandas series with `pd.Series(new_list)`.

Problem

Can anybody, please, tell me, how I can plot SFrame (or even better SArray) or convert this type to some common type in python. When I try convert SArray for example to pandas object: ``` pandas.Series(sarray) ``` I got next 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 ``` Consequently I can not save SArray object like csv file or something else... Once more, what I need is just some kind of plot of SArray.

Original source