Skip to content

Instantly share code, notes, and snippets.

mapf='''function() {
...: emit(this.admin1_code,
...: {count:1, pop:this.population, elev:this.elevation});
...: }'''
finalizef = '''function(key,doc) {
....: return {
....: count:doc.count,
....: pop: doc.pop,
....: mean_pop: doc.pop/doc.count,