With this code:
from tabulate import tabulate
print(tabulate(["0", "1", "2"]))
I get:
-
0
1
2
-
I would like to get:
- - -
0 1 2
- - -
Any ideas?
With this code:
from tabulate import tabulate
print(tabulate(["0", "1", "2"]))
I get:
-
0
1
2
-
I would like to get:
- - -
0 1 2
- - -
Any ideas?
Got it! This works:
print(tabulate([["0", "1", "2"]])) # (Put the original list inside a list.)