python - 'DataFrame' object has no attribute 'set_value ...
stackoverflow.com › questions › 62740719Jul 05, 2020 · I am using the set_value() function but now it says it's deprecated.. This SO answer said to use .at instead. I tried this but it does not work for me. for i in range(0,len(text)): clean=cleaner.clean(str(text[i])) df.set_value(i, 'clean', clean) try: #translated_tweet=translator.translate(clean).text translated_tweet= translator.translate(clean).text df.set_value(i, 'translated', translated ...