title: Write contents of csv to .txt files with one file per row?
body: <p>I have a csv in the following format:</p>
  
  <pre><code>0 | Hello
  1 | Hi
  2 | GoodDay
  </code></pre>
  
  <p>I need to copy each row to a text file, so output will be:</p>
  
  <pre><code>0.txt -&gt; Hello
  1.txt -&gt; Hi
  2.txt -&gt; GoodDay
  </code></pre>
  
  <p>I try (edited):</p>
  
  <pre><code>df=pd.read_csv('result.csv')
  for x in df.iterrows():
      pd.df([x[1][1]]).to_csv(str(x[1][0])+".txt", header=False, index=False)
  </code></pre>
  
  <p>I am using Python and Pandas.</p>