Open jxy-001 opened 5 years ago
I havent meet this problem before. Print dat_plus and its type. Maybe u can rerun the cells above to solve this problem.
the type is str so how did you solve the problem?Rerun is useless.
maybe these links can help: https://stackoverflow.com/questions/7735838/typeerror-tuple-object-does-not-support-item-assignment-when-swapping-values https://stackoverflow.com/questions/19338209/how-to-fix-a-typeerror-tuple-object-does-not-support-item-assignment/19338259
BTW: sorry, I'm not familiar with python.
if par_eda == 1: # use eda to operate sentences when par_eda is true for i in range(len(dat_plus['title_text'])): if i%6 == 1:
dat_plus['title_text'][i] = copy.deepcopy(eda_text(dat_plus['title_text'][i])) dat_plus['title_text'][i] = "".join(dat_plus['title_text'][i])
TypeError Traceback (most recent call last)