Browse Source

Tabulate

pull/3/head
Jure Šorn 5 years ago
parent
commit
8af63db702
1 changed files with 12 additions and 12 deletions
  1. 24
      README.md

24
README.md

@ -893,18 +893,6 @@ reader(adder(printer()))
Libraries
=========
Terminal Table
--------------
```python
# $ pip3 install tabulate
import csv
from tabulate import tabulate
with open(<filename>, newline='') as csv_file:
reader = csv.reader(csv_file, delimiter=';')
headers = [a.title() for a in next(reader)]
print(tabulate(reader, headers))
```
Plot
----
```python
@ -915,6 +903,18 @@ pyplot.show()
pyplot.savefig(<filename>, transparent=True)
```
Table
-----
```python
# $ pip3 install tabulate
import csv
from tabulate import tabulate
with open(<filename>, newline='') as csv_file:
reader = csv.reader(csv_file, delimiter=';')
headers = [a.title() for a in next(reader)]
print(tabulate(reader, headers))
```
UrlLib
------
### Translate special characters

Loading…
Cancel
Save