Skip to content

Instantly share code, notes, and snippets.

@Fak3
Created September 11, 2016 21:37
Show Gist options
  • Save Fak3/f681e621353394372dd08d00360a7757 to your computer and use it in GitHub Desktop.
Save Fak3/f681e621353394372dd08d00360a7757 to your computer and use it in GitHub Desktop.
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from pandas import read_csv
csv = read_csv('doma_uik_okruga.csv')
for raion, rdata in csv[csv['округ Дума']==216].groupby(['Район']):
print('\n РАЙОН', raion)
for ulica, udata in rdata.groupby('Улица'):
print(ulica, ' '.join(udata['Дом'].get_values()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment