title: save full dataframe into txt file
body: <p>I want to save the dataframe into txt file
  #create the dataframe of timetable</p>
  <pre><code>import pandas as pd
  timeline_table = pd.DataFrame.from_dict(timeline, orient = 'index', columns = ['events'])
  a = timeline_table.reset_index()
  r=a.rename(columns={&quot;index&quot;: &quot;years&quot;})
  final_table = r.shift()[1:]
  print(final_table)
  </code></pre>
  <p>#save the timeline/timetable into new file</p>
  <pre><code>path= &quot;data.txt&quot;
  with open(path, mode = 'w') as output:
      output.write(f'{final_table}')
  </code></pre>
  <p>The output is like this:</p>
  <pre><code>1   1000  About thirty countries maintain about seventy ...
  2   1270  from which derived the Old French pole antarti...
  3   1391  from which derived the Old French pole antarti...
  4   1773  European maps continued to show this hypotheti...
  5   1775  European maps continued to show this hypotheti...
  ..   ...                                                ...
  57  2014  In 1985, three British scientists working on d...
  58  2015  With the ban of CFCs in the Montreal Protocol ...
  59  2018  which operated its own scientific station—Worl...
  </code></pre>
  <p>I want all the rows containing sentences corresponding to the extracted years to be fully displayed in the output file.
  Is there any way to do that?</p>