How to use autocorrect in Pandas column of sentences
问题 I have a column of sentences, which i am splitting like so df['ColTest'] = df['ColTest'].str.lower().str.split() What i am trying to do is loop through each word in each sentence and apply the autocorrect.spell() for i in df['ColTest']: for j in i: df['ColTest'][i][j].replace(at.spell(j)) This is throwing up an error AttributeError: 'float' object has no attribute 'replace' Autospell autospell DataFrame looks like ColTest This is some test string that might contain a finger but this string