From 274754209121cb850e23d92ecfd1cb6ed27eb4dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 30 Dec 2018 03:04:44 +0100 Subject: [PATCH] Libraries --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e198ea1..3ed6f5c 100644 --- a/README.md +++ b/README.md @@ -1211,7 +1211,6 @@ Plot ```python # $ pip3 install matplotlib from matplotlib import pyplot - pyplot.plot( [, , ...]) pyplot.show() pyplot.savefig(, transparent=True) @@ -1237,11 +1236,11 @@ Table #### Prints CSV file as ASCII table: ```python # $ pip3 install tabulate -import csv +from csv import reader from tabulate import tabulate with open(, newline='') as csv_file: - reader = csv.reader(csv_file, delimiter=';') + reader = reader(csv_file, delimiter=';') headers = [a.title() for a in next(reader)] print(tabulate(reader, headers)) ```