|
@ -1648,8 +1648,8 @@ Table |
|
|
#### Prints CSV file as ASCII table: |
|
|
#### Prints CSV file as ASCII table: |
|
|
```python |
|
|
```python |
|
|
# $ pip3 install tabulate |
|
|
# $ pip3 install tabulate |
|
|
import csv |
|
|
|
|
|
from tabulate import tabulate |
|
|
from tabulate import tabulate |
|
|
|
|
|
import csv |
|
|
with open(<filename>, encoding='utf-8') as file: |
|
|
with open(<filename>, encoding='utf-8') as file: |
|
|
lines = csv.reader(file, delimiter=';') |
|
|
lines = csv.reader(file, delimiter=';') |
|
|
headers = [header.title() for header in next(lines)] |
|
|
headers = [header.title() for header in next(lines)] |
|
|