I'm applying the 'list' function to a pandas col which contains generator objects, in attempt to show all generator objects in col. When applying, the col returns empty lists. The 'subject_verb_object_triples' is a textacy function (https://chartbeat-labs.github.io/textacy/_modules/textacy/extract.html)
print(sp500news3)
date_publish title
79944 2007-01-29 19:08:35 <generator object subject_verb_object_triples at 0x1a42713550>
181781 2007-12-14 19:39:06 <generator object subject_verb_object_triples at 0x1a42713410>
213175 2008-01-22 11:17:19 <generator object subject_verb_object_triples at 0x1a427135f0>
93554 2008-01-22 18:52:56 <generator object subject_verb_object_triples at 0x1a427135a0>
In []: sp500news3["title"].apply(list)
Out []: 79944 []
181781 []
213175 [] ...
The expected output are tuples such as the following:
[(Sky proposal, is, matter), (Sky proposal, is, Mays spokesman)],
[(Women, lag, Intel report)],
[(Amazon, expected, to unveil)],
[(Goldman Sachs, raising, billion)],
[(MHP, opens, books)],
[(Disney, hurls, magic), (Disney, hurls, moolah)],
[(Amazon, offering, loans), (Amazon, offering, to)], ....
How can I display the expected output in my dataframe?