Organization country capital S Africa Joburg Tanzania Dodoma Rwanda Kigali structured unstructured "O God of all creation. Bless this our land and nation. Justice be our shield..."
>>> from csv import DictReader >>> from io import open >>> from os import path as p >>> {'Crime': 'All theft not mentioned elsewhere', 'Incidents': '3397', 'Police Station': 'Durban Central', 'Province': 'KZN', 'Year': '2014'} >>> url = p.abspath('filtered-crime-stats.csv') >>> f = open(url) >>> data = DictReader(f) >>> next(data)
>>> url = p.abspath('filtered-crime-stats.csv') >>> f = open(url) >>> data = DictReader(f) >>> keyfunc = itemgetter('Province') >>> records = sorted(data, key=keyfunc) >>> grouped = groupby(records, keyfunc) >>> from csv import DictReader >>> from io import open >>> from os import path as p >>> from itertools import groupby >>> from operator import itemgetter >>>
head to head pandas meza installation complex simple size large small memory usage high low speed fast fast* functions very many many input/output many many