Browse Source

Table

pull/10/head
Jure Šorn 6 years ago
parent
commit
87fca1dba2
1 changed files with 1 additions and 1 deletions
  1. 2
      README.md

2
README.md

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

Loading…
Cancel
Save