You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi when i run this piece of code am getting below error
`for index, review in data['Text'].iteritems():
#Pass a single review to TA (one by one):
json_output = tone_analyzer.tone(data, content_type='text/plain')
#Traverse the heirarchy of result
for i in json_output['document_tone']['tone_categories']:
for j in i['tones']:
#Append the attributes to the data
data.set_value(index, j['tone_name'], j['score'])
`
ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
The text was updated successfully, but these errors were encountered:
Hi when i run this piece of code am getting below error
`for index, review in data['Text'].iteritems():
`
ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
The text was updated successfully, but these errors were encountered: