ArrowTypeError: Expected bytes, got a 'float' object, when trying to make a dataset from a list of dicts

What I did was the following to solve it:

for dictionary in sp_train_list:
  dictionary['distractor1'] = str(dictionary['distractor1'])
  dictionary['distractor2'] = str(dictionary['distractor2'])
  dictionary['distractor(unsure)'] = str(dictionary['distractor(unsure)'])

Thank you once again!

2 Likes