Project

General

Profile

« Previous | Next » 

Revision 1501

maps.py: Added col_label() and combinable()

View differences:

maps.py
1 1
# Map spreadsheet manipulation
2 2

  
3
import strings
4

  
5
def col_label(col_name): return col_name.partition(':')[0]
6

  
7
def combinable(*headers):
8
    return strings.overlaps(*[col_label(header[0]) for header in headers])
9

  
3 10
def merge_values(*vals):
4 11
    new = []
5 12
    for val in vals:

Also available in: Unified diff