title: How to combine/join table in Python tabulate?
body: <p>I've been playing around with Python <code>tabulate</code> module after found it <a href="https://stackoverflow.com/questions/62876323/python-create-a-box-rectangle-table-outside-of-a-text/62876451">here</a>.</p>
  <p>Instead of having separate box when reading it from file, would it be possible to combine/join it?</p>
  <p>Here is the sample code and output.</p>
  <pre><code>wolf@linux:~$ cat file.txt 
  Apples
  Bananas
  Cherries
  wolf@linux:~$ 
  </code></pre>
  <p>Python code</p>
  <pre><code>wolf@linux:~$ cat script.py 
  from tabulate import tabulate
  
  with open(r'file.txt') as f:
      for i,j in enumerate(f.read().split(), 1):
          table = [[ i,j ]]
          print(tabulate(table, tablefmt=&quot;grid&quot;))
  wolf@linux:~$ 
  </code></pre>
  <p>Output</p>
  <pre><code>wolf@linux:~$ python script.py 
  +---+--------+
  | 1 | Apples |
  +---+--------+
  +---+---------+
  | 2 | Bananas |
  +---+---------+
  +---+----------+
  | 3 | Cherries |
  +---+----------+
  wolf@linux:~$ 
  </code></pre>
  <p>Desired Output</p>
  <pre><code>wolf@linux:~$ python script.py 
  +---+----------+
  | 1 | Apples   |
  +---+----------+
  | 2 | Bananas  |
  +---+----------+
  | 3 | Cherries |
  +---+----------+
  wolf@linux:~$ 
  </code></pre>