Here is my code snippet where I am trying to process a column of a pandas dataframe
def langprob(lid_set):
print lid_set, type(lid_set)
return
df['ls']= df.apply(lambda row: langprob(row['lid']), axis=1)
And I am getting the output as follows:
[(fi, 0.8201195597648621, 90), (fy, 0.627633810043335, 4)], <type 'unicode'>
While I want to process the tuples inside the list one by one by iterating, I am not sure how to proceed from here.
How can I iterate or convert the unicode[(fi, 0.8201195597648621, 90), (fy, 0.627633810043335, 4)]
to an iterable? I am sure there is an easy way, but I am missing some basics.
P.S: I have looked at this and this SO answers. They weren't of much help!