Skip to content

Commit 2747542

Browse files
committed
Libraries
1 parent 5a6e492 commit 2747542

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,6 @@ Plot
12111211
```python
12121212
# $ pip3 install matplotlib
12131213
from matplotlib import pyplot
1214-
12151214
pyplot.plot(<data_1> [, <data_2>, ...])
12161215
pyplot.show()
12171216
pyplot.savefig(<filename>, transparent=True)
@@ -1237,11 +1236,11 @@ Table
12371236
#### Prints CSV file as ASCII table:
12381237
```python
12391238
# $ pip3 install tabulate
1240-
import csv
1239+
from csv import reader
12411240
from tabulate import tabulate
12421241

12431242
with open(<filename>, newline='') as csv_file:
1244-
reader = csv.reader(csv_file, delimiter=';')
1243+
reader = reader(csv_file, delimiter=';')
12451244
headers = [a.title() for a in next(reader)]
12461245
print(tabulate(reader, headers))
12471246
```

0 commit comments

Comments
 (0)