title: Python: Is there a faster way than using autocorrect for spell correction?
body: <p>I am doing sentiment analysis and have <code>train</code> and <code>test</code> csv files with a <code>train</code> dataframe (created after reading the csv files) which has columns <code>text</code> and <code>sentiment</code>.</p>
  
  <p>Tried in google-colab:</p>
  
  <pre><code>!pip install autocorrect
  from autocorrect import spell 
  train['text'] = [' '.join([spell(i) for i in x.split()]) for x in train['text']]
  </code></pre>
  
  <p>But it's taking forever to come to a halt. Is there a better way to auto-correct the pandas column? How to do it?</p>
  
  <p>P.S.: the dataset is large enough, having around 5000 rows and each <code>train['text']</code> value has around 300 words and is of type <code>str</code>. I have <strong>not</strong> broken the <code>train['text']</code> into sentences.</p>