title: Export text file with custom extension Python
body: <p>For a project working with Prodigy, I want to have a .jsonl file, in which each line is a json file.</p>
  <p>To do so, I have the following code:</p>
  <pre><code>df['json'] = df.to_json(orient='records', lines=True).splitlines()
  
  jsonl = &quot;&quot;
  
  for js in df['json']:
      jsonl += js + '\n'
  </code></pre>
  <p>How can I export this text to the following name/directory:</p>
  <pre><code>DIRECTORY/texts.jsonl
  </code></pre>