when I run:
my_sframe['col_1'] = ''
I get a blank column, which is what I wanted.
However when I run:
my_sframe['col_1'] = {}
I get an error that says unexpected data type.
The SFrame API doesn't address this, as seen here:
https://turi.com/products/create/docs/generated/graphlab.SFrame.html
My understanding at this point was that SFrame columns cannot be dictionaries.
However, out of curiosity I tried this:
my_sframe['col_1'] = graphlab.text_analytics.count_words('my_text')
type(my_sframe['col_1'][1])
out: dict
This result was really the antithesis of my previous understanding.
What I want is a dictionary column, each row having its own dictionary, much like .count_words
only I am using word_count dictionaries made from scratch, via import string
.
Is this a two way street, or is .count_words
an exception and I shouldn't expect to be able to reproduce that kind of data transformation?
Please advise,
Thank you
UPDATE
Here appears to be some relevant information on GitHub:
https://github.com/turi-code/how-to/blob/master/sframe_pack.py
I'm not sure if this technique can create what I'm after, I'm still trying. Let me know if anyone has any thoughts on this.